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
- Obtain the OS image file and copy it to the /root directory on each server.
OS image download links:
- Run the following command to create a directory to which an image is mounted:
1mkdir -p /mirror
- Mount the ISO file in the /root directory to the /mirror directory.
1mount /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.
- (Optional) Create an image with automatic mounting enabled.
- Open the /etc/fstab file.
1vi /etc/fstab - 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the /etc/fstab file.
- Create a local image source file.
- 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
- Create a local.repo file.
1vim local.repo - Press i to enter the insert mode and edit the local.repo file.
[local] name=local.repo baseurl=file:///mirror enabled=1 gpgcheck=0
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Make the local source take effect.
1 2 3
yum clean all yum makecache yum list
- Go to the /etc/yum.repos.d/ directory and back up the Yum source to the bak directory.
Installing DPDK Dependency Packages
Install DPDK dependency packages.
- CentOS
1yum -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
Parent topic: Installing and Running DPDK on Physical Machines