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!