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.
Table 2 Supported OSs

OS

Version

CPU Architecture

Description

BC-Linux

7.6

AArch64/x86_64

The BC-Linux 7.6 system source does not have the Python 3 component. If you need to install the Python 3 component on BC-Linux 7.6, modify the source configuration file following the instructions on the BC-Linux official website or change el7.6 in /etc/yum.repos.d/BCLinux-Base.repo to el7.7 by running the sed -i 's/el7.6/el7.7/g' /etc/yum.repos.d/BCLinux-Base.repo command. After the Python 3 component is installed, restore the original configuration.

BC-Linux

7.7

AArch64

-

CentOS

7.6/8.2

AArch64/x86_64

  • For an Atlas 300T training card running CentOS 7.6 x86_64 with an earlier kernel version than 4.5, upgrade CentOS to 8.0 or later or add a kernel patch. Otherwise, the firmware installation may fail. For details about how to add a kernel patch, see Building a Kernel Patch.
  • Multiple versions of Docker/containerd may coexist on CentOS. Therefore, you are advised to check whether Docker has been installed before installing system dependencies on CentOS 7.6 and CentOS 8.2. If Docker has been installed, run the yum -y remove docker-ce, yum -y remove docker-ce-cli, and yum -y remove containerd.io commands to uninstall it and then install system dependencies.

Debian

10.0

x86_64

-

Debian

9.9

AArch64/x86_64

-

EulerOS

2.8

AArch64

-

EulerOS

2.9

AArch64/x86_64

-

Kylin

V10 SP1

AArch64/x86_64

After system dependencies are installed in the Kylin V10 system, wait until system configurations are complete and then run commands such as docker.

Kylin

V10 GFB/V10 juniper(Kylin Desktop V10)

AArch64

Linx

6.0

AArch64

On Linx, modify the /etc/pam.d/su file and delete the comment before auth sufficient pam_rootok.so so that you do not need to enter the password when you run the su command to switch from the root user to another user.

openEuler

20.03 LTS

AArch64/x86_64

-

SLES

12.4/12.5

x86_64

During SLES-based driver installation, the offline installation tool sets allow_unsupported_modules in /etc/modprobe.d/10-unsupported-modules.conf to 1, which indicates that non-built-in drivers can be loaded during system startup.

Tlinux

2.4

AArch64/x86_64

After the Tlinux system is installed, the root directory (/) has a total size of about 20 GB. To avoid decompression or installation failure, do not store a package whose size is greater than the available drive space in the resources directory.

UOS

20/20 SP1

AArch64/x86_64

-

UOS

20-1020e/20-1021e

AArch64

-

Ubuntu

18.04.1/18.04.5/20.04

AArch64/x86_64

The cross-compilation-related components and the AArch64 Toolkit software can be installed on Ubuntu x86_64.