diff --git a/README.md b/README.md index fa93ef1..84152b8 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ After successful installation of Windows, install virtio drivers from virtio CDR Remove Channel Spice, Display Spice, Video XQL, Sound ich* and other unnecessary devices. \ Now, click on ***Add Hardware***, select ***PCI Devices*** and add the PCI Host devices for your GPU's VGA and HDMI Audio \ Some GPU vBIOS needs to be patched for UEFI Support. \ ------ TODO: vBIOS patching ------ \ +***----- TODO: vBIOS patching ------*** \ To use patched vBIOS, edit VM's configuration to include patched vBIOS inside ***hostdev*** block of VGA ```sh @@ -266,6 +266,201 @@ systemctl start display-manager +### Keyboard/Mouse Passthrough +Modify libvirt configuration of your VM. Change first line to: + + + + + + + + + +
+virsh edit win10 +
+ +```xml + +``` + +
+ +Find your keyboard and mouse devices in ***/dev/input/by-id***. You'd generally use the devices ending with ***event-kbd*** and ***event-mouse***. And the devices in your configuration right before closing `` tag. \ +Replace ***MOUSE_NAME*** and ***KEYBOARD_NAME*** with your device id. + + + + + + + + + +
+virsh edit win10 +
+ +```xml +... + + + + + + + +``` + +
+ +You need to include these devices in your qemu config. + + + + + + + + +
+/etc/libvirt/qemu.conf +
+ +```sh +... +user = "YOUR_USERNAME" +group = "kvm" +... +cgroup_device_acl = [ + "/dev/input/by-id/KEYBOARD_NAME", + "/dev/input/by-id/MOUSE_NAME", + "/dev/null", "/dev/full", "/dev/zero", + "/dev/random", "/dev/urandom", + "/dev/ptmx", "/dev/kvm", "/dev/kqemu", + "/dev/rtc","/dev/hpet", "/dev/sev" +] +... +``` + +
+ +Also, switch from PS/2 devices to virtio devices. Add the devices inside ****** block + + + + + + + + +
+virsh edit win10 +
+ +```xml +... + + ... + + + ... + +... +``` + +
+ +### **Audio Passthrough** +VM's audio can be routed to the host. You need ***Pulseaudio***. \ +Modify the libvirt configuration of your VM. + + + + + + + + + +
+virsh edit win10 +
+ +```xml +... + + ... + + + + + + + + +``` + +
+ +### Video card driver virtualisation detection +Video Card drivers refuse to run in Virtual Machine, so you need to spoof Hyper-V Vendor ID. + + + + + + + + +
+virsh edit win10 +
+ +```xml +... + + ... + + ... + + ... + + ... + +... +``` + +
+ +Nvidia guest drivers also require hiding the KVM CPU leaf: + + + + + + + + +
+virsh edit win10 +
+ +```xml +... + + ... + + + + ... + +... +``` + +
+ ### **See Also** > [Single GPU Passthrough by joeknock90](https://github.com/joeknock90/Single-GPU-Passthrough)
> [Single GPU Passthrough by YuriAlek](https://gitlab.com/YuriAlek/vfio)