Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 758872 - app-emulation/libvirt-6.10.0: libvirt_lxc container fail to start - incompatible with sys-apps/systemd[cgroup-hybrid]
Summary: app-emulation/libvirt-6.10.0: libvirt_lxc container fail to start - incompati...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-07 04:19 UTC by Matthias Maier
Modified: 2020-12-22 22:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
(almost) minimal lxc xml config demonstrating the problem (test.xml,1.02 KB, text/xml)
2020-12-22 22:23 UTC, Matthias Maier
Details
emerge --info libvirt (emerge-info.txt,7.95 KB, text/plain)
2020-12-22 22:24 UTC, Matthias Maier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Maier gentoo-dev 2020-12-07 04:19:59 UTC
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.
Comment 1 Michal Privoznik 2020-12-10 08:31:10 UTC
Matthias, any luck? I can start my containers just fine. What's your XML look like?
Comment 2 Matthias Maier gentoo-dev 2020-12-10 19:15:18 UTC
On it. I hope to find some time for this this evening :-)
Comment 3 Matthias Maier gentoo-dev 2020-12-22 22:23:18 UTC
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.
Comment 4 Matthias Maier gentoo-dev 2020-12-22 22:24:33 UTC
Created attachment 679254 [details]
emerge --info libvirt
Comment 5 Matthias Maier gentoo-dev 2020-12-22 22:28:02 UTC
... and indeed this was the issue.
Comment 6 Larry the Git Cow gentoo-dev 2020-12-22 22:46:12 UTC
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(+)