Roboto3x

Quick and Dirty KVM

May 11th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. Quick KVM prep with PopOS 20.04
  2. ASUS X399
  3. 64GB
  4. AMD Treadripper 1650x
  5.  
  6. sudo dmesg | grep AMD-Vi
  7.  
  8. [ 0.500525] AMD-Vi: Interrupt remapping enabled
  9. [ 0.500525] AMD-Vi: Virtual APIC enabled
  10. [ 0.500688] AMD-Vi: Lazy IO/TLB flushing enable
  11.  
  12. motherboard BIOSes can be buggy. The virtualization was enabled in my BIOS, but I had to turn it ON and OFF
  13. to get it to work again. Very rare, I'm not sure what caused it. So always check before proceeding.
  14.  
  15. PopOS doesn't use the standard /etc/grub file arg entries
  16.  
  17. so the following enabled
  18.  
  19. kernelstub -a amd_iommu=on OR intel_iommu
  20. kernelstub video=vesafb:off,efifb:off (Only for)
  21.  
  22. /etc/modules-load.d
  23. vfio-pci.conf
  24. vfio-pci
  25.  
  26. /etc/modprobe.d
  27. blacklist.conf
  28. blacklist snd_hda_intel
  29. blacklist nouveau
  30. blacklist amdgpu
  31.  
  32. vfio.conf
  33. options vfio-pci ids=10de:1c82,10de:0fb9,1002:67ff,1002:aae0,10de:1e87,10de:10f8,10de:1ad8,10de:1ad9
  34.  
  35. sudo update-initramfs -uv (reboot after)
  36.  
  37. # The Device Numers Obtained from
  38. # lspci -nnk | grep -E "1050|2080|560"
  39.  
  40. (Showing only first output for AMD rx 560 the info can be obtained from first line towards the end)
  41.  
  42. 09:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] [10de:1c82] (rev a1)
  43. Subsystem: eVga.com. Corp. GP107 [GeForce GTX 1050 Ti] [3842:6253]
  44. ----------------------------------------------------------------------------------------------------------------------
  45.  
  46. PLEASE KEEP YOUR KVM stuff. Linux is stable in general, but quirks do happen.
  47. So I highly recommend - if using disk images, a separate partition.
  48.  
  49. I passthrough my Win10 physical disk, without issues. I can boot back into baremetal Win10 and back to Qemu Win10
  50. with NO issues.
  51.  
  52. Shortcomings. Make sure USB Power Management in the guest is enabled.
  53. Video Power Management (ie Time to turn off screen) OFF. If possible, make sure to cleanly close your guest (aka powerdown from host)
  54.  
  55. Cool Things. I have 16 cores and I run all 3 VMs with 16 cores simultaneously. Its not CRAZY, its meant for this
  56. and it works well. Can two separate VM users game, yes and it is just as smooth as bare-metal.
  57.  
  58. ----------------------------------------------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment