Implement the desktop to virtual machine copy and paste function in debian 13 and centos10

tarragon_z

New Member
Aug 22, 2025
3
0
1
hi

How can I copy and paste from the desktop to the virtual machine in debian13 and centos10, and add a serial port to this version based on past experience

Invalid is shown in the following figure.
 

Attachments

  • 2.png
    2.png
    24.9 KB · Views: 8
Do you want to do this exclusively via serial console or do you want to use a desktop integration so that you can copy & paste text in a desktop environment running in your guest? Both are valid options, but have a different implementation.
 
Do you want to do this exclusively via serial console or do you want to use a desktop integration so that you can copy & paste text in a desktop environment running in your guest? Both are valid options, but have a different implementation.
Thank you for your answer.

It would be best if both could be achieved
 
What have you tried so far and what did not work as it did in previous versions?

I haven't checked the desktop integration yet, the console should work as it has for the last 20 years.
 
到目前为止您尝试了什么?哪些功能没有像以前的版本那样起作用?

我还没有检查桌面集成,控制台应该像过去 20 年一样工作。
I tried to create a serial port, enable QEMU GUEST AGENT, and also tried Google search, but none of them worked.

It is quite strange that on lower versions of debian and centos, only adding a serial port can achieve bidirectional replication and copying from the desktop to the VM
 
I tried to create a serial port, enable QEMU GUEST AGENT, and also tried Google search, but none of them worked.

It is quite strange that on lower versions of debian and centos, only adding a serial port can achieve bidirectional replication
No, you have a serial console, which is text. It's the same with an SSH or telnet connection. Text can easily be copied from/to different machines.

copying from the desktop to the VM
No, QEmu does not allow that. You need to have clipboard integration on the PVE side and guest OS support for that. Please see here and here.