One way to run UTM VMs in external drives. #3355
Replies: 6 comments 2 replies
-
Image is an unnecessary abstraction level which may slow down the performance. You can just mount a volume into the |
Beta Was this translation helpful? Give feedback.
-
When mounting the image I am getting this error: hdiutil: attach failed - Resource busy |
Beta Was this translation helpful? Give feedback.
-
Sadly windows 11 doesn't work. Is it only happened to me?
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hey guys, I am giving the steps from the beginning:
NOTE: UTM software simply needs an .utm file. So you can manually keep that file anywhere you want. Open UTM software dashboard. Then open finder and double click on the file which you have copied to open in UTM software. That's it. Cons: You have to do this manually for each VM you create. Anyways we achieved what we want. Peace :) |
Beta Was this translation helpful? Give feedback.
-
Hi. I have found a simpler solution. You can create an Alias of the folder on your external disk, rename it to "Documents" and replace the "Documents" folder with this Alias. I hope its helps. |
Beta Was this translation helpful? Give feedback.
-
UTM VMs now only run in internal system drives (~/Library/Containers/com.utmapp.UTM/Data/Documents). However, my storage is critical and cannot provide enough space to store .utm files. ( I believe if you are experiencing the same problem! Otherwise you won't seeing this.)
Here I find out a way to solve this problem in a not-that-smart way by using sparse image .A drawback is you must manually mount disk image before using UTM, but you may write a script to do this.
Remember to close you UTM app.
Open Disk Utility.app and create a new blank sparse disk image and save it on your external drive. For SSD, APFS is recommended while HDD might experience less issues with HFS+ (Mac OS Extended).
Open Terminal and mount this image at the destination folder by running hdiutil attach /Volumes//.sparseimage -mountpoint ~/Library/Containers/com.utmapp.UTM/Data/Documents in terminal.
Now you may see a mounted image on your desktop or Finder sidebar. Move all files in
~/Library/Containers/com.utmapp.UTM/Data/Documents to your new disk image.
Delete the original .utm file, launch your UTM app and your VM now runs in external drive.
Tested with UTM 2.4.1(40) on macOS Monterey 12.0.1 (21A559)
Beta Was this translation helpful? Give feedback.
All reactions