Qemu fails to start with error " There is no option group 'spice'"
The bug (https://bugs.launchpad.net/qemu/+bug/1910696)[https://bugs.launchpad.net/qemu/+bug/1910696] seems to affect multiple distributions, I have the same problem on my Alpine machine, where 5.2.0 shows this error, whereas 5.0.0 does not. According to comment 2 from the link above,
Additional information: This error occurs only if spice is compiled as module (
--enable-modules
) and spice parameters are supplied from file with-readconfig /path/to/file
. If spice parameters are supplied from the command line (-spice param1=a,param2=b
) , an error does not occur. Possible workaround: Build most modules statically (https://salsa.debian.org/qemu-team/qemu/-/blob/master/debian/patches/build-most-modules-statically-hack.diff) or disable modules entirely (--disable-modules
)
This means that starting VMs using LXD does not work with qemu later than 5.1.0 at the moment, unless the distributions have patched the problem downstream.
It seems debian builds their modules statically as a workaround, but there doesn't seem to be a bug in this tracker for this issue. This bug report is an attempt to rectify that.