Skip to content

A simple python script to automatically enable or disable GPU passthrough with VFIO

Notifications You must be signed in to change notification settings

Prav-64/VFIO-Switcher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

VFIO-Switcher

A simple python script to automatically enable or disable GPU passthrough with VFIO. This is a helper script to enable or disable VFIO if needed. It can be modified for hardware specific needs.

Refer to my GUIDE for complete setup. After initial setup, this script can be used to automate GPU isolation, blacklisting and running mkinitcpio, for both enabling and disabling GPU passthrough.

If you are using AMD GPU, with an Intel CPU, this script should work for you out of the box, just replace the BusID with your own. If your hardware is different, this script can still be used as a reference to write your own.

Script must be run with sudo.

Disclaimer: Use the script at your own risk, author not responsible for any damage to your device.

About

A simple python script to automatically enable or disable GPU passthrough with VFIO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%