Sample Header Ad - 728x90

Make shared clipboard work for qemu

2 votes
3 answers
13953 views
The shared clipboard doesn't work for me. How to fix it? Host (Debian buster) with: - standard system utilities - **ufw** (ufw enabled, deny incoming, allow out going, deny routed) - apparmor-profiles, apparmor-profiles-extra - stterm - xserver-xorg-core, xserver-xorg-input-libinput, xinit - xserver-xorg-video-intel - jwm - virt-manager - /var, /tmp, /var/lib/dpkg, /home are mounted with nodev, noexec, nosuid - xclip, x11-apps I add my vm user (non-root) to the libvirt group. Guest (Debian buster) with: - standard system utilities - **ufw** (ufw enabled, deny incoming, allow out going, deny routed) - apparmor-profiles, apparmor-profiles-extra - xserver-xorg-core, xserver-xorg-input-libinput, xinit - **xserver-xorg-video-qxl** - jwm - **spice-vdagent** - xclip, x11-apps With virt-manager of the host, I set the video to 'qxl' and the display spice to 'spice server'. That is the instruction in section "Enabling SPICE using virt-manager" at https://www.linux-kvm.org/page/SPICE The "Display Spice" hardware in the "Show virtual hardware details" have the following settings:
Spice Server
------------
type: Spice server
Listen type: Address
Address: Localhost only
Port: [x] Auto (Port:5900)
TLS port: [x] Auto
Since restarting the vm would magically make the "network" hardware disappear, I created another "network" hardware with the gui. ---------------------------- Somehow, within the guest the spice-vdagent doesn't automatically start. I set it to start automatically, following https://unix.stackexchange.com/questions/628158/qemu-kvm-spice-copy-paste-functionalities-work-on-the-windows-vm-but-not-on But shared clipboard still doesn't work. ---------------------------- In the gui, the "Channel spice" hardware says "State: disconnected". How to connect the channel?
Asked by Duh Huh (49 rep)
Mar 29, 2021, 01:02 AM
Last activity: May 6, 2024, 05:18 PM