Deplay PrivateCloud on CentOS
Private cloud installation and deployment operation document
For Centos
1. Install cent os7.9
2. Install the Nvidia graphics driver
Please install the nvidia graphics driver yourself, and finally run the command "nvidia-smi"
to check whether the installation is successful.
3. Install docker24.0.2
3.1 Update the yum package to the latest version
sudo yum update
3.2 Install the required packages.
yum-util provides yum-config-manager functionality, and the other two packages are required by the devicemapper driver
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
3.3 Setting up yum sources
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
3.4 Install Docker
sudo yum install docker-ce
3.5 Start Docker and add Docker to boot
sudo systemctl start docker
sudo systemctl status docker
sudo systemctl enable docker
3.6 Verify that the installation was successful
docker version
4. Install Nvidia-Container-Runtime (to using GPU in docker)
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-container-runtime/$distribution/nvidia-container-runtime.repo | sudo tee /etc/yum.repos.d/nvidia-container-runtime.repo
yum install nvidia-container-runtime -y
systemctl restart docker
5. Get license
There are two types of licenses: soft encryption and hard dongle. You can find them in: How To Get Private Cloud License
6. Install a private cloud image
6.1 Copy the license image privateCloud.tar to any directory, We take /home/images as an example
6.2 Start docker
systemctl start docker
6.3 Load image
cd /home/images
docker load -i privateCloud.tar
6.4 View image + change tag
docker images
Rename the image with imageId 819f53017d76 to privateCloud and tag to v2
docker tag 819f53017d76 privateCloud:v2
6.5 Start the container
docker run -idt --privileged=true -v /etc:/home/license --restart=always --gpus all -p 30022:22 -p 33306:3306 -p 38080:8080 --name neuro_private_cu11 privateCloud:v2 /home/start.sh
7. Access the private cloud with a client
7.1 Obtain the Centos ip address of the private cloud server. We take 192.168.22.111 as an example.
sudo yum update
sudo yum install net-tools
ifconfig
Then you can get ip address
7.2 Client configuration host file
windows:C:\Windows\System32\drivers\etc\hosts
Add two lines to your hosts file:
192.168.22.111 storage.nb-ai.com
192.168.22.111 private.nb-ai.com
Run this command in cmd
ipconfig/flushdns
7.3 Access the private cloud by visiting private.nb-ai.com:38080 from the client
enjoy it!
Still have a question?
Each section should be concise, user-friendly, and direct users to additional resources or documentation when necessary.