Now, I was trying to turn it on earlier today and found myself stuck at a black screen. The machine uses the following script when starting (located in /etc/libvirt/hooks/qemu.d/[VM name]/prepare/begin):
Code: Select all
#!/bin/bash
set -x
systemctl stop display-manager.service
echo 0 > /sys/class/vtconsole/vtcon0/bind
echo 0 > /sys/class/vtconsole/vtcon1/bind
echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind
sleep 3
virsh nodedev-detach pci_0000_2b_00_0
virsh nodedev-detach pci_0000_2b_00_1
modprobe vfio-pci
I tried removing pieces of it one by one and looking for changes, but nothing ever made a difference. I spent close to an hour trying out different combinations, trying if any of these can freeze the system on their own when executed from the terminal, nothing. I also verified that the IDs for the GPU (0000_2b_00_0 and _1) are indeed correct, that there are no problems with IOMMU groups, and that I only have these two virtual consoles.
I cannot tell whether the machine actually turns on but I just can't see anything due to some bug, or if the machine itself gets stuck while booting. However, if I am in this frozen state and I press the power button, after a few seconds the Mint logo will appear as if it was taking a long time to shut down. But even after 10 minutes it will not shut down, I have to press the reset button.
The weirdest thing about this is that I have not made any changes to the VM's configuration or to my hardware since I last had the machine working just fine. The only thing that might've changed is some Mint software. I tried switching to a different kernel (5.15 instead of 6.5) but there was no difference.