-
Notifications
You must be signed in to change notification settings - Fork 2
onvm installation
animeshk08 edited this page Nov 22, 2019
·
5 revisions
Install onvm and get the onvm network manager running
sudo apt-get install build-essential linux-headers-$(uname -r) git
sudo apt-get install libnuma-dev
sudo apt-get update
git clone https://github.com/sdnfv/openNetVM
cd openNetVM
git checkout master
git submodule sync
git submodule update --init
echo export ONVM_HOME=$(pwd) >> ~/.bashrc
cd dpdk
echo export RTE_SDK=$(pwd) >> ~/.bashrc
cd ..
echo export RTE_TARGET=x86_64-native-linuxapp-gcc >> ~/.bashrc
echo export ONVM_NUM_HUGEPAGES=1024 >> ~/.bashrc
export ONVM_NIC_PCI=" 00:08.0"
source ~/.bashrc
sudo sh -c "echo 0 > /proc/sys/kernel/randomize_va_space"
./scripts/install.sh
cd onvm
make
Run openNetVM manager to use 3 cores (1 for displaying statistics, 1 for handling TX queues, 1 for handling manager RX queues), to use 1 NIC port (hexadecimal portmask), 0xF8 for the NF coremask (cores 3, 4, 5, 6, 7), and to use stdout for the statistics console:
./onvm/go.sh 0,1,2 1 0xF8 -s stdout
Now enter the mtcp directory and run the following commands
./setup_mtcp_onvm_env.sh
ip addr add 10.1.0.1/24 dev dpdk0
ip link set up dpdk0
./configure --with-dpdk-lib=$RTE_SDK/$RTE_TARGET --with-onvm-lib=`echo $ONVM_HOME`/onvm
make