Remember that this has not been tested and is not meant for production use right now and you would have to do this after every update.
to activate add
clipboard=1
to vga in your vm config.
Simpler Solution:
What the clipboard-feature really needs are these 3 qemu parameters:
Code:
qemu-system-x86_64 [ ... ] \
-chardev qemu-vdagent,id=ch1,name=vdagent,clipboard=on \
-device virtio-serial-pci \
-device virtserialport,chardev=ch1,id=ch1,name=com.redhat.spice.0
You can get your qemu-command with
qm showcmd 191 --pretty
and then add the parameters above.
And you need to remove the pve-hidden class from noVNC_clipboard_button in javascript and click the button on left side.
https://www.kraxel.org/blog/2021/05/qemu-cut-paste/