UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Drag and drop files into a virtual machine

Open lgrachov opened this issue 1 year ago • 0 comments

This feature should work on both iOS and macOS, since both support drag and drop.

This would fix the issue in #6470, because I tried connecting the drive to the virtual machine to transfer files to the virtual machine (dragged the file onto the drive and connected it to the virtual machine)

Concept of drag and drop in UTM

Drag and drop files for UTM

This can be utilised using SPICE Tools. Since UTM already has the shared clipboard feature, it should be easy to implement a drag & and drop feature. It will work so that you can drag and drop files from the host to the guest, and vice versa.

[!NOTE] Copying a file into the clipboard and pasting it into the virtual machine does not work.

Workaround

You can make an .iso file and connect it to the virtual machine using this tip:

  • Open Disk Utility
  • Click "File" in the menu bar
  • Choose "Image from Folder", and choose the folder you would like to turn into an .iso file.
  • Run the following command in the terminal, hdiutil makehybrid -iso -joliet -o result.iso file.cdr.

What it can be used for

This would make it easier to, for example, install iTunes on a Windows 7 virtual machine or get VLC on an Ubuntu virtual machine.

lgrachov avatar Jul 12 '24 22:07 lgrachov