utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
26.86k stars 1.34k forks source link

Clipboard sharing stops working or works intermittently #6526

Open jaraco opened 3 months ago

jaraco commented 3 months ago

Describe the issue

After installing Windows 11 ARM and the guest tools, clipboard sharing works great. Then after a reboot or two, the clipboard sharing stops working. I can reboot the system several times, but the clipboard sharing is not working, even while folder sharing is working fine. Reinstalling the guest tools (and rebooting) allows the clipboard sharing to start working again (usually). But later on a subsequent boot (not always the first one), the clipboard sharing stops working again.

I'm wondering if the reinstalling of the guest tools is a red herring, and maybe the clipboard sharing just works intermittently (on some boots), because I've seen cases where reinstalling the guest tools did not restore the shared clipboard, and it only started working again after another reinstall.

I've also seen situations where the shared clipboard isn't working and didn't start working after several restarts and only started working after a reinstall of the guest tools.

I suspect there's a race condition where if the machine starts up fast enough, the guest tools fail to connect to the shared clipboard handler.

Or maybe something is getting corrupted in the guest tools.

Configuration

Debug log

For all issues related to running a VM, including crashes, you should attach a debug log. (This is unavailable for macOS-on-macOS VMs. Attach an excerpt of your system log instead.) To get the Debug log: open UTM, and open the settings for the VM you wish to launch. Near the top of the QEMU page is Debug Log. Turn it on and save the VM. After you experience the issue, open the VM settings again and select Export Log... and attach it here.

I'll do this next time it happens.

cristianadam commented 2 months ago

This is very annoying. Not having clipboard support for Windows hosts.

Sometimes it works if I reinstall the host tools, but it stops working after some point.

I find myself writing into a text file in the public folder and read that on the host. Which is very silly. That's exactly what clipboard was supposed to do.

cristianadam commented 2 months ago

UTM Guest Tools have been stuck at 0.229 while upstream at https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/ there have been multiple releases.

I've tried the latest release from https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.262-2/ and ... clipboard was working, but mouse stopped working.

I guess the upstream packages install more things than UTM actually needs.

One would need an update for https://github.com/utmapp/spice-nsis to version 0.262