![]() ![]() use -privileged for inseting kernel modulesĭocker run -it -d -privileged -v /sys/bus/pci/drivers:/sys/bus/pci/drivers -v /sys/kernel/mm/hugepages:/sys/kernel/mm/hugepages -v /sys/devices/system/node:/sys/devices/system/node -v /dev:/dev -name $DockerContainer $DockerImages For example, # cat create_dpdk_container.sh Ln -s $PKTGENROOT/app/app/$CONFIG/pktgen /usr/binĪfter building the DPDK images, we need create more NICs to test DPDK applications. # sed -i '/Wwrite-strings$/ s/$/ -Wno-unused-but-set-variable/' $DPDKROOT/mk/toolchain/gcc/ Make config T=$CONFIG DESTDIR=/opt/dpdk-2.2.0 install # Usage: Adjust variables below before running, if necessary. # Defaults to a bash shell, you could put your DPDK-based application here. # Build DPDK and pktgen-dpdk for x86_64-native-linuxapp-gcc. RUN yum install -y sudo pciutils vim wget \ ![]() RUN yum install -y sudo libhugetlbfs-utils libpcap-devel \ ![]() # Setup yum repos, or use subscription-manager LABEL RUN docker run -it -privileged -v /sys/bus/pci/drivers:/sys/bus/pci/drivers -v /sys/kernel/mm/hugepages:/sys/kernel/mm/hugepages -v /sys/devices/system/node:/sys/devices/system/node -v /dev:/dev -name NAME -e NAME=NAME -e IMAGE=IMAGE IMAGE" This step is inspired by docker-dpdk, and change the version of DPDK and PKTGEN version to the latest. Note3: The VMWARE virtual host should setup 3 NICs. Note2: The virtual driver of VMware host need to change to vmxnet3, for example # vim centos7.vmx Otherwise the compiling of DPDK may encounter errors. Note1: The kernel version of host should be the same with the docker image. Install pipework for adding multiple NICs Install docker and pull centos 7 docker images Gcc automake autoconf libtool make net-tools \ # yum update kernel kernel-devel kernel-headers And that's exactly how I setup up my host.įor example, you can use VMware Workstation in Windows to setup a CentOS 7 host.Īfter installing the OS for the host, you can install the essential tools by following commands: // Update the kernel version to the latest Of course, this CentOS 7 host can also be a VM. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |