Import .dmg of an existing partition? #6049
-
Greetings, I am attempting to set up UTM 4.4.5 on an M3 Macbook Pro running Sonoma 14.3. However, I already have every version of Mac OS X from 10.2 - 10.15 installed (and configured with devtools and licensed software etc) on old physical PPC and Intel Macs. I would like to create a .dmg of these partitions and then import the pre-installed/configured OS into UTM. In other words: "copy old Mac into VM on new Mac." This seems like a very obvious use case, is it possible? I have tried creating a new UTM VM (following e.g. adespoton/utmconfigs/10.9 Mavericks), and replacing the IDE drive with a new one, importing from a compressed .dmg imaged from a partition with Disk Utility. This appears to work-- it copies the .dmg inside the .utm and converts it into a .qcow2 image. However, the resulting VM immediately fails during boot: Loading kernel cache file 'System\Library\Caches...' I tried a couple variations on this, with compressed .dmg, read-only .dmg, and .cdr, but none work (all IDE drives configured in the VM as NOT read-only.) Any tips? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
Beta Was this translation helpful? Give feedback.
-
What do you need to know? This is how I set up:
|
Beta Was this translation helpful? Give feedback.
-
I don’t have a working 10.9 installer which I can find. The problem of having a large collection of external drives. I’m in process of consolidating all those drives to a couple raid systems. I can send a link for my Google Drive. Would you compress the installer and upload it.
Thanks, believe it or not, I find pleasure in working with UTM, I no longer need Parallels licenses.
What do you need to know?
This is how I set up:
Because UTM doesn't include a preconfigured Mac template, instead start with i.e. OS X 10.9 (config only) which includes OVMF.bin and EFI-LEGACY.qcow2 drives, along with instructions for installing an OS from an .iso.
In that config's System settings, turn off "Force Multicore" because x86_64 multicore emulation on arm64 doesn't work.
In that config's Drives, delete the empty disk-0.qcow2 IDE drive, and the CD/DVD (ISO) image drive.
Add a new IDE drive, and in the little floating pop-over, Import a .dmg created from an existing Mac partition. As written above, depending on the format of that .dmg, UTM will either silently fail, or convert it into a .qcow2.
Boot the configured VM, and watch it go through the BIOS and immediately fail to load kernel with Read Error 0x2.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Root-caused the CoreGraphics 32-bit crash. Tracking it in UTM #5371 although a QEMU bug needs to be filed. |
Beta Was this translation helpful? Give feedback.
After a lot of investigation, I have a conclusion:
This problem happens because the .qcow2 created by UTM does not have any formatted partition.
When UTM "Import"s a disk (compressed .dmg, or .cdr) it uses qemu-img to convert to .qcow2.
The result is a correctly-restored Mac volume, but inside of an unformatted disk, which isn't bootable (there is no GUID or Apple partition scheme to boot.)
(Obvious in hindsight. I still feel this should "just work", but UTM would need to guess the user's intent when "Import"ing,
i.e. determine if the disk being imported contains a bootable OS, and if so, of which architecture/filesystem vintage, and then follow the below recipe.)
After even more experime…