VMware Communities
effectiveJC
Contributor
Contributor

Converting Sierra DMG image to a Fusion vm

Hi there,

I created a dev environment on a 15" macbook pro partition running Sierra 10.12.5 and imaged it in Disk utility to produce a DMG. I would like to take this constructed image and convert it to something I can boot as needed on a VMWare fusion instance, as well as have the ability to send it up to our ESXi 6.0 server. I created the DMG through Disk Utility as many other guides I found suggested, but was unsuccessful in finding a practical way to convert this DMG over to a VMDK that I could then boot.

I had attempted to convert (by following https://superuser.com/questions/479548/converting-dmg-to-vmdk) to vmdk on the command line using "./vmware-rawdiskCreator print /dev/disk2", but no matter what, I get a "Unable to scan the partition table of "/dev/disk2".

Has anyone succeeded in converting a mac DMG image to a functional Fusion VM on macOS Sierra? I have poured through the guides and google but have so far come up empty. Any help appreciated.

Thanks!

jc

Reply
0 Kudos
4 Replies
wila
Immortal
Immortal

Hi,

Can you run:

diskutil list

in the terminal and paste here what it returns?

--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
ColoradoMarmot
Champion
Champion

The best way to do it is to create a new VM and then use the migration wizard during installation (prior to creating a new user), point it at the target disk, and let it convert everything over.  If you have the original disk, I'd point it at that - or a USB clone.  DMG clones are hit or miss.

Reply
0 Kudos
effectiveJC
Contributor
Contributor

➜  ~ diskutil list

/dev/disk0 (internal, physical):

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:      GUID_partition_scheme                        *500.3 GB   disk0

   1:                        EFI EFI                     209.7 MB   disk0s1

   2:          Apple_CoreStorage Macintosh HD            499.3 GB   disk0s2

   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

/dev/disk1 (internal, virtual):

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:                  Apple_HFS Macintosh HD           +498.9 GB   disk1

                                 Logical Volume on disk0s2

                                 B073B130-94E9-480F-BCE2-789DF6AE4DDF

                                 Unlocked Encrypted

/dev/disk3 (disk image):

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:                            Appium                 +62.6 GB    disk3

Appium is the disk in question id like to convert to a vmdk.

This is what I receive when i try to run rawdiskCreator.

➜  Library ./vmware-rawdiskCreator print /dev/disk3

Unable to scan the partition table of "/dev/disk3".

Thanks!

jc

Reply
0 Kudos
wila
Immortal
Immortal

Hi,

Rawdiskmanager is correct, there is no partition layout on the dmg file, so you can't do what you want as the .dmg file wasn't made in the correct way for being able to do what you want.

dlhotka probably has the better solution, I suggest following his steps.

--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos