I was running Ubuntu 18.04 in a KVM VM on Fedora 30.
At some point the host machine got into trouble with Spice. The kernel of the host machine says:
Oct 20 14:16:46 host.name kernel: traps: SPICE Worker[22505] trap int3
ip:7f43f3c9e095 sp:7f43e8ffe1f0 error:0 in
libglib-2.0.so.0.6000.7[7f43f3c63000+82000]
In the guest system log /var/log/libvirt/qemu/muh-ubuntu.log
we find:
(process:22445): Spice-ERROR **: 14:16:46.760:
red-parse-qxl.c:349:red_get_clip_rects: assertion
`(uint64_t) num_rects * sizeof(QXLRect) == size' failed
2019-10-20 12:16:47.427+0000: shutting down, reason=crashed
The whole host GUI froze, then VM keeled over like a sick beluga.
Now the Virtual Machine image seems to have been seriously affected (surprise!). When I start it, I just get "error: attempt to read or write outside of disk `hd0'. Press any key to continue..." but keyboard input isn't even being accepted.
Is it foobared or is there some way to salvage something? (As in, access the filesystem in the VM image?)
All right, I have been able to access the image's filesystem and copy files off it using
qemu-nbd
. This utility comes with packageqemu-img
on Fedora.Specifically:
No errors found? Nice.
Then:
With some luck, the filesystem of the image can be accessed under
~/ubuntufs
and one can copy files off it.This also allows one to check the VM's kernel log last messages:
Addendum
I tried starting the VM again and it worked this time. This is really weird. Did it self-repair?