FS#64789 - [libvirt] Version 5.9 can't start lxc containers
Attached to Project:
Community Packages
Opened by Darrell (denns) - Tuesday, 10 December 2019, 07:03 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 04 May 2023, 01:48 GMT
Opened by Darrell (denns) - Tuesday, 10 December 2019, 07:03 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 04 May 2023, 01:48 GMT
|
Details
With libvirt 5.9.0-1, LXC containers are not able to start.
It fails with the following error:
> virsh -c lxc:/// start myguest error: Failed to start domain myguest error: internal error: guest failed to start: free(): invalid size If I downgrade to libvirt 5.8.0-1, it works fine: > virsh -c lxc:/// start myguest Domain myguest started In case the container config is relevent - it's an Arch container, unprivileged (idmap), using systemd init. |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Thursday, 04 May 2023, 01:48 GMT
Reason for closing: No response
Additional comments about closing: Closing this as assumed fixed for now.
Thursday, 04 May 2023, 01:48 GMT
Reason for closing: No response
Additional comments about closing: Closing this as assumed fixed for now.
virsh -c lxc:/// start mycontainer
error: Failed to start domain mycontainer
error: internal error: guest failed to start: free(): invalid size
https://libvirt.org/git/?p=libvirt.git;a=commit;h=140c756f5ca598b5640d3a5342e8914e7f88bc9b
I will try and do some further testing when I have some time.
Try increasing the logging for the lxc category.
[1] https://libvirt.org/logging.html
# virsh -c lxc:/// start mycontainer
error: Failed to start domain mycontainer
error: internal error: guest failed to start: double free or corruption (out)
virsh -c lxc:/// dumpxml mycontainer > mycontainer.xml
error from service: GDBus.Error:org.freedesktop.machine1.NoMachineForPID: PID 623 does not belong to any known machine
I think it may only affect containers that use user namespaces (<idmap> section in guest xml).
While googling the error, I found https://bugzilla.opensuse.org/show_bug.cgi?id=1183247 which contains more details.