Advertisement
lila0110

start.sh

Jun 3rd, 2021 (edited)
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. #!/bin/bash
  2. set -x
  3.  
  4. source "/etc/libvirt/hooks/kvm.conf"
  5.  
  6. systemctl stop sddm.service
  7.  
  8. echo 0 > /sys/class/vtconsole/vtcon0/bind
  9. echo 0 > /sys/class/vtconsole/vtcon1/bind
  10.  
  11. echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind
  12.  
  13. sleep 2
  14.  
  15. virsh nodedev-detach pci_0000_06_00_0
  16. virsh nodedev-detach pci_0000_06_00_1
  17. virsh nodedev-detach pci_0000_06_00_2
  18. virsh nodedev-detach pci_0000_06_00_3
  19.  
  20. modprobe vfio-pci
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement