Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Dependencies

If the dependencies and NIC drivers mentioned in this section have been installed, skip this section. Otherwise, perform the following steps:

Configuring the Local Image

  1. Obtain the OS image file and copy it to the /root directory on each server.
  2. Run the following command to create a directory to which an image is mounted:
    1
    mkdir -p /mirror
    
  3. Mount the ISO file in the /root directory to the /mirror directory.
    1
    mount  /root/Your.iso /mirror
    

    This configuration becomes invalid after the system restarts. To make this configuration valid after the system restarts, set the parameters based on 4.

  4. (Optional) Create an image with automatic mounting enabled.
    1. Open the /etc/fstab file.
      1
      vi /etc/fstab
      
    2. Press i to enter the insert mode and add the following content to the end of the file:
      1
      /root/Your.iso /mirror iso9660 loop 0 0
      
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Create a local image source file.
    1. Go to the /etc/yum.repos.d/ directory and back up the Yum source to the bak directory.
      1
      2
      3
      cd /etc/yum.repos.d/
      mkdir bak
      mv *.repo bak
      
    2. Create a local.repo file.
      1
      vim local.repo
      
    3. Press i to enter the insert mode and edit the local.repo file.
      [local]
      name=local.repo
      baseurl=file:///mirror
      enabled=1
      gpgcheck=0
    4. Press Esc, type :wq!, and press Enter to save the file and exit.
    5. Make the local source take effect.
      1
      2
      3
      yum clean all
      yum makecache
      yum list
      

Installing DPDK Dependency Packages

Install DPDK dependency packages.

  • CentOS
    1
    yum -y install kernel-devel numactl-devel
    
  • openEuler
    1
    2
    3
    4
    yum -y install kernel-devel numactl-devel
    yum groupinstall "Development Tools"
    pip3 install pyelftools
    pip3 install meson ninja