SPICE support was dropped in RHEL 9!

Hello I’m facing this error:
Error: Failed instance creation: Failed creating instance record: Instance type "virtual-machine" is not supported on this server: QEMU failed to run feature checks
when trying to create/launch a desktop VM in incus.

I have incus 6.12 and spice-gtk-tools installed from the @ligenix repository in Rocky 9.5, and made

sudo ln -s /usr/libexec/qemu-kvm /usr/bin/qemu-system-x86_64 because incus was asking for /usr/bin/qemu-system-x86_64

What am I doing wrong?

So I’ve been searching out here, and find this:

that proposes changes in incus servicel file

Change Environment=INCUS_OVMF_PATH=/usr/share/ovmf/x64 to Environment=INCUS_EDK2_PATH=/usr/share/ovmf/x64

that changes the beaviour. Now I can create the VM, but got an error when trying to start it:


Error: Failed to run: forklimits limit=memlock:unlimited:unlimited fd=3 fd=4 -- /usr/bin/qemu-system-x86_64 -S -name mydesktop -uuid 79589d61-655e-4123-8120-64de969d6b49 -daemonize -cpu host,hv_passthrough -nographic -serial chardev:console -nodefaults -no-user-config -sandbox on,obsolete=deny,elevateprivileges=allow,spawn=allow,resourcecontrol=deny -readconfig /run/incus/mydesktop/qemu.conf -spice unix=on,disable-ticketing=on,addr=/run/incus/mydesktop/qemu.spice -pidfile /run/incus/mydesktop/qemu.pid -D /var/log/incus/mydesktop/qemu.log -smbios type=2,manufacturer=LinuxContainers,product=Incus -run-with user=nobody: qemu-system-x86_64: -spice unix=on,disable-ticketing=on,addr=/run/incus/mydesktop/qemu.spice: There is no option group 'spice'
: signal: segmentation fault (core dumped)

Anyone can help?

Ok. Got it working!

I need to install complete thing from @ligenix repository (basically, follow instructions and install virt-manager). So

dnf install virt-manager
dnf install incus
systemctl edit --full incus.service

and change

Environment=INCUS_OVMF_PATH=/usr/share/edk2/ovmf to
Environment=INCUS_EDK2_PATH=/usr/share/edk2ovmf

then

systemctl restart incus

init the incus instance and you can launch and access desktop VMs!

1 Like

Hello kinu, I was offline from my laptop this weekend and a lot busy at work these days.

I added incus to this repository when Michael Stauber from Adventurine asked me to enable virtio-9p in qemu for incus support.

Since then, I’ve been trying to maintain incus as best I can, so any help is welcome.

I just released a new version that fixes the path regression Environment=INCUS_EDK2_PATH=/usr/share/edk2ovmf and adds a symlink to /usr/bin/qemu-system-%{_arch}

Thank you very much!

Just decided and moved from Centos Stream 8 to Rocky 8 and then to Rocky 9.
Now getting ready to have my old VMs working, met this:

 Problem 2: glib2-2.68.4-14.el9_4.1.i686 from @System  does not belong to a distupgrade repository
  - cannot install both glib2-2.69.3-1.el9.x86_64 from copr:copr.fedorainfracloud.org:ligenix:enterprise-qemu-spice and glib2-2.68.4-14.el9_4.1.x86_64 from @System
  - cannot install both glib2-2.68.4-14.el9_4.1.x86_64 from baseos and glib2-2.69.3-1.el9.x86_64 from copr:copr.fedorainfracloud.org:ligenix:enterprise-qemu-spice
  - cannot install the best update candidate for package glib2-2.68.4-14.el9_4.1.x86_64
  - cannot install the best update candidate for package glib2-2.68.4-14.el9_4.1.i686

Don’t know how critical is glib2 here so I didn’t dare to skip this package yet.

Problem 2: glib2-2.68.4-14.el9_4.1.i686 from @System does not belong to a distupgrade repository

Hello, try the following dnf command, and if it is correct, run the dnf install again:
dnf remove glib2-2.68.4-14.el9_4.1.i686

Thx, was delayed fixing networking… I have disabled NetworkManager ages ago since CentOS 7 to have my VMs talk to their host and now interfaces are disabled if not managed…

So the i686 package was causing that… I don’t remember why I have that, I still have old 32-bit packages around so I’ll eventually know if it is necessary, Thanks a lot.