My best guess (without actually looking at code at all) is that due to
the console fd closing, libvirt thinks the domain has died or crashed or
something and then it reaps it.
--
closing libvirt-lxc console kills container
https://bugs.launchpad.net/bugs/668369
You received this bug notification
Public bug reported:
Steps to reproduce: create a libvirt-lxc container and log in. When you
log out, the container dies.
Expected results: the container stays up and the console offers a new login
prompt.
(See
http://s3hh.wordpress.com/2010/09/07/easier-creation-of-libvirt-lxc-containers/
fo