From a1987136e7639bc6b9fb0cac07ad3d9cc9c5095f Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Fri, 26 Aug 2016 21:32:00 +0100 Subject: [PATCH] Add scripts for starting Windows 10 VM --- scripts/steamvm | 5 +++++ scripts/vmattach | 5 +++++ scripts/vmdetach | 5 +++++ 3 files changed, 15 insertions(+) create mode 100755 scripts/steamvm create mode 100755 scripts/vmattach create mode 100755 scripts/vmdetach diff --git a/scripts/steamvm b/scripts/steamvm new file mode 100755 index 0000000..1526960 --- /dev/null +++ b/scripts/steamvm @@ -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') diff --git a/scripts/vmattach b/scripts/vmattach new file mode 100755 index 0000000..457a15b --- /dev/null +++ b/scripts/vmattach @@ -0,0 +1,5 @@ +#!/bin/sh + +for dev in "$@"; do + sudo virsh attach-device Windows-10 /var/lib/libvirt/configs/hostdev-$dev.xml +done diff --git a/scripts/vmdetach b/scripts/vmdetach new file mode 100755 index 0000000..9fee0b8 --- /dev/null +++ b/scripts/vmdetach @@ -0,0 +1,5 @@ +#!/bin/sh + +for dev in "$@"; do + sudo virsh detach-device Windows-10 /var/lib/libvirt/configs/hostdev-$dev.xml +done