Skip to content

Instantly share code, notes, and snippets.

@23jodys
23jodys / gist:cf193ec126efb4908f0b93a7c8d55c28
Created April 27, 2018 18:55
Building vagrant box from existing box with VMWare fusions
vagrant init <base box>
vagrant up
vagrant ssh
# Do your customizations here
# yum -y install blah blah
# don't forget to clean up, yum clean all
# Reset the insecure key
dd if=/dev/zero of=/EMPTY bs=1M; rm -f /EMPTY
curl https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub > ~/.ssh/authorized_keys
exit