Commit f74046bb authored by Vermeeren's avatar Vermeeren

qemu: add some usb pass, use synergy client

parent 8252a4d3
......@@ -46,6 +46,9 @@ nice -n -10 qemu-system-x86_64 \
-drive if=virtio,id=drive0,file=./Windows.img,format=raw,cache=none,aio=native \
-drive file=/usr/share/virtio/virtio-win.iso,if=ide,id=cd1,media=cdrom,readonly \
-nographic \
-device usb-host,vendorid=0x0853,productid=0x011b `# Topre Realforce` \
-device usb-host,vendorid=0x046d,productid=0xc531 `# Logitech Receiver` \
-device usb-host,vendorid=0x046d,productid=0xc06b `# Logitech G700` \
-device vfio-pci,host=04:00.0,addr=09.0 &
# -device usb-host,vendorid=0x056d,productid=0x4008 `# Eizo CG318-4K USB HUB`
# TODO old format below, doesn't work with recent Qemu
......@@ -55,22 +58,14 @@ nice -n -10 qemu-system-x86_64 \
# -usbdevice host:045e:028e `# MS 360` \
# -usbdevice host:28de:1142 `# Steam Controller` &
# -vcpu 0,affinity=0 -vcpu 1,affinity=1 -vcpu 2,affinity=2 -vcpu 3,affinity=3 \
# -mem-path /dev/hugepages \
# -mem-prealloc \
# -device vfio-pci,host=04:00.0,addr=09.0,multifunction=on \
# -device vfio-pci,host=04:00.1,addr=09.1 \
sleep 5
while [[ $(pgrep -x -u root qemu-system-x86) ]]
do
if [[ ! $(pgrep -x -u melvin synergys) ]]
if [[ ! $(pgrep -x -u melvin synergyc) ]]
then
echo "Starting Synergy server"
sudo -u melvin /usr/bin/synergys --debug ERROR --no-daemon --enable-crypto --config /etc/synergy.conf &
echo "Starting Synergy client"
sudo -u melvin /usr/bin/synergyc --debug ERROR --no-daemon --enable-crypto 192.168.1.3 &
fi
sleep 5
......@@ -78,8 +73,8 @@ done
echo "VM stopped"
echo "Stopping Synergy server"
pkill -u melvin synergys
echo "Stopping Synergy client"
pkill -x -u melvin synergyc
echo "Stopping Samba"
systemctl stop smb.service
......
......@@ -85,7 +85,7 @@ done
echo "VM stopped"
echo "Stopping Synergy client"
pkill -u melvin synergyc
pkill -x -u melvin synergyc
sleep 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment