IBM Visual Insights 1.2 installation with Ubuntu OS on Power AC922 (summery)
Cahyati Supriyati Sangaji (My Note)
In this article I will share my experience about the setup and installation process of IBM Visual Insight 1.2 with Ubuntu 18.04 OS on Power Server AC922. For the installation process with Redhat v7 OS, you can see in this article “Installing IBM Visual Insights 1.2 with Redhat v7 OS on Power AC922 (Summery)”.
Note for you this installation process has been completed, you have finished installing Ubuntu 18.04 OS on Power Server.
Before Setup step, run the following command:
apt-get install opal-prd# Notes:
#In Ubuntu, the opal-prd (Processor Runtime Diagnostics) package #that is required for runtime detection and handling of Power #processor errors on systems that are running OpenPower firmware is #not installed by default.
Next step, setup Server Power AC922.
- Install packages needed for the installation
apt-get install -y wget nano apt-transport-https ca-certificates curl software-properties-common
2. Load the latest kernel
sudo apt-get install linux-headers-$(uname -r)
sudo reboot
3. Or do a full update
sudo apt-get update
sudo apt-get dist-upgrade
sudo reboot
4. Installing the GPU driver
Follow the steps from developer.nvidia.com. This time I share the installation process for CUDA 11.1 Version and CUDA Driver 450.xx Version for the pcc64le architecture.
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/ppc64el/cuda-ubuntu1804.pinsudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600wget https://developer.download.nvidia.com/compute/cuda/11.1.0/local_installers/cuda-repo-ubuntu1804-11-1-local_11.1.0-455.23.05-1_ppc64el.debsudo dpkg -i cuda-repo-ubuntu1804-11-1-local_11.1.0-455.23.05-1_ppc64el.debsudo apt-key add /var/cuda-repo-ubuntu1804-11-1-local/7fa2af80.pubsudo apt-get updatesudo apt-get -y install cuda
5. Set nvidia-persistenced to start at boot
sudo systemctl enable nvidia-persistenced
6. Reboot the system
After that, verify the GPU driver. Verify that the CUDA drivers are installed by running the /usr/bin/nvidia-smi application or run the following command:
nvidia-smi
IBM Visual Insights stand-alone installation prerequisites
Next install docker and nvidia-docker2.
For Ubuntu platforms, a Docker runtime must be installed. If there is no Docker runtime installed yet, install Docker-CE on Ubuntu.
- Install docker
sudo apt-get update sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=ppc64el] https://download.docker.com/linux/ubuntu bionic stable" sudo apt-get update sudo apt-get install docker-ce=18.06.1~ce~3-0~ubuntu
Note :
The nvidia-docker run command must be used with docker-ce (in other words, an Ubuntu host) to leverage the GPUs from within a container.
2. Install nvidia-docker2
Set the repository and update. I am using Ubuntu 18.04, so I follow the Ubuntu/Debian settings:
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | \
sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update
Install nvidia-docker 2.0 according to the guideline.
sudo apt-get install nvidia-docker2
sudo systemctl restart docker.service
Verify the setup.
nvidia-docker run --rm nvidia/cuda-ppc64le nvidia-smi
sudo rebootupdate:
nvidia-docker run --rm nvidia/cuda-ppc64le:11.0-base nvidia-smi
The previous step is the last step for setup the AC922 Server, before the IBM Visual Insights 1.2 installation process.
Installing Visual Insights stand-alone
To install IBM Visual Insights stand-alone, complete the following steps:
- Download the product tar file from the IBM Passport Advantage website. If you have IBM Id, you can download from the Software Access Catalog website.
- (Optional) Verify the downloaded tar file by following these instructions:
a. Download these files:
visual-insights-ppc-1.2.0.0-ppa.sig
visual-insights-1.2.0.0-key.pub
visual-insights-ocsp-1.2.0.0-key.pub
visual-insight-ocspchain-1.2-key.pub
b. To verify the tar file by using the CISO code signing service, run the following command and ensure that the output is Verified OK:
openssl dgst -sha256 -verify PowerAI_Vision_1.1.5.0_public_key.pub \-signature visual-insights-ppc-1.2.0.0-ppa.sig visual-insights-ppc-1.2.0.0-ppa.tar
c. To validate the tar file with the signing certificate authority directly, run the following command and ensure that the output includes Response verify OK:
openssl ocsp -no_nonce -issuer visual-insight-ocspchain-1.2-key.pub \-cert visual-insights-ocsp-1.2.0.0-key.pub -VAfile visual-insight-ocspchain-1.2-key.pub \-text -url http://ocsp.digicert.com -respout
3. Unzip and untar the product tar file, and run the installation command for the platform you are installing on.
sudo dpkg -i ./.deb
The install files are extracted to visual-insights-arch-1.2.0.0-ppa.
4. Load the IBM Visual Insights images from the directory that contains the extracted tar file. The user running the script must have Docker privileges:
sudo /opt/ibm/vision/bin/load_images.sh -f ./file_name.tar
Note: The installation process can take some time to complete.
5. After the installation is complete, you can start IBM Visual Insights by running this script:
sudo /opt/ibm/vision/bin/vision-start.sh
A user named admin is created with a password of passw0rd.
Note: The startup script will modify ownership and permissions on /opt/ibm/vision/volume so that the containers can run under a non-root ID and access the data. You must read and accept the license agreement that is displayed before you can use IBM Visual Insights.
It can take several minutes to start IBM Visual Insights. To check the status of the startup process, run this script:
sudo /opt/ibm/vision/bin/helm.sh status vision
In the output from the helm.sh status vision script, you can verify which IBM Visual Insights components are available by locating the Deployment section and identifying that the AVAILABLE column has a value of 1 for each component.
After the application startup has completed and the user interface is available, it can be accessed at https://<hostname>/visual-insights/, where hostname is the system on which you installed IBM Visual Insights.
The last, Install any available fix packs.
References:
IBM PowerAI Vision 1.1.5 Guide
CUDA Driver Installation Guide
Docker Tutorial 5: Nvidia-Docker 2.0 Intallation in Ubuntu 18.04