Configure a RHEL 6.8 VM behind a proxy to use Azure Backup:
1. Proxy setting for yum, wget and waagent
2. Update Python from version 2.6.6 to version 2.7.11
3. Fix yum command
4. Install pip
5. Install latest WALinuxagent
Below is the details of each step.
1. Proxy setting for yum, wget and waagent
■ /etc/yum.conf
proxy=http://<IP address>:<port number>
■ /etc/wgetrc
https_proxy=http://<IP address>:<port number>
■ /etc/waagent.conf
HttpProxy.Host=<IP address>
HttpProxy.Port=<port number>
2. Update Python from version 2.6.6 to version 2.7.11
$ sudo -i
# wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz
# tar xzf Python - 2.7.11.tgz
# cd Python - 2.7.11
# yum install - y gcc zlib - devel openssl - devel
# ./configure --with-threads --enable-shared
# make && make altinstall
# ln -s /usr/local/lib/libpython2.7.so.1.0 /usr/lib64/libpython2.7.so.1.0
# ln - sf /usr/local/bin/python2.7 / usr / bin / python
# python -V
Python 2.7.11
3. Fix yum command
# sed - i '1 c #! / usr / bin / python 2.6' / usr / bin / yum
4. Install pip
# wget https://bootstrap.pypa.io/get-pip.py
# python get-pip.py
5. Install latest WALinuxagent
# service waagent stop
# wget https://github.com/Azure/WALinuxAgent/archive/v2.2.18.zip
# unzip v2.2.18.zip
# cd WALinux Agent - 2.2.18 /
# python setup.py install
# service waagent start
# waagent - version
WALinux Agent-2.2.18 running on redhat 6.8
Python: 2.7.11
Goal state agent: 2.2.18