Support Center > Search Results > SecureKnowledge Details
Microsoft Azure Linux Agent (waagent) upgrade on CloudGuard VMs Technical Level
Solution

The Microsoft Azure Linux Agent (waagent) manages Linux provisioning and VM interaction with the Azure Fabric Controller. The agent is installed on all CloudGuard for Azure Virtual Machines (Gateway, High Availability, VMSS, Management, MultiDomain Server).

The WALinuxAgent deployed on CloudGuard for Azure Virtual Machines is customized and certified by Check Point to work on Check Point Gaia OS.

Note: Microsoft Azure Linux Agent (waagent) self-update and extensions installation are not supported. These features are disabled by default and should not be enabled.

How to check the version of the installed waagent

1.  Log in to the Check Point CloudGuard IaaS Virtual Machine deployed in Azure via ssh.

2.  Run waagent version:

        [Expert@gw:0]# waagent version
        /sbin/waagent:27: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp
        WALinuxAgent-2.2.45 running on gaia 273.000
        Python: 3.7.4
        Goal state agent: 2.2.45

Note:
the warning in the output above does not have any impact on functionality and can be safely ignored.

Revision history

Date

Version Comments
January 28, 2020 2.2.45
  • See Azure-WALinuxAgent  for more information.
  • Extension installation and self-update are not supported and are disabled by default. 

For previous revision history, contact Check Point Support.

How to update the waagent to the latest version

Note: The update procedure is supported on R80.30 and above versions of CloudGuard for Azure. See sk132192 for more information about CloudGuard for Azure versions.

1.  Log in to the Check Point CloudGuard IaaS Virtual Machine deployed in Azure via ssh.

2. Verify that a symbolic link for python3 exists:

    Run which python3

    Expected result:

    [Expert@gw:0]# which python3
    /bin/python3

    If a symbolic link does not exist, create it:

    Run ln -s $FWDIR/Python/bin/python3 /usr/bin/python3

    Expected result:

    [Expert@gw:0]# ls -la /usr/bin/python3

    lrwxrwxrwx 1 admin root 42 Jan 23 08:30 /usr/bin/python3 -> /opt/CPsuite-R80.30/fw1/Python/bin/python3

 3.  Stop the WALinuxAgent:

      Run service waagent stop

      Expected result:

       [Expert@gw:0]# service waagent stop

       Stopping AzureLinuxAgent:                                  [  OK  ]

 4.  Backup the following files and directories to a directory of your choice:

  •     /usr/sbin/waagent.sh
  •     /usr/sbin/waagent
  •     /etc/rc.d/init.d/waagent
  •     /etc/waagent.conf
  •     /usr/lib/waagent/*

 5.  Download the new walinuxagent package from this link

 6.  Copy the downloaded walinuxagent.tgz file to a location on the Virtual Machine (e.g., /home/admin/walinuxagent.tgz)

 7.  Extract the walinuxagent.tgz file to the root directory:

      Run tar zxfC walinuxagent.tgz /

 8.  Start the WALinuxAgent:

      Run service waagent start

      Expected result:

      [Expert@gw:0]# service waagent start

      Starting AzureLinuxAgent:                                  [  OK  ]

 9.  Check the version of the running walinuxagent:

      Run waagent version 

      Expected result:

      [Expert@gw:0]# waagent version
      /sbin/waagent:27: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp
      WALinuxAgent-2.2.45 running on gaia 273.000
      Python: 3.7.4
      Goal state agent: 2.2.45

 10. Verify that the WALinuxAgent is running:    

       Run service waagent status

       Expected result:

       [Expert@gw:0]# service waagent status

       waagent (pid  58744) is running...

Give us Feedback
Please rate this document
[1=Worst,5=Best]
Comment