Prepare host OS
Prepare host OS in the Oracle Cloud (OCI).
SSH to the host OS
You can find the instance's public IP address in the list of your instances.
Oracle Linux's default user is
opc, use the following command to ssh to your instance (to the host OS). On Linux and macOS, you'll first need to limit the key file permissions using the
chmod 400 path/to/your-private-key.pem
ssh -i path/to/your-private-key.pem [email protected]_IP
Oracle cloud instances are protected by the Network Security Groups (the cloud firewall feature), so you can stop and disable the in-OS firewall.
sudo systemctl disable firewalld --now
Update the OS
This takes several minutes.
sudo dnf update -y
Disable nouveau driver
nouveau, the open-source driver for Nvidia GPUs is usually pre-loaded. It must be disabled to install Nvidia's own driver.
sudo modprobe -r nouveau
Prevent loading of the
nouveau kernel module at boot.
echo "blacklist nouveau" | sudo tee /etc/modprobe.d/blacklist.conf
Install Nvidia driver
sudo dnf --enablerepo=ol8_developer_EPEL -y install dkms sudo dnf -y config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
Install the driver
sudo dnf module -y install nvidia-driver:515-dkms sudo modprobe nvidia
Check Nvidia driver works
The following command should print a meaningful output.
Install Docker CE
Follow the Setting up Docker on CentOS 7/8 chapter from the official Nvidia docs (Centos 8 variant)
docker command without sudo
dockercommand without sudo
This allows running the docker command as a non-root user.
sudo groupadd docker sudo usermod -aG docker $USER newgrp docker
Install NVIDIA Container Toolkit
Follow the Setting up NVIDIA Container Toolkit chapter from the official Nvidia docs (Centos 8 variant). You need to use the following command for setting up the Nvidia Container toolkit repository instead of the official one (Oracle Linux 8 isn't supported by their command).
curl -s -L https://nvidia.github.io/libnvidia-container/centos8/libnvidia-container.repo | sudo tee /etc/yum.repos.d/nvidia-container-toolkit.repo
We use the
docker-compoe tool for making it easier to launch our Docker container. Use the following command to install the
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose
Next, check that the
docker-compose tool is successfully installed. The following command should return meaningful output.
Disable mDNS on the host
The mDNS service mustn't be active in the host OS for NDI discovery to work. If present, this command removes it from the host OS:
sudo yum list installed avahi sudo yum remove avahi
Updated 2 months ago