Guest User

Untitled

a guest
Sep 4th, 2023
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. set -x
  2.  
  3. ## Load the config file
  4. source "/etc/libvirt/hooks/kvm.conf"
  5. ## Load vfio
  6. modprobe vfio
  7. modprobe vfio_iommu_type1
  8. modprobe vfio_pci
  9. modprobe -r nouveau
  10.  
  11. ## Unbind gpu from nvidia and bind to vfio
  12. virsh nodedev-detach $VIRSH_GPU_VIDEO
  13. virsh nodedev-detach $VIRSH_GPU_AUDIO
  14. virsh nodedev-detach $VIRSH_GPU_USB
  15. virsh nodedev-detach $VIRSH_GPU_SERIAL
  16.  
  17.  
Advertisement
Add Comment
Please, Sign In to add comment