Skip to content

Instantly share code, notes, and snippets.

@crzapata
Created September 17, 2018 15:37
Show Gist options
  • Save crzapata/892ad20c0b895275216be5a84ea427d2 to your computer and use it in GitHub Desktop.
Save crzapata/892ad20c0b895275216be5a84ea427d2 to your computer and use it in GitHub Desktop.
Swapfile for Vagrant Ubuntu
vagrant ssh
sudo su
rm /swapfile
fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon -s
Source: https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment