Skip to content

Instantly share code, notes, and snippets.

@gbraad
Last active August 30, 2017 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbraad/7df1ac9c89d5be7086af67fa981f8e50 to your computer and use it in GitHub Desktop.
Save gbraad/7df1ac9c89d5be7086af67fa981f8e50 to your computer and use it in GitHub Desktop.
Add swap to virtual machine

Add swap to virtual machine

dd if=/dev/zero of=/.swapfile bs=1M count=2048
chmod 0600 /.swapfile
mkswap /.swapfile
swapon /.swapfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment