Damus
tomcat :arch_linux: profile picture
tomcat :arch_linux:
@tomcat :arch_linux:
PSA for anyone using #QEMU #KVM for #SingleGPUPassthrough
Guides are all over the net suggesting hooks scripts invoking pci devices, unloading/loading kernel modules, and other unnecessary things. Here's my current hook script for starting the VM:

systemctl stop display-manager


That's it. And the reverse for teardown:

systemctl start display-manager


#IOMMU groups still apply, and you need to pass the correct PCI devices to your VM, but everything else is handled automatically.

Disclaimer that this is how it works currently for my AMD card. I did have a working setup with my NVIDIA card that did unload/load kernel modules, however it seems things have come a long way since I set that up.

#virtualization #libvirt #vfio
1
:apa: スプリットショックウイルス † · 2w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq9fd3v44kcnpz6j6lsykhzxhatexph9c3u69jm835x7kgkj2l0h5qldhpny cc nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqlareccazvjjjn9x7cprulux8lhlc3n969la32fc96ld68ccjv67qz4dauk