Share clipboard on QEMU

24年 9月 30日 Monday (edited)
246 words
2 minutes

If the guest is have Xorg display server installed on the system, you can use spice (wayland support is still in question).

so far I came up with ssh-based solution if the guest is only provide tty

screenshot

it's equal to instant copy-paste, and you are no longer need to type 100 character of some secret strings from your host ^^

further more, you can use scp to make your life more easier.

Tips and Trick

You can add new devices with QEMU monitor that make your life easier to inspect running instance, View > compatmonitor0 (CTRL+ALT 2) on GUI mode or CTRL+A C on CLI mode (-nographic)

Learn more about graphics on respective manual page

bash
$ qemu-system-x86_64 -display help
Available display backend types:
none
gtk
sdl
egl-headless
curses
spice-app
dbus
$ qemu-system-x86_64 -vga help
none                 no graphic card
std                  standard VGA (default)
cirrus               Cirrus VGA
vmware               VMWare SVGA
qxl                  QXL VGA
qemu-system-x86_64: type is NULL
qemu-system-x86_64: type is NULL
virtio               Virtio VGA

TODO: learn more about opengl practically

links and references:

Title:Share clipboard on QEMU

Author:ReYuki

Link:https://www.reyuki.site/posts/share-clipboard-on-qemu [copy]

Last updated:


This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. You are free to share and adapt it, as long as you give appropriate credit, don’t use it for commercial purposes, and distribute your contributions under the same license. Provided under license CC BY-NC-SA 4.0