My server has no swap?

Our Supported Images do not come with a swap partition. If you want swap you can add it as a swap file.

First create a swap file, in this example 512 MB (1024 * 512MB = 524288 block size):

dd if=/dev/zero of=/swap bs=1024 count=524288

Execute the following to set up the swap:

mkswap /swap

Set the correct permissions on the file:

chown root:root /swap
chmod 0600 /swap

Activate the swapfile:

swapon /swap

Add it to /etc/fstab to make sure it is loaded at boot:

vim /etc/fstab:
/swap swap swap defaults 0 0