ufw was enabled (default settings), allowing subnet communication fixed problem
** Changed in: lxc (Ubuntu) Status: New => Invalid ** Description changed: + [FIXED] see https://bugs.launchpad.net/ubuntu/+source/ufw/+bug/573461 + LXC container fails to get network address (tried both ubuntu and ubuntu-cloud) $ uname -a Linux air 3.8.0-22-generic #33~precise1-Ubuntu SMP Fri May 17 00:58:43 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux $ apt-cache policy lxc lxc: Installed: 0.8.0~rc1-4ubuntu38~ubuntu12.04.0 Candidate: 0.8.0~rc1-4ubuntu38~ubuntu12.04.0 Version table: 0.8.0~rc1-4ubuntu39.12.10.2~ubuntu12.04.1 0 100 http://si.archive.ubuntu.com/ubuntu/ precise-backports/universe amd64 Packages # cat /etc/lxc/lxc.conf lxc.network.type=veth lxc.network.link=lxcbr0 lxc.network.flags=up # cat /etc/network/interfaces auto lo iface lo inet loopback auto eth1 iface eth1 inet static address 189.222.110.182 netmask 255.255.0.0 gateway 189.222.0.1 auto eth0 iface eth0 inet dhcp # lxc-create -t ubuntu-cloud -n test -- -r raring No config file specified, using the default config ubuntu-cloudimg-query is /usr/bin/ubuntu-cloudimg-query wget is /usr/bin/wget Extracting container rootfs Configuring for running outside of a cloud environment If you want to configure for a cloud evironment, please use '-- -C' to create the container Container test created. 'ubuntu-cloud' template installed 'test' created # lxc-start --name test <4>init: udev-fallback-graphics main process (56) terminated with status 1 cloud-init-container: emitted ifup for eth0 <4>init: console-font main process (84) terminated with status 1 Cloud-init v. 0.7.2 running 'init-local' at Fri, 24 May 2013 17:25:59 +0000. Up 10907.28 seconds. <4>init: setvtrgb main process (108) terminated with status 1 <4>init: console-setup main process (112) terminated with status 1 <30>udevd[122]: starting version 175 cloud-init-nonet[10907.38]: waiting 10 seconds for network device ci-info: +++++++++++++++++++++++Net device info+++++++++++++++++++++++ ci-info: +--------+------+-----------+-----------+-------------------+ ci-info: | Device | Up | Address | Mask | Hw-Address | ci-info: +--------+------+-----------+-----------+-------------------+ ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . | ci-info: | eth0 | True | . | . | 00:16:3e:58:17:72 | ci-info: +--------+------+-----------+-----------+-------------------+ ci-info: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Route info failed!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # ifconfig - lxcbr0 Link encap:Ethernet HWaddr fe:36:de:e2:5b:8e - inet addr:10.0.3.1 Bcast:10.0.3.255 Mask:255.255.255.0 - inet6 addr: fe80::45c:52ff:fee5:91a4/64 Scope:Link - UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 - RX packets:350 errors:0 dropped:0 overruns:0 frame:0 - TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:0 - RX bytes:101752 (101.7 KB) TX bytes:468 (468.0 B) + lxcbr0 Link encap:Ethernet HWaddr fe:36:de:e2:5b:8e + inet addr:10.0.3.1 Bcast:10.0.3.255 Mask:255.255.255.0 + inet6 addr: fe80::45c:52ff:fee5:91a4/64 Scope:Link + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:350 errors:0 dropped:0 overruns:0 frame:0 + TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:101752 (101.7 KB) TX bytes:468 (468.0 B) - vetheSZD5w Link encap:Ethernet HWaddr fe:55:19:42:48:dd - inet6 addr: fe80::fc55:19ff:fe42:48dd/64 Scope:Link - UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 - RX packets:272 errors:0 dropped:0 overruns:0 frame:0 - TX packets:37 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:1000 - RX bytes:90924 (90.9 KB) TX bytes:8970 (8.9 KB) + vetheSZD5w Link encap:Ethernet HWaddr fe:55:19:42:48:dd + inet6 addr: fe80::fc55:19ff:fe42:48dd/64 Scope:Link + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:272 errors:0 dropped:0 overruns:0 frame:0 + TX packets:37 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:1000 + RX bytes:90924 (90.9 KB) TX bytes:8970 (8.9 KB) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1183941 Title: LXC container fails to get network address To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1183941/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs