Sometimes we would like to use some MacOS dmg file in non Apple machine like installing MacOS as a Virtual machine in some …
Review how to install mac as Virtual Machine here: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2005334
To manage image files we have hdiutil, that allow you to manipulate disk images (attach, verify, burn, etc).
Save your .dmg running hdiutil to convert it to CD-R image *Note: you have so run hdiutil as root with sudo
$ sudo hdiutil convert Mac_Snow_Leopard_10.6_Retail_rw.dmg -format UDTO -o Mac_Snow_Leopard_10.6_Retail_rw.iso Reading Driver Descriptor Map (DDM : 0)… Reading WINDOWSSUPPORT (Apple_ISO : 1)… Reading Apple (Apple_partition_map : 2)… Reading Macintosh (Apple_Driver_ATAPI : 3)… ..................….. Reading (Apple_Free : 4)… Reading Mac_OS_X (Apple_HFS : 5)… ..............................................................................................................................................................................….. Elapsed Time: 6m 4.330s Speed: 20.3Mbytes/sec Savings: 0.0% created: /Users/username/Desktop/Mac_Snow_Leopard_10.6_Retail_rw.iso.cdr
Now you use this iso file, rename it deleting “.cdr” from the file name, and upload it to be user with VMWare, XEN, VirtualBox, etc…
Or if you don’t like to use command line, you have a graphical tool to convert them, called dmg2iso
http://dmg2iso.sourceforge.net/Home.html
You can also use hdiutil to mount image files like:
# hdiutil mount /dev/disk1s2 --> where disk1 is the device where the image resides, and s2 is the slide where it's the information # hdiutil attach /Users/iguana/Desktop/disco_inst_macsnow.dmg --> to mount a dmg image file from command line. # hdiutil detach /Volumes/Snow6.3/ --> to dismount the Volume of the .dmg file.