Hi everyone, has anyone tried running microVMs under Incus?
I’ve attempted to set it up but haven’t had any success so far. Below is the relevant part of my profile configuration:
raw.qemu: |-
-M microvm
-nographic
-enable-kvm
-bios /usr/share/qemu/bios-microvm.bin
raw.qemu.conf: |-
[global][0]
[global][1]
[smp-opts]
[object "mem0"]
[numa]
[boot-opts]
[device "qemu_pcie0"]
[device "qemu_balloon"]
[device "dev-qemu_rng"]
[device "qemu_keyboard"]
[device "qemu_tablet"]
[device "qemu_vsock"]
[device "dev-qemu_serial"]
[device "qemu_spice"]
[device "qemu_serial_legacy"]
[device "qemu_serial"]
[device "qemu_spicedir"]
[device "qemu_usb"]
[device "qemu_spice-usb1"]
[device "qemu_spice-usb2"]
[device "qemu_spice-usb3"]
[device "qemu_pcie1"]
[device "qemu_scsi"]
[device "qemu_pcie2"]
[device "dev-qemu_config-drive-9p"]
[device "dev-qemu_agent-drive-9p"]
[device "qemu_pcie3"]
[device "qemu_gpu"]
[device "qemu_pcie4"]
[device "qemu_pcie5"]
[device "qemu_pcie6"]
[device "qemu_pcie7"]
[device "qemu_pcie8"]
security.secureboot: "false"
I’m trying to run a stripped-down variant of a VM via Incus alongside my regular containers. Generic VMs work without any issues, but microVMs are giving me trouble.
The raw.qemu
part is my attempt to remove PCIe devices that are unsupported in microVMs. Might be wrong, now I am ending with the error:
Error: Failed to add CPUs: Failed to query hotpluggable CPUs: Failed to query hotpluggable CPUs: machine does not support hot-plugging CPUs
Has anyone managed to get this working, or is there something I’m missing in the configuration?
Or is it possible to run microvm somehow in general under incus?
Side note: Microvm works for me without any problem on the same machine directly via qemu commands.