You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mabicca The agent does not support end-of-line comments in its configuration file. Its parse code is quite simple (at present). We can better document this limitation.
Hi Guys,
Recently helped with an issue where swap was not being created/activated properly after upgrading the waagent.
It looks like we had these lines in /etc/waagent.conf where you can notice the comments inline (bold):
Format if unformatted. If 'n', resource disk will not be mounted.
ResourceDisk.Format=y #added to enable swap
File system on the resource disk
Typically ext3 or ext4. FreeBSD images should use 'ufs2' here.
ResourceDisk.Filesystem=ext4
Mount point for the resource disk
ResourceDisk.MountPoint=/mnt
Create and use swapfile on resource disk.
ResourceDisk.EnableSwap=y #added to enable swap
Size of the swapfile.
ResourceDisk.SwapSizeMB=2048 #2gb swap size
With these comments, the swap creation was not being done; however after removing the comments, it works as expected.
It was probably some recent change in the waagent that is causing this since older releases do not have this problem.
This was tested in Ubuntu 16.04 LTS and running waagent 2.2.14
The text was updated successfully, but these errors were encountered: