[vfio-users] Dynamic USB assignment between VMs

Brian Chow brianchow at digitaldescent.net
Fri Jan 20 18:49:55 UTC 2017


I ran into a similar problem, and the easiest way I found was to get a USB
switch, plugged into dedicated USB ports on each vm. Then when I need to
switch, I just hit a button on the switch and it switches which VM they are
plugged into. They run about $25 on Amazon if I recall correctly.

On Jan 20, 2017 10:30 AM, "Daniel Browne" <jairuncaloth at gmail.com> wrote:

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

_______________________________________________
vfio-users mailing list
vfio-users at redhat.com
https://www.redhat.com/mailman/listinfo/vfio-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20170120/098a2853/attachment.htm>


More information about the vfio-users mailing list