A quick shell script to change gpu drivers for direct VM passthrough.
- Clone the repo
- Allow execution (
chmod +x egpuctl
)
The options are very bare bones.
-v / --to-vfio
sets an override pointer such that the VM can access the raw PCI device-n / --to-host
removes the override pointer (or does nothing if there isn't one set already)
Typically this will not require a reboot, but YMMV.
./egpuctl --to-vfio
Some systems are finnicky with this, I strongly suggest rebooting when trying to use the gpu with the base system again.
./egpuctl --to-host
- Make/Model: Framework 13 / 12th Gen intel
- Distro: Arch
- Kernel: 6.1.37-1-lts
- eGPU Enclosure: Akitio Node Titan
- GPU: NVIDIA 1070ti
- VM OS: Windows 11
- Does not default to help screen