Guest User

Untitled

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