[pkg-lxc-devel] Bug#820428: lxc: debian/jessie/amd64 image ipv4 issue

Harald van der Laan harald at familievdlaan.nl
Fri Apr 8 10:03:50 UTC 2016


package: lxc image debian/jessie/amd64 

when i create a new container with lxc of the latest debian/jessie/amd64 the is no ipv4 network. 
when trying to restart the network (systemctl restart networking.service) it will give a D-Bus error. 
After inspection D-Bus is not installed and because there is no network D-Bus cannot be installed. 

$ lxc launch images:debian/jessie/amd64 a 

$ lxc list a 
+------+---------+------+---------------------------------+------------+-----------+ 
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | 
+------+---------+------+---------------------------------+------------+-----------+ 
| a | RUNNING | | fd00::216:3eff:fef1:4264 (eth0) | PERSISTENT | 0 | 
+------+---------+------+---------------------------------+------------+-----------+ 

$ lxc exec a -- /bin/bash 

# systemctl restart networking.services 
Failed to get D-Bus connection: No such file or directory 

# dpkg -l | grep dbus 

# ip a 
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 
inet 127.0.0.1/8 scope host lo 
valid_lft forever preferred_lft forever 
inet6 ::1/128 scope host 
valid_lft forever preferred_lft forever 
36: eth0 at if37: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 
link/ether 00:16:3e:f1:42:64 brd ff:ff:ff:ff:ff:ff 
inet6 fd00::216:3eff:fef1:4264/64 scope global mngtmpaddr dynamic 
valid_lft 3351sec preferred_lft 3351sec 
inet6 fe80::216:3eff:fef1:4264/64 scope link 
valid_lft forever preferred_lft forever 

# cat /etc/network/interfaces 
# The primary network interface 
auto eth0 
iface eth0 inet dhcp 


Solution: install dbus with the lxc images:debian/jessie/amd64 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-lxc-devel/attachments/20160408/080c2a17/attachment.html>


More information about the Pkg-lxc-devel mailing list