As i ran into the same problem, i'll give some additional feedback

The problem can be reproduced with :
- unspecified lxc.network.type (= none ?)
- using halt/reboot/poweroff -i in the guest container

Step by step instructions
- create a virtualbox vm
- install with source iso debian-7.7.0-amd64-netinst.iso
- don't check anything in tasksel, minimal install
- apt-get update && apt-get dist-upgrade && rebooot -i
- apt-get install lxc
- echo "cgroup /sys/fs/cgroup cgroup defaults 0 0" >> /etc/fstab
- mount cgroup
- lxc-create -n admin1 -t debian
- ip addr shows host ip config : eth0 10.0.2.15
- lxc-start -n admin1 -d
- lxc-console -n admin1
- login as root/root
- halt/reboot/poweroff -i
- console hangs
- Cltr-A q to get back to host
- ip addr shows host ip config : eth0 has lost its ipv4 addresses

By the way :
- everything is done in the console of the host, no ssh involved
- the very same happens whether the host's eth0 is dhcp or static
- guest /var/lib/lxc/admin1/config file was not modified
- guest /etc/network/interface was not modified

The default container configuration doesn't contain an
"lxc.network.type" statement. The default value for lxc.network.type
AFAIK seems to be set to "none", which as per [1] **shares** the host
eth0 with he guest eth0. So when the guest is going down, the -i
argument to the down command deconfigures it's interface, and as it's
shared with the host, the host interface is deconfigured too

As a consequence, i think the SSH problem mentioned above is more a
problem of the host's eth0 being shared with the container's when
lxc.network.type is not specified (=none?) **AND** using
halt/reboot/poweroff with the -i parameter, which asks the container
to shut down all network interfaces just before halt or reboot, and in
the case above does so on the host's interface as it's shared.

PS: I tested too with
- lxc.network.type = empty
- lxc.network.type = veth and lxc.network.link = br0
In both case, with or without -i, the host interface was untouched.

[1] http://man7.org/linux/man-pages/man5/lxc.container.conf.5.html


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to