TL;DR for getting noVNC copy/paste clipboard sharing working with Ubuntu 24 guest

luckman212

Renowned Member
Jun 22, 2017
47
6
73
I know there are a few threads, some quite old, about how to go about getting working copy/paste via the built in noVNC console viewer. I tried following a few, taking bits and pieces and trying to make it work but none of them quite lined up.

In the end what seemed to work for me so far (Ubuntu 24.04.1 Desktop) is (from inside the VM)

Code:
sudo apt install -y qemu-guest-agent spice-vdagent

Then from the console of the PVE host:

Code:
qm set {vmid} -vga qxl,clipboard=vnc

Then reboot the VM, and voila I have the coveted Clipboard button

screenshot_ffn9mtld.png

Can anyone comment on whether this is "correct" or is there a better way?
 
Last edited:
  • Like
Reactions: chillbird
can you confirm how to paste from the clipboard in vm console? any shortcut? in vm desktop, i can right click/ctrl+shift+v and paste but not in vm terminal. i am using mac.
 
Last edited:
You don't need to activate the spice driver with the qxl option if you dont want. The clipboard still works with the default display driver in noVNC with this command:-

Code:
qm set {vmid} -vga clipboard=vnc
 
  • Like
Reactions: epicurean