Libvirt fails to start VM with virtio related "unsupported configuration"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Libvirt fails to start any VM on a fresh OpenStack Zed install on Rocky 9, also freshly installed. The logs show the line below:
[root@cs2 ~]# openstack server delete test; openstack server create --flavor "1CPU-512RAM-
[root@cs2 ~]# tail -f /var/log/
....
libvirt.
....
I attached the full log that also include the machine configuration nova generated to start the VM.
I tried installing packages "qemu-kvm-
Trying to start a VM with virtio video directly on the host via vist-manager yields the same error:
Unable to complete install: 'unsupported configuration: USB redirection is not supported by this version of QEMU'
Traceback (most recent call last):
File "/usr/share/
callback(
File "/usr/share/
guest.
File "/usr/share/
doboot, transient)
File "/usr/share/
domain = self.conn.
File "/usr/lib64/
if ret is None:raise libvirtError(
libvirtError: unsupported configuration: USB redirection is not supported by this version of QEMU
Hinting that the problem is probably not on nova's side.
Finally, qemu seems to be able to spawn a VM with virtio vga device:
[root@cs2 ~]# /usr/libexec/
qemu-kvm: Machine type 'pc-i440fx-
qemu-kvm: warning: CPU model qemu64-x86_64-cpu is deprecated -- use at least 'Nehalem' / 'Opteron_G4', or 'host' / 'max'
VNC server running on ::1:5900
^Cqemu-kvm: terminating on signal 2
[root@cs2 ~]#
So the issue seems to be on Libvirt side.
I encountered the same issue on another install on rocky 9, but I do not remember how I solved it. Since the problem happened twice independently, I suppose you might have encountered it too. Are you aware of a solution?
The problem seems to have disappeared after I had installed the list of packages below
qemu-kvm-ui-opengl device- display- virtio- gpu device- display- virtio- gpu-gl device- display- virtio- gpu-pci device- display- virtio- gpu-pci- gl device- display- virtio- vga device- display- virtio- vga-gl device- usb-host device- usb-redirect
qemu-kvm-
qemu-kvm-
qemu-kvm-
qemu-kvm-
qemu-kvm-
qemu-kvm-
qemu-kvm-
qemu-kvm-
Problem is, I tried to uninstall them all to check which fixed the issue, but I could not pinpoint to the definitive culprit. I could not remove "qemu-kvm- device- display- virtio- vga" because it would uninstall openstack- nova-compute too. I had another error after I removed "qemu-kvm- device- display- virtio- gpu" that prevented any VM to be powered up.
When these to packages are installed, and every other is uninstalled, I can create VMs, but the logs show the error below:
Dec 16 16:37:32 cs2 nova-compute[4266]: 2022-12-16 16:37:32.752 4266 ERROR oslo_policy._parser [None req-bd5cf02f- c95f-4c3e- 9c36-3bbc3a66c3 a5 1018 dacc3bfe218f447 6bb12cc493b98c9 41 - - default default] Failed to understand rule true: ValueError: not enough values to unpack (expected 2, got 1) python3. 9/site- packages/ oslo_policy/ _parser. py", line 209, in _parse_check c95f-4c3e- 9c36-3bbc3a66c3 a5 1018 dacc3bfe218f447 6bb12cc493b98c9 41 - - default default] Failed to understand rule true: ValueError: not enough values to unpack (expected 2, got 1) python3. 9/site- packages/ oslo_policy/ _parser. py", line 209, in _parse_check libvirt. driver [None req-bd5cf02f- c95f-4c3e- 9c36-3bbc3a66c3 a5 1018 dacc3bfe218f447 6bb12cc493b98c9 41 - - default default] [instance: 64271687- 6925-4024- 8311-f7a4db5453 ef] Creating image(s)
Dec 16 16:37:32 cs2 nova-compute[4266]: 2022-12-16 16:37:32.752 4266 ERROR oslo_policy._parser Traceback (most recent call last):
Dec 16 16:37:32 cs2 nova-compute[4266]: 2022-12-16 16:37:32.752 4266 ERROR oslo_policy._parser File "/usr/lib/
Dec 16 16:37:32 cs2 nova-compute[4266]: 2022-12-16 16:37:32.752 4266 ERROR oslo_policy._parser kind, match = rule.split(':', 1)
Dec 16 16:37:32 cs2 nova-compute[4266]: 2022-12-16 16:37:32.752 4266 ERROR oslo_policy._parser ValueError: not enough values to unpack (expected 2, got 1)
Dec 16 16:37:32 cs2 nova-compute[4266]: 2022-12-16 16:37:32.752 4266 ERROR oslo_policy._parser
Dec 16 16:37:32 cs2 nova-compute[4266]: 2022-12-16 16:37:32.752 4266 ERROR oslo_policy._parser [None req-bd5cf02f-
Dec 16 16:37:32 cs2 nova-compute[4266]: 2022-12-16 16:37:32.752 4266 ERROR oslo_policy._parser Traceback (most recent call last):
Dec 16 16:37:32 cs2 nova-compute[4266]: 2022-12-16 16:37:32.752 4266 ERROR oslo_policy._parser File "/usr/lib/
Dec 16 16:37:32 cs2 nova-compute[4266]: 2022-12-16 16:37:32.752 4266 ERROR oslo_policy._parser kind, match = rule.split(':', 1)
Dec 16 16:37:32 cs2 nova-compute[4266]: 2022-12-16 16:37:32.752 4266 ERROR oslo_policy._parser ValueError: not enough values to unpack (expected 2, got 1)
Dec 16 16:37:32 cs2 nova-compute[4266]: 2022-12-16 16:37:32.752 4266 ERROR oslo_policy._parser
Dec 16 16:37:32 cs2 nova-compute[4266]: 2022-12-16 16:37:32.758 4266 INFO nova.virt.
I will post again if I encounter the same issue again next time I setup a comp...