Gabeben

start.sh

Jan 6th, 2023
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. # debugging
  2. set -x
  3.  
  4. # stop display manager
  5. sudo systemctl stop gdm3.service
  6.  
  7. # Unbind VTconsoles
  8. echo 0 > /sys/class/vtconsole/vtcon0/bind
  9.  
  10. # Unbind EFI-framebuffer
  11. echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind
  12.  
  13. # Avoid race
  14. sleep 10
  15.  
  16. # Unload nvidia
  17. modprobe -r nvidia_drm
  18. modprobe -r nvidia_modeset
  19. modprobe -r nvidia
  20.  
  21. # unbind gpu
  22. virsh nodedev-detach pci_0000_10_00_0
  23. virsh nodedev-detach pci_0000_10_00_1
  24.  
  25. # load vfio
  26. modprobe vfio_pci
Advertisement
Add Comment
Please, Sign In to add comment