Installing dependent packages
Procedure
-
To install the dependency packages, run the following commands:
yum install –y docker socat openvswitch python-cliff \ libvirt python-setuptools python-requests
-
If you use proxy servers for the Internet connectivity, perform the following steps in the
httpproxy.conf
file:- To navigate to the system directory, run the following command:
cd /etc/systemd/system
- To create the
docker.service.d
directory, run the following command:mkdir docker.service.d
- To navigate to the
docker.service.d
directory, run the following command:cd docker.service.d
- If proxy does not require username and password:
- To edit the
http-proxy.conf
file, run the following command:vim http-proxy.conf
- Add the following entries in the
http-proxy.conf
file:[Service] Environment="HTTP_PROXY=<HTTP proxy URL and port number>" Environment="HTTPS_PROXY=<HTTPS proxy URL and port number>" Environment="NO_PROXY=localhost, 127.0.0.1,<nps_vm_ip>,<nps_vm_hostname>"
Save and exit the
http-proxy.conf
file.- To edit the
https-proxy.conf
file, run for the following command:https-proxy.conf
- Add the following entries in the
https-proxy.conf
file:[Service] Environment="HTTP_PROXY=<HTTP proxy URL and port number>" Environment="HTTPS_PROXY=<HTTPS proxy URL and port number>" Environment="NO_PROXY=localhost,127.0.0.1,<nps_vm_ip>,<nps_vm_hostname>"
Save and exit the
https-proxy.conf
file.
- If proxy requires username and password:
- To edit the
http-proxy.conf
file, run the following command:vim http-proxy.conf
- Add the following entries in the
http-proxy.conf
file:[Service] Environment="HTTP_PROXY=http://{{ proxy_user }}:{{ proxy_password }}@<HTTP proxy URL and port number>" Environment="HTTPS_PROXY=http://{{ proxy_user }}:{{ proxy_password }}@<HTTPS proxy URL and port number>" Environment="NO_PROXY=localhost,127.0.0.1,<nps_vm_ip>,<nps_vm_hostname>"
Save and exit the
http-proxy.conf
file.- To edit the
https-proxy.conf
file, run the following command:vim https-proxy.conf
- Add the following entries in the
https-proxy.conf
file:[Service] Environment="HTTP_PROXY=http://{{ proxy_user }}:{{ proxy_password }}@<HTTP proxy URL and port number>" Environment="HTTPS_PROXY=http://{{ proxy_user }}:{{ proxy_password }}@<HTTPS proxy URL and port number>" Environment="NO_PROXY=localhost,127.0.0.1,<nps_vm_ip>,<nps_vm_hostname>"
Save and exit the
https-proxy.conf
file.
- To navigate to the system directory, run the following command:
-
To verify the status of Docker, run the following command:
systemctl status docker
- Configure your NPS toolkit controller with your NTP server and synchronize the NPS toolkit controller with the NTP server. If required, update the time zone of your system.