====== Linux KVM ====== ===== How to install ===== * https://linuxize.com/post/how-to-install-kvm-on-ubuntu-20-04/ ===== How to boot Dual Boot Windows Partition ===== * https://jianmin.dev/2020/jul/19/boot-your-windows-partition-from-linux-using-kvm/ * http://disq.us/p/2ltujmy ==== Windows Partition Dual Mount ==== * https://superuser.com/a/1010125 ==== Spoof BIOS & Mainboard to avoid re-activation ==== * https://www.remembertheusers.com/2021/06/0758-windows-10-p2v.html * https://gist.github.com/smoser/290f74c256c89cb3f3bd434a27b9f64c * https://libvirt.org/formatdomain.html#smbios-system-information ===== GPU Acceleration ===== * https://wiki.archlinux.org/title/QEMU/Guest_graphics_acceleration * https://arccompute.com/blog/libvfio-commodity-gpu-multiplexing/ * https://github.com/Arc-Compute/LibVF.IO/ * https://github.com/manalito/LibVF.IO * https://askubuntu.com/a/1389829 * https://www.spice-space.org/download.html (spice-guest-tools) * https://github.com/mysteryx93/GPU-Passthrough-with-Optimus-Manager-Guide * https://forum.level1techs.com/t/solved-unable-to-isolate-gpu-for-vfio-workaround/196250/69?page=4 * https://github.com/tuh8888/libvirt_win10_vm * https://github.com/QaidVoid/Complete-Single-GPU-Passthrough * https://superuser.com/questions/1804067/how-do-i-get-a-multi-display-virgl-3d-accelerated-qemu-vm-on-a-nvidia-card-in-vi Due to NVIDIA GPUs needing a license to be able to use vGPU it's currently not really recommended to passthrough a vGPU but instead the whole GPU. The best approach for a desktop machine is to use the single GPU passthrough approach which stops the X server and starts up a pre-configured virtual machine. ===== Seamless Windows ===== * https://github.com/Fmstrat/winapps * Newer/More up-to-date: https://github.com/winapps-org/winapps * https://github.com/Xpra-org/xpra * Snap does not work inside xpra (or so it seems). * https://www.baeldung.com/linux/snap-remove-disable ===== Input Passthrough ===== * https://passthroughpo.st/using-evdev-passthrough-seamless-vm-input/ ===== Hooks ===== * https://github.com/portellam/libvirt-hooks/tree/master * https://github.com/PassthroughPOST/VFIO-Tools/tree/master ===== Nested Virtualization ===== * https://docs.fedoraproject.org/en-US/quick-docs/using-nested-virtualization-in-kvm/ ===== Drivers ===== ==== NVIDIA ==== * https://www.nvidia.com/download/driverResults.aspx/213194/en-us/ * https://cloud.google.com/compute/docs/gpus/grid-drivers-table * https://foxi.buduanwang.vip/pan/vGPU/vgpu_unlock/drivers/ === 535.129.03 === * https://us.download.nvidia.com/XFree86/Linux-x86_64/535.129.03/NVIDIA-Linux-x86_64-535.129.03.run * https://storage.googleapis.com/nvidia-drivers-us-public/GRID/vGPU16.2/NVIDIA-Linux-x86_64-535.129.03-grid.run * https://foxi.buduanwang.vip/pan/vGPU/vgpu_unlock/drivers/NVIDIA-Linux-x86_64-535.129.03-vgpu-kvm-custom.run ===== Sample Configurations ===== ==== Old Notebook ==== [[infrastructure:inventory:hardware:notebooks:g500s]] win11 4d99fd4a-4ffc-486f-8cf8-652c23f07b46 7168000 7168000 4 hvm destroy restart destroy /usr/bin/qemu-system-x86_64