×

djazz's video: Switching GPU between Windows guest and Linux host without restarting xorg

@Switching GPU between Windows guest and Linux host without restarting xorg
DISCLAIMER: Please note that this video is over two years old! Go find something more up to date! I don't use this setup, I just showed off what *can* be done. The Windows 10 vm is running on KVM/qemu and is managed with libvirt/virt-manager. Using vfio, the gpu is unbound from the host and the guest vm picks it up. Looking Glass is used to copy the framebuffer of the Windows guest to the host with almost no latency. When the vm is turned off, the gpu can be rebound to the host and then used through bumblebee. Bumblebee is the secret sauce to getting this setup. It's is only required if you want to use the gpu without restarting xorg. The bumblebee service is started when the vm is not running, and bumblebee runs a xorg server in the background that's using the nvidia gpu. With primusrun/optirun, games can be run there and frames gets copied to the main xorg desktop. This works the same on desktop as on Optimus laptops. When I want to game on Windows again, all bumblebee service is stopped, modules are unloaded and vfio unbinds the gpu and the vm can be started. Hardware: CPU: Intel Skylake i7 6700k @ 4.3 GHz Memory: 16 GB DDR4 at 2400 MHz GPU: ASUS GeForce GTX 980 Ti 6GB STRIX DC3 OC PSU: EVGA 850W G2 CPU cooler: Noctua NH-D15 Motherboard: ASRock Z170 Extreme6 Video recorded with OBS Studio, using the VAAPI H.264 encoder, so the quality isn't great. KVM Looking Glass: https://github.com/gnif/LookingGlass Set up GPU-passthrough: https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF My scripts are based on https://git.mel.vin/melvin/scripts/tree/master/qemu/vfio

441

70
djazz
Subscribers
335
Total Post
78
Total Views
160.8K
Avg. Views
2.9K
View Profile
This video was published on 2018-01-02 21:34:14 GMT by @djazz on Youtube. djazz has total 335 subscribers on Youtube and has a total of 78 video.This video has received 441 Likes which are higher than the average likes that djazz gets . @djazz receives an average views of 2.9K per video on Youtube.This video has received 70 comments which are higher than the average comments that djazz gets . Overall the views for this video was lower than the average for the profile.

Other post by @djazz