libvirt Windows 10 VM issue
Solution 1:
After digging around for a solution, I had another look at the kernel parameters that I was passing at boot in `/etc/default/grub'. The relevant line in this file is this one
GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor udev.log_priority=3 amd_iommu=on iommu=pt pcie_ports=compat pci=nommconf"
Initially, I had no setting for the pcie_ports
and I believe auto
is used as the default. Reading up on this I noticed that there are two more options: native
(which appears in a few tutorials I have stumbled upon, but it doesn't solve my problem) and compat
.
Setting pcie_ports=compat
solved the restart and shutdown problem with my Windows 10 VM.
The pci=nommconf
I have set because I have a very old HP printer that has an integrated card reader which generates a lot of errors in dmesg
and it is very unstable in windows. With this, I get a bit more use out of this printer.
I am unsure what are the consequences of pcie_ports=compat
on my host OS! So I am curious if anyone can shine a bit more light on this issue!