Created
October 7, 2020 14:16
-
-
Save sifiro/78a0715587772912f081c5bf27443032 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
X11="/etc/X11" | |
PCIE="0000:09:00.0 0000:09:00.1 0000:09:00.2 0000:09:00.3" | |
sudo sh -c \ | |
"vfio-bind $PCIE; \ | |
echo 0 > /sys/class/vtconsole/vtcon0/bind; \ | |
echo 0 > /sys/class/vtconsole/vtcon1/bind; \ | |
echo efi-framebuffer.0 > \ | |
/sys/bus/platform/drivers/efi-framebuffer/unbind; \ | |
sleep 1s;\ | |
virsh start $1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment