Anyone know how to get Virtual Manager to install copy-paste functionality to the Virtual Machine?
Can't find anything on Google.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
You have to use "Spice" instead of "VNC" :
spice-client-gtkon debian) on the vm host (if you use virt-manager on another machine to connect to the vm host remotely through ssh, you must also install
python-spice-client-gtkon that machine)
ps -lef|grep spice-vdagentdwill return you the process if its running)
You are using Spice.
Another solution, without X, but assuming that you are able to ssh to your host from your machine, and to your vm from your host :
Another option is to use Barrier (software-based KVM) https://github.com/debauchee/barrier.
Install it on your host as the server. Install it on your VM as a client.
Here is what my client setup looks like.
Next, tell Barrier where (spatially) your client is. This is personal preference, but I set mine to be above my host. It is kind of awkward since the VM obviously is nested inside your host, but it still works very well.
Configure Server on Barrier running on your host machine. Here is my setup:
What you label the screen matters here. Notice, in my first image, the
Screen name is "jareds-iMac". This has to match.
With this setup, when you move your mouse past the top of your screen, it switches into the VM. Copy-paste will work from host to machine and vice-versa. An added benefit is that you don't have to press any hotkeys to release the "grab" from the VM.
With a Linux (Debian 11/bullseye) host and a Windows 10 guest, I did the following to enable copy-and-paste between the guest and the host:
spice-guest-toolson Windows guest; the binaries can be downloaded from https://www.spice-space.org/download.html.
spice-vdagenton Linux host.
virt-manager(on host) change the Windows VM configuration:
address type="virtio-serial" controller="0" bus="0" port="2"
# systemctl enable spice-vdagentd.service`
The copy-and-paste functionality is ready to use.