1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Add scripts for starting Windows 10 VM

This commit is contained in:
Joe Groocock 2016-08-26 21:32:00 +01:00
parent 8c6901e823
commit a1987136e7
3 changed files with 15 additions and 0 deletions

5
scripts/steamvm Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
sudo virsh start Windows-10
pidof synergyc &>/dev/null ; (synergyc --no-tray --debug INFO --name frebib-PC 10.0.4.2:24800 &>/dev/null && echo 'Synergy client started')

5
scripts/vmattach Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
for dev in "$@"; do
sudo virsh attach-device Windows-10 /var/lib/libvirt/configs/hostdev-$dev.xml
done

5
scripts/vmdetach Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
for dev in "$@"; do
sudo virsh detach-device Windows-10 /var/lib/libvirt/configs/hostdev-$dev.xml
done