Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- To clean up disk space on the VM so when we package it into a new Vagrant box, it’s as clean as possible. First, remove APT cache
- ```shell
- $ sudo apt-get clean
- ```
- Then, “zero out” the drive (this is for Ubuntu):
- ```shell
- $ sudo dd if=/dev/zero of=/EMPTY bs=1M
- $ sudo rm -f /EMPTY
- ```
- ```shell
- $ cat /dev/null > ~/.bash_history && history -c && exit
- ```
- ```shell
- $ vagrant package --output mynew.box
- ```
Add Comment
Please, Sign In to add comment