utmapp / UTM

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

Clipboard content sharing not working after switch to 'Full Graphics' display mode #3164

Open reinhardbluelab opened 3 years ago

reinhardbluelab commented 3 years ago

Describe the issue Copy-and-paste clipboard content sharing is not working when 'Full Graphics' display mode (under Display tab) is selected. It is working when 'Console Only' display mode is selected. Clipboard sharing was enabled in Sharing tab and the SPICE guest additions were installed.

Configuration

Debug log debug.log

conath commented 3 years ago

Did you install the VM with 'Full Graphics' enabled or did you install in 'Console Only' mode?

I have a VM with copy/paste working with Full Graphics, installed with Full Graphics enabled.

reinhardbluelab commented 3 years ago

I installed the Debian (minimal) image initially in 'console only' mode, but have also tried it with the Debian (LXDE) image in 'full graphics' mode. Paste works in the LXDE image when in 'full graphics' mode. I still can't get it to work in the minimal image when in 'full graphics' mode.

I'm trying to use 'graphics' mode since I need some of the other features that are only available in that display mode, e.g. USB device and directory sharing.

conath commented 3 years ago

Can you try installing in Graphics Mode if possible?

reinhardbluelab commented 3 years ago

I did with the LXDE image.

conath commented 3 years ago

Sorry what do you mean? Did it work with the LXDE image? Or did you unsuccessfully try it with that one in Graphics Mode?

reinhardbluelab commented 3 years ago

Sorry for not being clear - I updated my previous comment. It is working with the LXDE image, but not with the minimal image. Am I doing something silly by trying to run the minimal image in graphics mode? When you say 'installing in graphics mode', you mean run it in graphics mode the first time, right?

Also, just to be clear, here are the shortcuts I'm using for pasting content:

conath commented 3 years ago

I’m not sure if the Debian minimal has Graphics Mode support.

In Console Mode I believe that the clipboard sharing is not supposed to work anyway (@osy ?), you simply have to paste by right clicking in the VM window and selecting paste. With Full Graphics it should work by using the guest’s paste shortcut.

reinhardbluelab commented 3 years ago

With the Debian minimal image nothing is happening when I right click in the VM window in console/graphics modes. In console mode cmd+v is working, but in graphics mode none of the shortcuts (shift+ctrl+v / ctrl+v / cmd+v / ctrl+option+v) are working.

I'm switching to the Debian i3 image, since it seems to be working as well (via the ctrl+option+v shortcut) in graphics display mode.

conath commented 3 years ago

Alright, good to know. I think this is related to #3094

ruebenramirez commented 10 months ago

Although my comment does not address the topic of switching a console install to full graphics mode, I did have some luck troubleshooting and resolving clipboard not functioning in an debian (minimal) install.


I was running into the same problem with clipboard not functioning properly in debian 12 (net install/minimal) installed via graphics mode, running i3wm.

It turned out in my case that spice-vdagent was not running. I've not configured spice in the past, so I expected to sudo systemctl enable spice-vdagent.service, but this errored out. I opted to launch spice-vdagent via i3wm:

$ grep spice ~/.config/i3/config
exec --no-startup-id spice-vdagent

Now clipboard appears to be functioning.