Hello,
I’ve been taking notes as I’ve been on a journey similar to that which you sound to be taking. There are several sources for most information that I needed. It sounds like you’ve already got a handle of some of the things you will be working through to get VM’s working nicely.
You were rather sparse on details of your setup. I’m on AMD R9 3900x, Asus x570 tuf gaming (wi-fi), nvidia gtx 1070 (guest), radeon r9 390 (host), 32 GB ram. I’m on Manjaro XFCE.
There are a ton of options to solve various problems. The above poster mentioned something about scream. I would advise AGAINST using scream. For one, I never used it and my sound is fine. Second, I’m pretty sure scream uses ivshmem which looking-glass also uses. I think the dev of looking-glass also speaks against scream, I think it interferes with looking-glass. You may end up finding some information about tuning a buffer length related to pulseaudio (I think), which at some point I did do to fix my sound crackling. pulse audio fixes (obsolete?).
The first resource I used, maybe, was
heiko-sieger.info
When creating my VM setup, I used a spare keyboard and mouse. When I was ready, I followed
Passthroughpo.st evdev guide .
Also, I probably referenced a google search for ‘Arch Wiki evdev’. There are other options, but I love evdev. I’m a huge arch fan simply because the Arch Wiki normally has answers for every linux related task I’m facing, including many vfio topics.
Another comprehensive source I came across was,
Bryan Steiner’s Github
To save myself punching buttons on my second monitor, I use ddcutil, and a libvirt hooks script I got from passthroughpo.st. Ddcutil is not necessary if you run looking-glass; I run different VM’s different ways.
I use Devilspie2 to move my looking-glass window to my second monitor, maximize the window, then remove the window decorations, and remove the xfce4-panel; and upon closing the VM, to do the reverse.
Arch wiki passthrough
Arch wiki kernel parameters
Single GPU passthrough
Libvirt.org hooks libvirt: Hooks for specific system management
Things that I remember solving coming off the top of my head. If you calculate the size of your looking-glass ivshmem for 1080p, then later change to 1440p or higher, you’ll need to change the size of that /dev/shm file. I forget exactly how it gets created, but modification to the virt-manager xml file for the VM will not re-size it, but just delete it and it will be re-created at the proper size.
I took a time machine to the future, and here I am. When I left, the virtualization technology available to consumers was so incredibly limited and primitive. It’s really exciting because I’m able to completely remove myself from microsoft products from boot. And, basically run my windows needs in a borderless window, as like a live desktop feature.
I think that reminds me I need to remove or check that I’ve removed the microsoft secure boot keys from my BIOS. Eh, I guess I have a BIOS password so whether or not a microsoft bootloader passes signing still requires my input. I’m still waiting for my boot to break by something manjaro does though.
Good luck