
- #CREATE A MAC OS X IMAGE FOR VIRTUALBOX INSTALL#
- #CREATE A MAC OS X IMAGE FOR VIRTUALBOX DOWNLOAD#
If you upped your RAM, "right" click on the new VM and click "Settings". I left the disk as dynamically allocated. If you do not already have a virtual hard drive leave the default selection and click "create". Note if you change the RAM to 4 GB you will need to change your chipset later. Default of 2 GB of RAM is adequate for a quick test, but if you plan on using the VM for more than 5 seconds I recommend 4 GB if you can spare it. Give it a name, select Type: Mac OS X and Version: Mac OS X (64-bit) if these are not populated for you (they will be if you use "Mac" in the name). Click "New" or ctrl+N/ cmd+N to create a new VM. Hdiutil detach /Volumes/OS\ X\ Base\ System/ Use hdiutil detach instead of hdiutil unmount:. One way do to this is to open Finder and double click on the sparse image file. Hdiutil: detach failed - No such file or directory What to do if you encounter the this error on the last step: Hdiutil convert yosemite.sparseimage -format UDZO -o yosemitevagrantbox.dmg Convert back to the UDZO compressed image format:. "Right" click on the disk image (either InstallESD.dmg or yosemite.sparseimage) and then select Eject Disk Image. If you have difficulty/receive an error, you can also do this in Disk Utility.
#CREATE A MAC OS X IMAGE FOR VIRTUALBOX INSTALL#
Hdiutil unmount "/Volumes/OS X Base System/"ĭiskutil unmountDisk $(diskutil list | grep "OS X Base System" -B 4 | head -1)ĭiskutil unmountDisk $(diskutil list | grep "OS X Install ESD" -B 4 | head -1) Hdiutil unmount "/Volumes/OS X Install ESD/" Copy the base system into the sparse image:Ĭp "/Volumes/OS X Install ESD/BaseSystem."* "/Volumes/OS X Base System/".Hdiutil mount "/Applications/Install OS X Yosemite.app/Contents/SharedSupport/InstallESD.dmg" Hdiutil convert yosemite.dmg -format UDSP -o yosemite.sparseimage Convert into UDSP (sparse image) format:.Iesd -i "/Applications/Install OS X Yosemite.app" -o yosemite.dmg -t BaseSystem Install iesd, to customize OS X InstallESD:.The following instructions are heavily borrowed from frdmn’s notes blog with additional notes added as needed. It took me about half an hour to download, but depending on your connection speed your mileage may vary.
#CREATE A MAC OS X IMAGE FOR VIRTUALBOX DOWNLOAD#
To get started, download Yosemite from the App Store.įair warning: the download is ~5.5GB. I was in luck! It turns out this is actually really easy to do. Recently when working with a client we encountered a situation where it would be beneficial run a Mac VM on our Mac laptops, so I decided to investigate.