Installation of Scripts

Script Installation thanks to RisingPrism!

If the RisingPrism scripts do not work, or if you have an AMD card with the reset bug, use the akshaycodes scripts instead.

All AMD GPUs but the rDNA 2-based ones (6000 Series) have the reset bug. AK’s scripts workaround it by sleeping and waking the system when stopping and starting the VM, if you want to avoid this, you can try using the usual RisingPrism scripts with RadeonResetBugFix or VendorReset.

We’ll start by doing a git clone command to fetch the scripts.

git clone https://gitlab.com/risingprismtv/single-gpu-passthrough.git

In the newly created single-gpu-passthrough folder, run the installation as root:

sudo chmod +x install_hooks.sh

sudo ./install_hooks.sh

Verify that the files are installed correctly. You should have files in the following location:

/etc/systemd/system/libvirt-nosleep@.service
/usr/local/bin/vfio-startup
/usr/local/bin/vfio-teardown
/etc/libvirt/hooks/qemu

Because we previously set logs to output, you can find them here:

DarwinKVM.log    => /var/log/libvirt/qemu
custom_hooks.log => /var/log/libvirt/
libvirtd.log     => /var/log/libvirt/

But if the RisingPrism scripts aren’t working well for you and you end up using akshaycodes, you can find the logs at:

custom_hooks.log => /var/tmp/vfio-script.log

You can now continue to the next page.


DarwinKVM Docs Version 2.0.0~prerelease
Copyright © 2024 RoyalGraphX. Distributed by a BSD 3-Clause License.
Last Modified: Sat, 7 Sep 2024 18:00:00 CDT