Comment 17 for bug 1374166

Revision history for this message
David Frank (bitinn) wrote :

So I ended up on this page and found the conclusion is azure cloud-init doesn't support adding a swap through configuration, is that true?

Furthermore why isn't there a canonical doc or blog post that explain the correct way to add swap for Ubuntu VM on Azure?

I have seen examples that modify /etc/fstab, and examples that modify /etc/waagent.conf, as well as trying to use CustomData.

I have read both:

- https://wiki.ubuntu.com/AzureSwapPartitions
- https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-agent-user-guide/

Yet I am still not sure how could I edit my configuration to create a swap through cloud-init on next boot. If this is fixed and released, then please help point me and whoever comes next to the right doc.