1
I'm running a virtualized Win8 (gaming) platform under Linux host. I use Synergy for keyboard and mouse sharing but I need to pass the usb devices occasionally. GPU is passed to the guest and I'm unable to access the QEMU monitor from the guest.
Issue is that I cannot release said devices without shutting down the guest. I'd like to pass usb_add host:bus.addr
and usb_del bus.addr
commands on the fly so I can attach and detach the devices as I need them. Beauty would be that I can keep the Synergy running all the time and only lock the devices to guest when I need them. I should add that Synergy's build-in locking via lockCursorToScreen(toggle)
doesn't work reliably enough.
I'm not overly familiar with QMP but I can set up a telnet server to host with -qmp tcp:192.168.0.10:4444,server,nowait
command line option. I don't know how to pass three commands via telnet and quit under windows.
Another option could be to set up a socket for the QEMU monitor with -qmp unix:/path/to/socket,server
. Then I suppose I'd SSH to the host to interact with the monitor. I'm not sure how to automate that either. Run a shellscript on host from SSH command line?
SSH is more secure but I trust machines on this private network so that's not a huge issue.
TL;DR: I need a way to pass commands to running QEMU from guest. Telnet and socket (accessed possibly via SSH) are possible but don't know how to automate. Other sollutions welcome.