I use this script to setup a swapfile on a vagrant box (tested on Ubuntu 14.04)
#Usage
Inside vagrant, login as root
sudo -s
On the root home clone the repo
git clone https://github.com/emanuelzh/vagrant-swapfile.git
Give execute permissions to vagrant-swapfile.sh
file
chmod u+x vagrant-swapfile.sh
Run
./vagrant-swapfile.sh
#Contribute
- For errors, bugs and requests you are free to open an issue.
- For comments or somehting else you can contact me to emanuelz@emanuelz.com.mx or @emanuelzh.