File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
articles/virtual-machines/linux Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -242,12 +242,14 @@ Modify the following parameters in /etc/waagent.conf
242
242
Cloud-init
243
243
Configure cloud-init to handle the provisioning:
244
244
245
- ```bash
246
- sed -i 's/Provisioning.Agent=auto/Provisioning.Agent=cloud-auto/g' /etc/waagent.conf
247
- sed -i 's/ResourceDisk.Format=y/ResourceDisk.Format=n/g' /etc/waagent.conf
248
- sed -i 's/ResourceDisk.EnableSwap=y/ResourceDisk.EnableSwap=n/g' /etc/waagent.conf
249
- ```
250
- Configure Cloud-init to create swap
245
+ ``` bash
246
+ sed -i ' s/Provisioning.Agent=auto/Provisioning.Agent=cloud-auto/g' /etc/waagent.conf
247
+ sed -i ' s/ResourceDisk.Format=y/ResourceDisk.Format=n/g' /etc/waagent.conf
248
+ sed -i ' s/ResourceDisk.EnableSwap=y/ResourceDisk.EnableSwap=n/g' /etc/waagent.conf
249
+ ```
250
+
251
+ Configure Cloud-init to create swap.
252
+
251
253
To format and create swap you have 2 options either:
252
254
253
255
1 . Pass this in as a cloud-init config every time you create a VM through ` customdata ` . This is the recommended method.
You can’t perform that action at this time.
0 commit comments