UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Copy/Paste Not working macOS Host to Guest Monterey VM from Apple Silicon Laptop

Open pauljrob opened this issue 3 years ago • 46 comments

Describe the issue Copy and paste is not working between the host and the guest. Is this expected behavior or is there something additional that needs to be enabled?

Configuration

  • UTM Version: 3.0.4
  • OS Version: Monterey
  • Intel or Apple Silicon? Apple Silicon

pauljrob avatar Feb 02 '22 02:02 pauljrob

From Parallels Desktop notes:

Productivity and integration features are not available to this VM yet. It is not possible to suspend and resume the VM, shared folders and snapshots are not supported for now. Apart from that it is currently not possible to adjust guest macOS screen resolution in real-time mode when resizing ratio; to change virtual machine amount of CPU and RAM or its hardware parameters (Device UUID and Serial number) and to register with Apple ID. USB and camera sharing are also missing in macOS Monterey VM running on a Mac with Apple M1 chips so far.

Parallels Engineering Team is researching ways to expand the list of supported features in future product updates. Shared Clipboard has already been added. To enable this feature make sure Parallels Tools are installed and up-to-date.

So, it looks to me like shared clipboard is possible, but requires adding something inside the guest VM and supporting it through the VM framework.

Anyone not connected with UTM development want to have a look at what Parallels is doing and describe it in broad terms? Might be usable inside x86_64 macOS VMs too. Or someone figuring out SPICE integration for macOS.

adespoton avatar Feb 04 '22 01:02 adespoton

That's the only thing preventing me from using a Monterey VM on Apple Silicon right now.

niklr avatar Mar 28 '22 07:03 niklr

That's the only thing preventing me from using a Monterey VM on Apple Silicon right now.

Hello : Giving you a short help use command + c to copy thing from mac os also for M1 mac also . and then use control(^) + shift + V to copy it in UTM

protectmango avatar May 01 '22 18:05 protectmango

@protectmango hi, this doesn't work for me on macOS M1 Max with 3.1.5 and macOS Monterey guest VM

flotpg avatar May 08 '22 11:05 flotpg

@protectmango

hi, this doesn't work for me on macOS M1 Max with 3.1.5 and macOS Monterey guest VM

You may want to update to 3.2.1?

adespoton avatar May 08 '22 14:05 adespoton

@adespoton: i already looked for the beta 3.2.1, but I can't find the download links on the releases page...

flotpg avatar May 08 '22 17:05 flotpg

https://github.com/utmapp/UTM/releases

-Em

On May 8, 2022, at 10:44 AM, flotpg @.***> wrote:

 @adespoton: i already looked for it, but I can't find the download links on the releases page...

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

adespoton avatar May 09 '22 02:05 adespoton

None of the beta releases have assets attached (no links to dmg, etc).

flotpg avatar May 09 '22 04:05 flotpg

Uhhh have you tried clicking on the word “Assets”

osy avatar May 09 '22 04:05 osy

Ahh, too blind. For stable releases the assets are expanded. Betas are collapsed. Found it and will try, many thanks.

flotpg avatar May 11 '22 05:05 flotpg

control(^) + shift + V not working for me with Monterey guest on apple silicon host running UTM 3.2.2

flotpg avatar May 12 '22 08:05 flotpg

Not working for me either. I'm on 3.2.4.

jonathanlaniado avatar Jun 07 '22 15:06 jonathanlaniado

Same here, on version 3.2.4.

mikiquantum avatar Jun 21 '22 23:06 mikiquantum

https://www.youtube.com/watch?v=A2fEUnk5io0&t=231s Bro Watch this dude video it will definitely solve all your problems

On Wed, Jun 22, 2022 at 4:33 AM Miguel Hervas @.***> wrote:

Same here, on version 3.2.4.

— Reply to this email directly, view it on GitHub https://github.com/utmapp/UTM/issues/3567#issuecomment-1162445934, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTS6QAVRBCSS7Z7XXEBZP3VQJC4RANCNFSM5NK22RZQ . You are receiving this because you were mentioned.Message ID: @.***>

protectmango avatar Jun 25 '22 23:06 protectmango

For me worked install on Kali Virtual sudo apt install spice-vdagent spice-webdavd and enable clipboard sharing from settings. Restart UTM and Kali to make changes work.

m4rc0g avatar Jul 15 '22 14:07 m4rc0g

It does not seem to work if only terminal i.e. Ubuntu Server.

jjcfrancisco avatar Jul 28 '22 15:07 jjcfrancisco

Not working for me as well.

Sherry112 avatar Aug 29 '22 17:08 Sherry112

For Monterey hosts and Monterey guests you can use a bit of hacky workaround: Apple Remote Desktop. It allows you to copy the clipboard to to/from the guest and you can also drag and drop files to the remote window to transfer files to the VM.

ahrenstein avatar Aug 29 '22 22:08 ahrenstein

@ahrenstein, interesting, can you expand on that further? How do you set this up?

jonathanlaniado avatar Aug 30 '22 13:08 jonathanlaniado

For Monterey hosts and Monterey guests you can use a bit of hacky workaround: Apple Remote Desktop. It allows you to copy the clipboard to to/from the guest and you can also drag and drop files to the remote window to transfer files to the VM.

Wow. This is genius. Seriously, thank you. What a brilliantly simple solution to use the Screen Sharing app. It even enabled the touchpad pinch-to-zoom functionality in Photoshop, which I was sorely missing. Thank you!

jd6-37 avatar Aug 30 '22 15:08 jd6-37

Oh man now I really feel left out. Anybody care to be kind enough to explain how to set that up?

Edit: I guess I'm curious if you're able to connect to the VM via ARD (Apple Remote Desktop) offline or if you need to have UTM and ARD running side-by-side with an Internet connection.

jonathanlaniado avatar Aug 30 '22 19:08 jonathanlaniado

Oh man now I really feel left out. Anybody care to be kind enough to explain how to set that up?

Edit: I guess I'm curious if you're able to connect to the VM via ARD (Apple Remote Desktop) offline or if you need to have UTM and ARD running side-by-side with an Internet connection.

Start the VM (yes it needs to be running side-by-side). In the VM, enable Screen Sharing in Preferences-->Screen Sharing. Then on your host mac, open the default Screen Sharing app, and connect to the VM's IP address.

I also have File Sharing in the VM enabled so I can mount it as a remote drive in my host, but you can drag and drop from host to guest (and vice versa) with the Screen Sharing app.

jd6-37 avatar Aug 31 '22 17:08 jd6-37

@jonathanlaniado In the guest macOS under System Preferences > Sharing enable either "Remote Management" or "Screen Sharing" I use the former since I own a copy of ARD Then you can just use ARD or Screen Sharing to access the IP address of the VM from your host. In my case last night it was 192.168.64.2 although you can find your IP in the Network settings.

@j26w I'm glad I could help!

ahrenstein avatar Aug 31 '22 17:08 ahrenstein

No need to even find the IP address. With Remote Access enabled on the guest, the guest should show up in the Locations list on the host’s Finder sidebar. Select it and click Share Screen… and you’re connected.

Do we have a way to run VMs headless by default in UTM now? Because UTM itself could be used to use the share screen feature for screen display if the option is enabled on the guest and the feature was added to UTM.

-Em

On Aug 31, 2022, at 10:44 AM, Matthew Ahrenstein @.***> wrote:

 @jonathanlaniado In the guest macOS under System Preferences > Sharing enable either "Remote Management" or "Screen Sharing" I use the former since I own a copy of ARD Then you can just use ARD or Screen Sharing to access the IP address of the VM from your host. In my case last night it was 192.168.64.2 although you can find your IP in the Network settings.

@j26w I'm glad I could help!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

adespoton avatar Aug 31 '22 19:08 adespoton

I agree that on Mac screen sharing is a much smoother and better experience than the native display. I also wish there were an option to just start UTM headless and launch screen sharing for the UI.

patniemeyer avatar Oct 19 '22 18:10 patniemeyer

Are there other workarounds for a shared clipboard? It's working with remote access, but I'm not happy with graphic performance.

nklsw avatar Oct 28 '22 16:10 nklsw

Incase you have trouble doing the screen share trick, follow these steps:

On the Guest machine (the UTM virtual machine):

  1. Open System Settings > General > Sharing
  2. Turn on Screen Sharing
  3. Click the "i" symbol next to Screen Sharing and change "Allow Access" to "All Users"

On the Host Machine (your real computer):

  1. Open Finder
  2. In the left sidebar under "Locations" click the "Network" tab
  3. You will see your virtual machine in there. It will be named something like "[NAME]'s Virtual Machine". Right click on it and select "Screen Share"
  4. Input the Username and Password for your Guest machine

At this point will have two windows open for interacting with the Guest machine:

  • The UTM window - it will be named whatever you called the UTM machine when you created it
  • The Screen Share window - it will be named "[NAME]'s Virtual Machine"

Use the Screen Share window as your main window for interacting with the Guest desktop. You'll be able to move files and copy/paste between the host and guest machines easily.

The other UTM window needs to remain open because closing it will shut down the guest machine. I just minimize it to avoid confusion.

BenJackGill avatar May 20 '23 08:05 BenJackGill

Running UTM Version 4.2.5 (81), on macOS Ventura 13.4.1 (22F82), VM is Linux 6.1.0-kali9-arm64 #1 SMP Debian 6.1.27-1kali1 (2023-05-12) aarch64 GNU/Linux.

I have configured folder/clipboard sharing in UTM and have spice-vdagent spice-webdavd installed.

In UTM in VM settings if under Display I select virtio-ramfb - copy paste works.

If I select virtio-ramfb-gl (GPU Supported) - copy paste does not work.

But not even that works every time. When it does not work, after couple of VM reboots, it eventually starts working.

I tried restarting spice* services in VM but nothing helped.

guycalledseven avatar Jul 06 '23 10:07 guycalledseven

Anyone not connected with UTM development want to have a look at what Parallels is doing and describe it in broad terms? Might be usable inside x86_64 macOS VMs too. Or someone figuring out SPICE integration for macOS.

I am not very familiar with VM development, but isn't this precisely what's needed, at least on Ventura?

hairer avatar Jul 27 '23 12:07 hairer

For text, you can take a screenshot of what you want to copy (Shift, Command, and 4 to capture a portion of the screen) in the VM. Then right click on the thumbnail in the corner of your screen and choose Markup, and copy the text. It's now in your Clipboard to paste wherever you want.

jzmail avatar Sep 30 '23 11:09 jzmail