default Ubuntu 12.04 LTS doesn\'t create swap for some reason. Is there \"proper\" way to add it after install?
root@aux3:/root# df -h Filesystem Size Used Avai
Found swapspace daemon that takes care of creating and removing swapfiles on demand. It just needed little tuning to save swapfiles on ephemeral drive.
This seem to me most elegant solution:
DEBIAN_FRONTEND=noninteractive apt-get -y install swapspace
echo 'swappath="/mnt"' >> /etc/swapspace.conf
service swapspace restart