[lxc-users] lxc-start failing in Fedora 20
Ajith Adapa
ajith.adapa at gmail.com
Sat Jun 28 10:04:53 UTC 2014
Hi,
lxc-start is failing in latest fedora 20 saying virbr0 is not found.
1. Is it madatory for the admin to create virbr0 interface before
starting a container ?
2. How can I create a container with a default password for root
rather than auto-generating the same ?
# lxc-create -n test -t fedora
Host CPE ID from /etc/os-release: cpe:/o:fedoraproject:fedora:20
Checking cache download in /var/cache/lxc/fedora/x86_64/20/rootfs ...
Cache found. Updating...
No packages marked for update
Update finished
Copy /var/cache/lxc/fedora/x86_64/20/rootfs to /var/lib/lxc/test/rootfs ...
Copying rootfs to /var/lib/lxc/test/rootfs ...
Storing root password in '/var/lib/lxc/test/tmp_root_pass'
Expiring password for user root.
passwd: Success
installing fedora-release package
Package fedora-release-20-3.noarch already installed and latest version
Nothing to do
Container rootfs and config have been created.
Edit the config file to check/enable networking setup.
The temporary root password is stored in:
'/var/lib/lxc/test/tmp_root_pass'
The root password is set up as expired and will require it to be changed
at first login, which you should do as soon as possible. If you lose the
root password or wish to change it without starting the container, you
can change it from the host by running the following command (which will
also reset the expired flag):
chroot /var/lib/lxc/test/rootfs passwd
# lxc-start -n test
lxc-start: failed to attach 'vethKOT10G' to the bridge 'virbr0' : No such device
lxc-start: failed to create netdev
lxc-start: failed to create the network
lxc-start: failed to spawn 'test'
======================================================
configuration
======================================================
# yum install lxc*
Loaded plugins: langpacks
Package lxc-extra-1.0.3-2.fc21.x86_64 already installed and latest version
Package lxc-templates-1.0.3-2.fc21.x86_64 already installed and latest version
Package lxc-libs-1.0.3-2.fc21.x86_64 already installed and latest version
Package lxc-1.0.3-2.fc21.x86_64 already installed and latest version
Package lxc-doc-1.0.3-2.fc21.noarch already installed and latest version
Package lxc-devel-1.0.3-2.fc21.x86_64 already installed and latest version
-------------------------------------------
# lxc-checkconfig
Kernel configuration not found at /proc/config.gz; searching...
Kernel configuration found at /boot/config-3.14.5-200.fc20.x86_64
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled
Multiple /dev/pts instances: enabled
--- Control groups ---
Cgroup: enabled
Cgroup clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled
--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
File capabilities: enabled
Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig
Regards,
Ajith
More information about the lxc-users
mailing list