I can send a keyboard press from the host to the guest for example with this command:
virsh send-key GuestVM --codeset linux --holdtime 100 KEY_SPACE
or
virsh send-key GuestVM --codeset usb --holdtime 100 0x2c
How do I send a mouse click and move?
How do I transfer data from the guest to the host via some emulated device? For example, my program in the guest send a few bytes to the device → my program in the host accept these bytes.
This tells qemu to connect the qemu command line studio to a new ‘char0’ device, and to use it as backing for a pair of virtual serial ports. If you look at the manual, it’ll show you how you can use things other than stdio.
I thought about the network, but in my case, the data will be transmitted over the Internet, and I don’t want that. I don’t want a second network either.
Thank you, I will try, but first I still need to solve question number 1