GPU allocation for gaming virtual machine on Linux system
GPU allocation for gaming virtual machine on Linux system
You're planning an experiment with your Lenovo W540. You want to run Linux Mint as the primary operating system, set up a gaming virtual machine that uses the eGPU as its physical GPU, and assign the internal workstation GPU to the host machine. The host will have three CPU threads allocated—three for the gaming VM and one for itself when the VM is active. This configuration sounds interesting if you manage it properly.
Level1 Techs offers useful documentation about IOMMU PCI passthrough. USB controllers can be routed similarly, though this approach is new and requires careful handling. CPU pinning doesn't function properly without cgroups. You can specify core counts, but the process may become unstable and guest tasks might interfere with the host.
I'm not familiar with many of these tools, but I can tell you which virtual machine software is being used.
I believe VirtualBox has compatibility with KVM, though I'm unsure about its performance.