Supported OSs
You can use the ascend-deployer tool to download and install dependencies of OSs listed in Table 2. The precautions are as follows:
- Basic commands such as tar, cd, ls, find, grep, chown, chmod, unzip, bzip2, and ssh must be preset in the OS. During the installation of Ubuntu or Debian, select OpenSSH server or SSH server on the Software selection screen to ensure that the ssh command is available.
- ascend-deployer supports only the default environment after the OS image is successfully installed. Do not install or uninstall software after the OS is installed. If some system software has been uninstalled, causing inconsistency with the default system package, you need to manually configure the network and use tools such as apt, yum, and dnf to install and configure the missing software.
- ascend-deployer can install only basic libraries to ensure that TensorFlow and PyTorch can run properly. If you need to run complex inference services or model training, the model code may contain libraries related to specific services. You need to install the libraries by yourself.
- If the driver version installed using ascend-deployer does not match the system kernel version, manually install the driver by referring to Installing Dependencies Required for Compiling Driver Source Code.
- Installing drivers on OSs such as EulerOS, SLES, and Debian may trigger driver source code compilation. You need to install the kernel header package that matches the kernel version of the system (which can be viewed through uname -r command). For details, see Table 1.
Table 1 Kernel header packages OS
Kernel Header Package
How to Obtain
EulerOS
kernel-headers-{version}, kernel-devel-{version}
Contact the OS vendor or search for the tool in the devel_tools.tar.gz file delivered with the OS.
SLES
kernel-default-{version}, kernel-default-devel-{version}
Contact the OS vendor or search for the tool in the OS image.
Debian
linux-headers-{version}, linux-headers-{version}-common, linux-kbuild-{version}
- By default, the root user is not allowed to remotely log in to OSs such as EulerOS. Therefore, you need to set PermitRootLogin in the /etc/ssh/sshd_config file to yes before the installation. The configuration method varies according to OSs. For details, see the official guide of the OS. After the installation is complete, disable the remote connection of the root user in a timely manner.