When upgrading from 6.9.0 to 6.10.0 none of my libvirt_lxc container start up any more. Relevant config line in /var/log/libvirt/lxc/<container>.log: 2020-12-07 04:15:59.102+0000: starting up PATH=/opt/intel/compilers_and_libraries_2020.1.217/linux/bin/intel64:/opt/intel/compilers_and_libraries_2020.1.217/linux/bin/ia32:/opt/intel/compilers_and_libraries_2020.1.217/linux/mpi/intel64/bin/:/opt/intel/vtune_profiler_2020.0.607630/bin64:/opt/intel/vtune_profiler_2020.0.607630/bin32:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib64/opencascade-7.4.0/ros/bin:/usr/lib/llvm/11/bin:/usr/lib/llvm/10/bin:/usr/lib/llvm/9/bin:/usr/lib64/trilinos/bin LIBVIRT_DEBUG=3 LIBVIRT_LOG_OUTPUTS=3:stderr /usr/libexec/libvirt_lxc --name amd64 --console 25 --security=none --handshake 30 --veth vnet1 PATH=/bin:/sbin TERM=linux container=lxc-libvirt HOME=/ container_uuid=6b5e6ca7-b02d-4790-82ab-b610f01b49dd LIBVIRT_LXC_UUID=6b5e6ca7-b02d-4790-82ab-b610f01b49dd LIBVIRT_LXC_NAME=amd64 /usr/lib/systemd/systemd 2020-12-07 04:15:59.213+0000: 1: info : libvirt version: 6.10.0 2020-12-07 04:15:59.213+0000: 1: info : hostname: peregrine 2020-12-07 04:15:59.213+0000: 1: warning : lxcContainerUnmountSubtree:530 : Failed to unmount '/.oldroot/tmp', trying to detach subtree '/.oldroot': Invalid argument 2020-12-07 04:15:59.239+0000: 76183: info : libvirt version: 6.10.0 2020-12-07 04:15:59.239+0000: 76183: info : hostname: peregrine 2020-12-07 04:15:59.239+0000: 76183: warning : virLXCControllerEventSend:2219 : Dropping event 1 because libvirtd is not connected The last warning is new (compared to version 6.9.0) I will bisect this issue down to the offending commit tomorrow.
Matthias, any luck? I can start my containers just fine. What's your XML look like?
On it. I hope to find some time for this this evening :-)
Created attachment 679251 [details] (almost) minimal lxc xml config demonstrating the problem It seems that the <idmap></idmap> block is causing the problem. Removing <idmap> <uid start='0' target='1000000' count='100000'/> <gid start='0' target='1000000' count='100000'/> </idmap> from the lxc xml file allows me to start the xml container. I have not yet been able to bisect this issue to a single commit. But I have a hunch: I am now checking whether the fact that I am still running sys-apps/systemd[cgroup-hybrid] is causing the issue.
Created attachment 679254 [details] emerge --info libvirt
... and indeed this was the issue.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d033c2150e644a680734dcae7b3be0cdd634f37 commit 6d033c2150e644a680734dcae7b3be0cdd634f37 Author: Matthias Maier <tamiko@gentoo.org> AuthorDate: 2020-12-22 22:43:00 +0000 Commit: Matthias Maier <tamiko@gentoo.org> CommitDate: 2020-12-22 22:46:00 +0000 app-emulation/libvirt: ensure sys-apps/systemd w USE=-cgroup-hybrid Closes: https://bugs.gentoo.org/758872 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Matthias Maier <tamiko@gentoo.org> app-emulation/libvirt/libvirt-6.10.0-r2.ebuild | 1 + app-emulation/libvirt/libvirt-9999.ebuild | 1 + 2 files changed, 2 insertions(+)