One way to run UTM VMs in external drives. #3355
Replies: 10 comments 13 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.
-
Hi, when I try to mount the Documents folder from terminal, I get "Permission denied". |
Beta Was this translation helpful? Give feedback.
-
Even if you right click and move it to an external, if you then right click to clone then it copies it back to the internal, infuriating! |
Beta Was this translation helpful? Give feedback.
-
Mounted /Users/ks/Library/Containers/com.utmapp.UTM form another volume doest'n work anymore under Tahoe Beta (macOS 26.0, 25A5346a) Triggered by Thread: 0 Exception Type: EXC_BREAKPOINT (SIGTRAP) Termination Reason: Namespace SIGNAL, Code 5, Trace/BPT trap: 5 Application Specific Signatures: No idea yet, how to get rid of the problem (didn't happen with macOS 15 Sequoia, even the latest Beta).. |
Beta Was this translation helpful? Give feedback.
-
There is not a good reason for UTM to park the VM's files in a location like ~/Library/Containers/com.utmapp.UTM/Data/Documents. Normal macOS applications do not store files a user will manipulate in ~Library. It's a home for configurations, caches, etc and putting disk images in this location is a recipe for a user to not understand where their disk space is being consumed, and it makes it annoying if you want to move VM's between machines or the like. VMware Fusion and others follow the normal convention for file locations FWIW. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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