[vfio-users] Dynamic USB assignment between VMs

Daniel Browne jairuncaloth at gmail.com
Fri Jan 20 18:29:35 UTC 2017


Hi folks,

I'm working on setting up my main desktop as a headless hypervisor with
desktop OSs running in VMs. Currently I have two guests up and running, Win
7 and Ubuntu. I'm passing through my keyboard and mouse to Windows in order
to be able to take advantage of the official configuration tools and
sharing them to the other VM with Synergy.

The problem I'm currently running into is If I need to shut down the Win7
VM, I have no method of input on my Ubuntu VM unless I connect one of my
monitors to the server console by moving the cable to the integrated
graphics port, and using virsh to reassign the devices.

I'm looking for a way that will dynamically reassign my mouse and keyboard
based on what VMs are running. The only thing I've found so far that I
think will work is using libvirt hooks to run some scripts when I startup
or shutdown a VM as described here https://libvirt.org/hooks.html. However,
before I jump into writing scripts, I wanted to see if anyone else had run
into this and see if there is a simpler method.

Thanks,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20170120/fd3ff917/attachment.htm>


More information about the vfio-users mailing list