-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data storage with secondary image on external disk #5079
Comments
Realized that the additional images get copied to the UTM bundle. Is support for external disks planned, or is there a workaround? |
Wild guess, but if you add it as a removable drive, I think it won't copy the disk into the bundle. By default the UI switches the interface to USB when you enable Removable, but I think you can switch it to VirtIO and it'll still work fine. |
We had some discussion about this in the past but the belief is that we only need to support the following use cases:
We didn't think there was any use in supporting read-write images external to the bundle and supporting it would lead to confusion when the bundle is moved around. Can you explain what you are trying to achieve? |
I understand your reasoning and it certainly makes sense in a desktop setting. My use case is a (semi) headless server with a virtual OS volume on the internal SSD and data and backup volumes intended to be on USB HDDs. I solved it now by sharing '/Volumes' via virtfs, which gives the VM access to 'Macintosh HD' too, but I choose to ignore that :) |
No, these cases are not sufficient. If all you needed were internal RW drives and external RO drives, then USB thumbdrives would not exist. Alas they do. They do because having external RW media is a thing. I also want to point out that the UI does allow the selection of an external USB disk (not CD), but then it proceeds to ignore the setting and will translate that into a QEMU CD external drive regardless. |
I've read #3484, but does it mean that I cannot add a secondary disk on an external drive of the host, i.e. outside the utm bundle? The UI lets me do it. I can create a qcow2, import it as virtio and start the guest. The guest sees the disk as /dev/vdb and I can move files to it. After shutting down the vm, the settings screen shows the correct usage of each disk. However, on host OS level, all the data ends up in the original qcow2 image inside the utm bundle. The new image on the external disk is still just kilobytes.
Configuration
UTM Version: 4.1.5 (74)
macOS Version: 13.2.1
Mac Chip (Intel, M1, ...): M1
config.plist.zip
The text was updated successfully, but these errors were encountered: