Rate This Document
Findability
Accuracy
Completeness
Readability

CentOS 7.6

Configuring the BIOS

  1. Access the BIOS.

    For details, see "Accessing the BIOS" in TaiShan Server BIOS Parameter Reference (Kunpeng 920 Processor).

  2. Enable IOMMU.
    1. Choose Advanced > MISC Config and press Enter.

    2. Set Support Smmu to Enabled.

    3. Press F10 to save the settings and exit.

Installing Dependencies

  1. Install the compilation dependencies.
    1
    sudo yum install -y automake cmake patch numactl numactl-devel kernel-devel libevent glib2 glib2-devel libtool openssl-devel selinux-policy-devel autoconf python-sphinx unbound-devel logrotate
    
  2. Install the VM dependencies.
    1
    2
    sudo yum install centos-release-qemu-ev
    sudo yum install -y libvirt AAVMF virt-install qemu-guest-agent qemu-kvm-common-ev qemu-img-ev qemu-kvm-tools-ev qemu-kvm-ev
    

    The QEMU software package with the file name extension ev must be installed. Otherwise, the dpdkvhostuser and dpdkvhostuserclient ports cannot be configured for VMs.

  3. Upgrade the GCC.
    By default, DPDK 19.11 does not support compilation with GCC 4.8.5. You need to upgrade the GCC or modify compilation parameters. Modifying compilation parameters may affect the performance. Therefore, you are advised to upgrade the GCC.
    1
    2
    3
    sudo yum install -y centos-release-scl
    sudo yum install -y devtoolset-7-gcc devtoolset-7-gcc-c++
    scl enable devtoolset-7 bash
    

(Optional) Configuring GCC Environment Variables

The default values of GCC environment variables will be used upon Bash shutdown or re-login. In this case, perform the following operations to retain the preceding GCC environment variables.

  1. Run the enable command again.
    1
    scl enable devtoolset-7 bash
    
  2. Retain GCC environment variables of Bash.
    1. Open the ~/.bash_profile file.
      1
      vim ~/.bash_profile
      
    2. Press i to enter the insert mode and add the following content to the end of the file:
      1
      scl enable devtoolset-7 bash
      
    3. Press Esc to exit the insert mode. Input :wq! and press Enter to save the file and exit.