r/linuxadmin • u/Jeron_Baffom • May 25 '26
Debian 13: copy&paste across virtual machines
I'm using Debian 13 LXDE with Virtual Machine Manager installed.
Recently I noticed that I can Copy & Paste across host and VMs by default.
However I'm pretty sure that in older versions of Debian this was not allowed by default for safety reasons.
Questions
- Copy & Paste is really enabled by default across host and VMs? Since when? Why?
- Any safety issue in using such feature?
- Disabling such feature makes your system safer? How to disable it?
1
Upvotes
4
u/JohnnyricoMC May 25 '26
Virtual machine manager (
virt-manager) is a frontend for KVM+libvirt and connects to VM consoles via either VNC or SPICE. Your VMs probably haveqemu-guest-agentandspice-vdagentinstalled.There's a security risk in that data leakage (sensitive data or credentials getting into a compromised VM) is possible.
If virt-manager doesn't offer a toggle for it, you will need to edit the VM's XML using
virshand add<clipboard copypaste='no'/>under<devices><graphics>and restart the VM.