Project

General

Profile

Azure VPS setup notes » History » Version 1

Jon Goldberg, 06/08/2020 08:44 PM

1 1 Jon Goldberg
# Azure VPS setup notes
2
3
I have a lot more to put here, but for now:
4
5
### Swap
6
By default, Azure VPSes don't have swap.  Creating a swapfile (as opposed to a swap partition) is an excellent use of the ephemeral disk that Azure VPSes come with.  [More detailed documentation is available](https://linuxize.com/post/create-a-linux-swap-file/), but as root:
7
8
```shell
9
# This first command takes a few minutes.
10
dd if=/dev/zero of=/mnt/resource/swap bs=1024 count=8G
11
chmod 600 /mnt/resource/swap
12
mkswap /mnt/resource/swap
13
swapon /mnt/resource/swap
14
echo "/mnt/resource/swapfile       none    swap    sw      0       0" >> /etc/fstab 
15
```