This repository includes my notes for setting up a VGA Passthrough on a Linux machine (it's targeted to Ubuntu; more advanced users can adapt it to other distributions).
VGA passthrough is a setup that allows virtualized environments (QEMU, in this case) to perform 3D acceleration at near native speed.
The rationale for this document is that the information on the subject is spread, confusing and outdated, so I've decided to create a single, consistent document - a reference.
- General introduction
- Introduction to VGA Passthrough
- VGA Passthrough Problems
- Basic setup
- Input handling
- Monitors and audio
- Troubleshooting
- Possible improvements
- Profiling KVM
- Sample IOMMU groups
- QEMU Disk utils/LibGuestFS handy commands
- References
Contributions or any other form of help (improvements, extensions...) are very appreciated.
The main area to look at is Possible improvements; possibly, minor things can be improved in Basic setup.
The best workflow is to create a Pull request with the modifications, but you can also send me an email.
This guide has been tested on several systems (see the Sample IOMMU groups chapter), using the LTS Ubuntu versions from 16.04 onwards.