我要评分
获取效率
正确性
完整性
易理解

CentOS 7.6

Configuring the BIOS

  1. Log in to the BMC system of the server, restart the server, and press DEL to enter the BIOS.

  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
    
  3. 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
    
  4. (Optional) Configure GCC environment variables.
    1. The default values of GCC environment variables will be used upon Bash shutdown or re-login. In this case, run the following command again to retain GCC environment variables:
      1
      scl enable devtoolset-7 bash
      
    2. Retain GCC environment variables of Bash.

      Open the ~/.bash_profile file.

      1
      vim ~/.bash_profile
      

      Add the following content to the last line:

      1
      scl enable devtoolset-7 bash
      
  • Some of the preceding software packages need to be downloaded from the Internet. Ensure that the server is connected to the Internet and the corresponding sources are configured.
  • The QEMU software package with the file name extension ev must be installed. Otherwise, the dpdkvhostuser and dpdkvhostuserclient ports cannot be configured for VMs.
  • 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 will affect the performance. Therefore, you are advised to upgrade the GCC.