Advertisement
Guest User

start.sh

a guest
Jul 1st, 2021
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. set -x
  2.  
  3. source "/etc/libvirt/hooks/kvm.conf"
  4.  
  5. systemctl stop sddm.service
  6.  
  7. echo 0 > /sys/class/vtconsole/vtcon0/bind
  8. echo 0 > /sys/class/vtconsole/vtcon1/bind
  9.  
  10. echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind
  11.  
  12. sleep 30
  13.  
  14. modprobe -r nvidia-drm
  15. modprobe -r nvidia-modeset
  16. modprobe -r drm_kms_helper
  17. modprobe -r nvidia
  18. modprobe -r i2c_nvidia_gpu
  19. modprobe -r drm
  20. modprobe -r nvidia-uvm
  21.  
  22. virsh nodedev-detach pci_0000_07_00_0
  23. virsh nodedev-detach pci_0000_07_00_1
  24. virsh nodedev-detach pci_0000_07_00_2
  25. virsh nodedev-detach pci_0000_07_00_3
  26.  
  27. modprobe vfio
  28. modprobe vfio_pci
  29. modprobe vfio_iommu_type1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement