<html><body><div style="font-family: trebuchet ms,sans-serif; font-size: 12pt; color: #000000"><div></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;">package: lxc image debian/jessie/amd64</span><br></div><div><br></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;">when i create a new container with lxc of the latest debian/jessie/amd64 the is no ipv4 network.</span><br></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;">when trying to restart the network (systemctl restart networking.service) it will give a D-Bus error.</span><br><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;">After inspection D-Bus is not installed and because there is no network D-Bus cannot be installed.</span><br></div><div><br></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;">$ lxc launch images:debian/jessie/amd64 a</span><br></div><div><br></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;">$ lxc list a</span><br></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;">+------+---------+------+---------------------------------+------------+-----------+</span><br><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;">| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |</span><br><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;">+------+---------+------+---------------------------------+------------+-----------+</span><br><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;">| a | RUNNING | | fd00::216:3eff:fef1:4264 (eth0) | PERSISTENT | 0 |</span><br><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;">+------+---------+------+---------------------------------+------------+-----------+</span><br><br></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;">$ lxc exec a -- /bin/bash</span><br></div><div><br></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;"># systemctl restart networking.services</span><br></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;">Failed to get D-Bus connection: No such file or directory</span></div><div><br></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;"># dpkg -l | grep dbus</span><br></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;"><br></span></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;"># ip a<br>1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default <br> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br> inet 127.0.0.1/8 scope host lo<br> valid_lft forever preferred_lft forever<br> inet6 ::1/128 scope host <br> valid_lft forever preferred_lft forever<br>36: eth0@if37: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000<br> link/ether 00:16:3e:f1:42:64 brd ff:ff:ff:ff:ff:ff<br> inet6 fd00::216:3eff:fef1:4264/64 scope global mngtmpaddr dynamic <br> valid_lft 3351sec preferred_lft 3351sec<br> inet6 fe80::216:3eff:fef1:4264/64 scope link <br> valid_lft forever preferred_lft forever<br></span></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;"><br></span></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;"># cat /etc/network/interfaces<br># The primary network interface<br>auto eth0<br>iface eth0 inet dhcp<br><br></span></div><div><br></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; color: rgb(0, 0, 0); font-size: small;">Solution: install dbus with the lxc images:debian/jessie/amd64</span><br></div><div><br></div><div><br></div><div></div></div></body></html>