Created
June 19, 2013 18:47
-
-
Save mrinalwadhwa/5816841 to your computer and use it in GitHub Desktop.
Create an OSX Vagrant Box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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
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