Skip to content

Instantly share code, notes, and snippets.

@dawn360
Last active September 7, 2016 17:37
Show Gist options
  • Save dawn360/cf48a360f00a41eda76a1dac11cb48b8 to your computer and use it in GitHub Desktop.
Save dawn360/cf48a360f00a41eda76a1dac11cb48b8 to your computer and use it in GitHub Desktop.
# Make the Box as Small as possible
sudo apt-get clean
sudo dd if=/dev/zero of=/EMPTY bs=1M
sudo rm -f /EMPTY
cat /dev/null > ~/.bash_history && history -c && exit
vagrant package --output mynew.box
# Add the Box into Your Vagrant Install
vagrant box add mynewbox mynew.box
vagrant init mynewbox
https://scotch.io/tutorials/how-to-create-a-vagrant-base-box-from-an-existing-one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment