[Lxc-users] lxc-centos on Ubuntu 12.04
Kim C. Callis
kim.callis at gmail.com
Fri Feb 8 17:27:13 UTC 2013
I did get this error when attempting to build the centos container:
rpmdb: /var/lib/rpm/Name: unexpected file type or format
error: cannot open Name index using db3 - Invalid argument (22)
Download complete.
Copy /var/cache/lxc/centos/x86_64/6/rootfs to /var/lib/lxc/test/rootfs ...
Copying rootfs to /var/lib/lxc/test/rootfs ...setting root passwd to rooter
container rootfs and config created, default root password is 'rooter'
edit the config file to check/enable networking setup
'centos' template installed
'test' created
I haven't checked to see if that is going to cause any issues, but thought
I would point out the first issue.
On Fri, Feb 8, 2013 at 12:20 PM, Kim C. Callis <kim.callis at gmail.com> wrote:
> That was the missing ingredient... Thanks, now I will see how creative I
> am get...
>
>
> On Fri, Feb 8, 2013 at 8:26 AM, Serge Hallyn <serge.hallyn at canonical.com>wrote:
>
>> Quoting Kim C. Callis (kim.callis at gmail.com):
>> > Ok, I am good and lost... I thought it would be as simple as adding your
>> > script to /usr/share/lxc/templates and then doing:
>> >
>> > *$ sudo lxc-create -n centosbox -t centos -- - user*
>> > *
>> > *
>> > No config file specified, using the default config
>> > /usr/bin/lxc-create: line 297: type:
>> /usr/share/lxc/templates/lxc-centos:
>> > not found
>> > unknown template 'centos'
>> > aborted
>> >
>> > So what is the trick to getting the template accepted?
>>
>> Did you make it executable? what does 'ls -l /usr/share/lxc/templates'
>> show?
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130208/a4d512aa/attachment.html>
More information about the lxc-users
mailing list