Gabeben

start.sh current

Jan 6th, 2023
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. # debugging
  2. set -x
  3.  
  4. # stop display manager
  5. sudo systemctl stop gdm3.service
  6.  
  7. # Avoid race
  8. sleep 10
  9.  
  10. # Unload nvidia
  11. modprobe -r nvidia_drm
  12. modprobe -r nvidia_modeset
  13. modprobe -r nvidia
  14.  
  15. # unbind gpu
  16. virsh nodedev-detach pci_0000_10_00_0
  17. virsh nodedev-detach pci_0000_10_00_1
  18.  
  19. # load vfio
  20. modprobe vfio_pci
Advertisement
Add Comment
Please, Sign In to add comment