Over the last few weeks I have been trying to move from Virtualbox to qemu/libvirt/spice.
I had been using virtualbox since 2018 under Xubuntu 18.04 then Xubuntu 22.04.
Once you get over the (massive) learning curve,
I have found the Spice/Libvirt/qemu/kvm setup intuitive, transparent and really nice to work with.
The problem is:
over my 3 VMs I'm getting about 1 crash a day.
First there is 1 message like this on journalctl:
Code:
[drm:qxl_gem_object_create [qxl]] *ERROR* Failed to allocate GEM object (261100, 1, 4096, -12)
kernel: [drm:qxl_alloc_ioctl [qxl]] *ERROR* qxl_alloc_ioctl: failed to create gem ret=-12
followed by many messages like this, usually about every 15 seconds:
Code:
kernel: [TTM] Buffer eviction failed
kernel: qxl 0000:00:01.0: object_init failed for (3149824, 0x00000001)
kernel: [drm:qxl_alloc_bo_reserved [qxl]] *ERROR* failed to allocate VRAM BO
and then
Code:
X connection to :0 broken (explicit kill or server shutdown)
The virt-viewer screen is frozen,
However I can ssh in and reboot.
The crash can happen if I am browsing, or deleting a (shared) directory in the file manager,
or when the VM is idle and I'm having a cup of tea.
I return to find it frozen.
It is independent of how much memory I allocate to the VM or to the QXL graphics driver.
Setup
The VMs are on a clean install of Xubuntu 22.04 with the -hwe kernel linux-image-6.5.0-28
running on 2 different Xubuntu 22.04 hosts, one with
the -hwe kernel linux-image-6.5.0-28-generic and one with the standard linux-image-5.15.0-105-generic.
Versions
I doubt it is relevant but the versions I am running:
qemu-system-x86 6.2, libvirt 8.0.0, libspice-vdagent 0.22.1, spice-client-gtk 0.39
It is *possible* that this kernel bug is the same:
https://lore.kernel.org/lkml/db4c8e7...emhuis.info/T/
(though being an ordinary ignoramus I cant be sure)
and also I can't tell from the thread when / in what kernel version it will be patched
though it doesn't seem like in the 6.8 kernel in 24.04.
Does anyone have any idea of possible causes?
or any mitigations I can take?
A crash in the middle of doing something serious could be disastrous.
Bookmarks