Skip to content

Instantly share code, notes, and snippets.

@mrinalwadhwa
Created June 19, 2013 18:47
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrinalwadhwa/5816841 to your computer and use it in GitHub Desktop.
Save mrinalwadhwa/5816841 to your computer and use it in GitHub Desktop.
Create an OSX Vagrant Box
# Create an OSX Vagrant Box
# Run this script from the directory that has InstallESD.dmg in it
# Get InstallESD.dmg using the method described on this link
# http://hints.macworld.com/article.php?story=20110831105634716
# Setup a vagrant box
# http://garylarizza.com/blog/2013/01/20/using-veewee-to-build-os-x-vms/
git clone git://github.com/jedi4ever/veewee.git
pushd veewee
rbenv local 1.9.3
gem install bundler
bundle install
mkdir iso
sudo templates/OSX/prepare_veewee_iso/prepare_veewee_iso.sh ../InstallESD.dmg
bundle exec veewee fusion define MountainLion OSX
bundle exec veewee fusion build MountainLion
bundle exec veewee fusion export MountainLion
vagrant box add MountainLion MountainLion.box
popd
rm -rf veewee
@mrinalwadhwa
Copy link
Author

Installing Mountain Lion (OS X 10.8) as a guest operating system in VMware Fusion 5 (2033778)
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2033778

@mrinalwadhwa
Copy link
Author

Couldn't find a good way to automatically delete the VM that gets created in Fusion as part of creating this box, should explore vmrun.

For now, you have to delete it manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment