Okay, I worked around it on my own. In the option:
--graphics spice,port=20001,listen=127.0.0.1
remove the port
parameter such that it becomes:
--graphics spice,listen=127.0.0.1
You need to configure the <graphics />
element in the libvirt
XML configuration file then. My invocation of virt-install
gave me this:
<graphics type='spice' autoport='yes' listen='127.0.0.1'>
<listen type='address' address='127.0.0.1'/>
</graphics>
There is one caveat. I finished the installation while SPICE was still connected to the default auto-connected port (5900 in my case). If you shut down the guest prior to finishing the installation the whole process initiated by virt-install
will be interrupted.
In order to change it one should shut down the guest and the edit the XML to something like the following, using virsh edit vmname
(where vmname
should be replaced with your name):
<graphics type='spice' autoport='no' port='20001' listen='127.0.0.1'>
<listen type='address' address='127.0.0.1'/>
</graphics>
Possible workaround for "port in use" conflicts. Use any of the local net addresses other than 127.0.0.1 from 127.0.0.0/24, e.g. 127.0.0.2 etc to listen on.
NOTE: If someone can come up with a better (i.e. actual) solution, I'll accept that other answer. This writeup is mostly for others that may run into the same issue.
QEMU’s evdev passthrough support allows a user to redirect evdev events to a guest. These events can include mouse movements and key presses. By hitting both Ctrl keys at the same time, QEMU can toggle the input recipient. QEMU’s evdev passthrough also features almost no latency, making it perfect for gaming
Checkout:
https://passthroughpo.st/using-evdev-passthrough-seamless-vm-input/
Best Answer
I don't know how auto-resize in Virtualbox works, but I also searched for disabling clipboard sharing through Spice on my Linux system. Ivan Kozik's comment above pointed me in the right direction, but did lack some information which i had to gather and want to share:
virsh edit NAME
where NAME is the name of your guest. The Domain XML is opened with vim in your terminal. If you are not familiar with the commands, find yourself a cheat sheet.<devices>
find<graphics>
and inside add the line<clipboard copypaste='no'/>
. Save and exit.For further information search in their docs.