<div dir="ltr">Hi,<div>I found an issue in libvirt related to libvirt-lxc, but fail to find the root cause.</div><div><br></div><div>The TL;DR is: libvirt-lxc guests get killed on libvirt restart due to "internal error: No valid cgroup for machine"</div><div><br></div><div>It was able to reproduce libvirt 1.3.1, 2.4 and 2.5 as packages in Ubuntu and Debian.</div><div>I wanted to ask for two things:</div><div>- wider coverage where this does reproduce</div><div>- your expertise on the case itself.</div><div><br></div><div>Steps to reproduce:</div><div><div>1. Spawn new KVM Guest of your choice</div><div>2. install test dependencies</div><div>$ apt-get install libvirt-daemon-system libvirt-clients libxml2-utils</div><div># or package managers / package names of your chosen os</div><div>3. run the following sequence as root</div><div>export LIBVIRT_DEFAULT_URI=lxc:///</div><div>cat << EOF > /tmp/smoke-lxc.xml</div><div><domain type='lxc'></div><div>  <name>sl</name></div><div>  <memory unit='KiB'>256000</memory></div><div>  <currentMemory unit='KiB'>256000</currentMemory></div><div>  <vcpu placement='static'>1</vcpu></div><div>  <os></div><div>    <type>exe</type></div><div>    <init>/bin/bash</init></div><div>  </os></div><div>  <features></div><div>    <privnet/></div><div>  </features></div><div>  <clock offset='utc'/></div><div>  <devices></div><div>    <emulator>/usr/lib/libvirt/libvirt_lxc</emulator></div><div>    <filesystem type='mount' accessmode='passthrough'></div><div>      <source dir='/'/></div><div>      <target dir='/'/></div><div>    </filesystem></div><div>    <console type='pty'></div><div>      <target type='lxc' port='0'/></div><div>    </console></div><div>  </devices></div><div></domain></div><div>EOF</div><div>virsh define /tmp/smoke-lxc.xml<br></div><div>virsh start sl</div><div>virsh list --all</div><div># is running now</div><div>/etc/init.d/libvirtd restart</div><div>virsh list --all</div><div># is no more running, but it should</div></div><div><br></div><div>Way more background and detail can be found at <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848317">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848317</a></div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(136,136,136);font-size:12.8px">Christian Ehrhardt</span><div style="color:rgb(136,136,136);font-size:12.8px">Software Engineer, Ubuntu Server</div><div style="color:rgb(136,136,136);font-size:12.8px">Canonical Ltd</div></div></div></div></div>
</div></div>