[lxc-users] lxc-start failing in Fedora 20

Michael H. Warfield mhw at WittsEnd.com
Sat Jun 28 13:45:16 UTC 2014


On Sat, 2014-06-28 at 15:39 +0530, Mohit Saxena wrote:
> I had installed LXC in fedora 20 day before yesterday using yum. But I
> got the version as .9 instead of 1.x and every thing seems to work
> fine.

You probably have libvirt running and, thus, have virbr0 on your system
already.  You can verify that by running "brctl show".

Regards,
Mike

> On 28 Jun 2014 15:35, "Ajith Adapa" <ajith.adapa at gmail.com> wrote:
>         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
>         _______________________________________________
>         lxc-users mailing list
>         lxc-users at lists.linuxcontainers.org
>         http://lists.linuxcontainers.org/listinfo/lxc-users
> 
> -- 
> This message has been scanned for viruses and 
> dangerous content by MailScanner, and is 
> believed to be clean. 
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users

-- 
Michael H. Warfield (AI4NB) | (770) 978-7061 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140628/5cfdb75f/attachment.sig>


More information about the lxc-users mailing list