<div dir="ltr">Hi folks,<div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>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Ā <a href="https://libvirt.org/hooks.html">https://libvirt.org/hooks.html</a>. 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.</div><div><br></div><div>Thanks,</div><div>Daniel</div></div>