Ok I found out a simlink from /usr/libexec/qemu-kvm to /usr/local/bin/qemu-system-x86_64 was enough.
Next I also needed spicy so I installed the nix package nixpkgs.spice-gtk.
Now it is attempting to start but I’m stuck with the following error:
socat E connect(5, AF=2 127.0.0.1:4440, 16): Connection refused
Cause I managed to get a fast windows 11 VM under Ubuntu with quickemu.
But qemu-kvm doesn’t support any display that I can use in Rocky, only: none and egl-headless.
The socat error above was due to the fact the vm was terminated with the error qemu-kvm: -display sdl,gl=on: SDL display supported is not available in this binary.
If I try a qemu from nix it includes support for sdl but it fails qemu-kvm cannot use dsl qemu-kvm: ../src/dispatch_common.c:885: epoxy_get_proc_address: Assertion 0 && "Couldn't find current GLX or EGL context.\n"' failed.
I have mesa GL libraries, but I don’t know how to start a GLX or EGL context.
So I went back virt-manager: the vm starts but the windows 11 installer refuses to install telling me it does not satisfy the minimal requierments: I configured 4 cores, 8GB of ram, a 100GB volume, and virtualized TPM. Not sure, but I don’t find any option to enable UEFI as suggested here: virt-amanger under “Hypervisor details” reports only “Chipset: BIOS” with no option to use UEFI.
Not sure, but I don’t find any option to enable UEFI as suggested here: virt-amanger under “Hypervisor details” reports only “Chipset: BIOS” with no option to use UEFI.
Yes, that one is a bit obscure: It is only selectable once BEFORE creating the VM.
To show the configuration dialog, in the “Create new virtual machine” wizard, you must check
the checkbox labeled “Customize configuration before install” in the “Step 5 of 5” dialog.
After that, the normal VM configuration dialog is shown. Now both the chipset and firmware
can be selected. Keep the chipset as “Q35” and in the firmware combobox you can then change
it from BIOS to various UEFI variants with or without secure boot.
In the doc you linked, the corresponding dialog (with the important checkbox) is shown just
before the heading " 3. Configure the virtual hardware for windows 11 in KVM."
And another thing: In that doc, they recommend selecting the chipset as i440FX
That might be necessary for win11 (My advice to use Q35 stems from OpenStack docs
and I myself have not tried win11 yet - i normally use several windows server VMs on OpenStack)
Yes, thanks that was the point.
Recreating the VM I managed to select the UEFI BIOS and to install Windows.
The qemu-kvm without spice is rather limited. Reoslution is 1280x800 and speed is suboptimal.
Tomorrow I’ll try to use the qemu from nix to see if I can get something better.