Xlevus, an active member of /r/VFIO and developer, moved his virsh-patcher to The Passthrough POST’s repos on github, marking a significant milestone for our VFIO automation project.

virsh-patcherRead Also: vfioselect Makes Binding Devices Easy

virsh-patcher makes it easy to apply common adjustments, like error 43 fixes, or hugepages, via the CLI. It’s available on all distros via pip, from our github repo:

pip install -U https://github.com/PassthroughPOST/virsh-patcher/archive/master.zip

You’ll need a valid installation of python and pypi/pip to get it set up.

Usage

Once you have it installed, you can simply run:

virshpatcher [FLAGS] [/path/to/target/VM/xml.xml]

Where [FLAGS] can be --error43, --hugepages, --host-passthrough or --patch along to the path of your xml patch file. The patches will be applied to the XML. More native patches will be added as we develop the tool further. Planned patches include performance optimizations, automatic hook-helper registration, and a “trimmer” that gets rid of extraneous default devices.

We’d like to thank xlevus for contributing this tool, as it helps us avoid duplicate effort and gets us closer to building a fully automated VFIO deployment system. His contributions will help the community immeasurably. You can find him on github or in our Discord server.

We’re looking for people to test all of our VFIO-Tools projects, so whether you’re interested in hook-helper, vfio-select, or virsh-patcher, don’t be afraid to try them out, and let us know what you think.

Our long-term goal is to build a user-friendly, graphical tweaking and configuration frontend, and a guest-side client that allows for seamless changes to setup, inputs and other things, but it takes a lot of effort and time to get large projects like these off the ground.

If you like what we’re doing, and want to support us, consider becoming a Patron. You’ll gain access to exclusive content on our site, private channels on our Discord, and more.


Images courtesy Pixabay