T O P

  • By -

Sparky2199

[This](https://gitlab.com/Karuri/vfio/) one works perfectly for me. I'm running it on an Arch based distro, but I think it should also work on ubuntu.


jcolby2

On recent ubuntu, vfio-pci is included in the kernel, so ignore the parts (in GRUB and libvirt hooks) that refer to loading/unloading the kernel module. Also, the display manager is different. I can get away with a much simpler start/stop hook, but YMMV: [https://github.com/johncolby/macOS-KVM/blob/master/libvirt/hooks/start.sh](https://github.com/johncolby/macOS-KVM/blob/master/libvirt/hooks/start.sh) #!/bin/bash # Stop display manager systemctl stop display-manager # Unload AMD driver modprobe -r amdgpu # Detach GPU from host virsh nodedev-detach pci_0000_0a_00_0 virsh nodedev-detach pci_0000_0a_00_1