libvirt fails on creating a new VM as it tries to access to not-accessible mounted namespaces
Software environment
- Operating system: Ubuntu 22.04
- Architecture: amd64
- kernel version: 6.7.4
- libvirt version: 8.0
Description of problem
Steps to reproduce
- In a setup with schroot installed and with some running instances
- Create a new instance
- Fail
Additional information
Impossibile completare l'installazione: 'Unable to read from '/run/schroot/mount/unstable-eaa3a90b-b892-4808-912d-ce548b3ffc08/sys/fs/cgroup/systemd/machine.slice/machine-qemu\x2d5\x2dUbuntu\x2dVMware.scope/cgroup.controllers': File o directory non esistente'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install
installer.start_install(guest, meter=meter)
File "/usr/share/virt-manager/virtinst/install/installer.py", line 695, in start_install
domain = self._create_guest(
File "/usr/share/virt-manager/virtinst/install/installer.py", line 637, in _create_guest
domain = self.conn.createXML(initial_xml or final_xml, 0)
File "/usr/lib/python3/dist-packages/libvirt.py", line 4400, in createXML
raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: Unable to read from '/run/schroot/mount/unstable-eaa3a90b-b892-4808-912d-ce548b3ffc08/sys/fs/cgroup/systemd/machine.slice/machine-qemu\x2d5\x2dUbuntu\x2dVMware.scope/cgroup.controllers': File o directory non esistente
So it's unclear to me why it tries to access to such data mounted by schroot
:
/dev/mapper/ubuntu--vg-root on /run/schroot/mount/unstable-eaa3a90b-b892-4808-912d-ce548b3ffc08 type ext4 (rw,relatime,errors=remount-ro)