From 43ff568fc105dae4b2b6bb145c86dc21d34b00b6 Mon Sep 17 00:00:00 2001 From: QaidVoid <12017109+QaidVoid@users.noreply.github.com> Date: Tue, 29 Jun 2021 14:32:26 +0545 Subject: [PATCH] Add troubleshooting in README --- README.md | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 55b934f..19ba195 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ * **[Video Card Virtualisation Detection](#video-card-driver-virtualisation-detection)** * **[Audio Passthrough](#audio-passthrough)** * **[GPU vBIOS Patching](#vbios-patching)** -* **[TROUBLESHOOTING](TROUBLESHOOTING.md)** +* **[TROUBLESHOOTING](#troubleshooting)** ### **Enable & Verify IOMMU** ***Set the kernel paramater depending on your CPU.*** \ @@ -501,10 +501,34 @@ To use patched vBIOS, edit VM's configuration to include patched vBIOS inside ** +### **Troubleshooting** +### Where is the log? +The logs are stored in ***/var/log/libvirt/qemu/vm_name.log***, where vm_name is the name of the VM you're trying to boot. \ +By reading the few lines at the bottom of the log file, you get general idea of what might be an issue. + +### **warning: host doesn't support requested feature, what is this?** +This warning usually means that the feature guest is requesting is not available on host. \ +After the warning message, on same line, you'll see something like MSR(490H).vmx-entry-load-perf-global-ctrl \ +That's the feature it's missing, but I have no idea what most of them indicate. + +#### How to fix it? +Make sure you've enabled ***Intel VT-d*** or ***AMD-Vi*** in BIOS Settings. \ +If you've set ***BIOS*** as Firmware for Guest, change to ***UEFI***. \ +In the cpu section in log file, you might see something like this: \ +***-cpu Skylake,vme=on,ss=on,vmx=on,...***. Although, it works in most cases, it doesn't in some. \ +Make sure you've set ***host-passthrough*** CPU model which'll produce ***-cpu host,...*** instead. + +### **shutting down, reason=failed, but no actual error?** +If the VM fails without an error, SSH into your host machine, and run libvirt start script from SSH Client. \ +If the script works without producing error, you'd get blank screen, and you can try starting VM from SSH Client, which might provide error message. \ +Both commands should be run as superuser. +```sh +sh /etc/libvirt/hooks/qemu.d/win10/prepare/begin/start.sh +virsh start win10 +``` + ### **See Also** > [Single GPU Passthrough by joeknock90](https://github.com/joeknock90/Single-GPU-Passthrough)
> [Single GPU Passthrough by YuriAlek](https://gitlab.com/YuriAlek/vfio)
> [ArchLinux PCI Passthrough](https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF)
> [Gentoo GPU Passthrough](https://wiki.gentoo.org/wiki/GPU_passthrough_with_libvirt_qemu_kvm)
- -