Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "runs in the home folder"
- echo "install dependencies"
- sudo apt-get update
- sudo apt-get upgrade -y
- sudo apt-get install build-essential linux-headers-$(uname -r) libelf-dev -y
- sudo apt-get install pciutils pkg-config mlocate libnuma-dev zip git -y
- sudo ionice -c3 updatedb
- echo "clone openNetVM from Github"
- git clone https://github.com/sdnfv/openNetVM
- cd openNetVM
- git checkout master
- git submodule sync
- git submodule update --init
- echo "setting up environmental variables"
- echo export ONVM_HOME=$(pwd) >> ~/.bashrc
- echo export RTE_TARGET=x86_64-native-linuxapp-gcc >> ~/.bashrc
- echo export ONVM_NUM_HUGEPAGES=1024 >> ~/.bashrc
- echo export RTE_SDK=$(pwd)/dpdk >> ~/.bashrc
- export ONVM_NIC_PCI=" 0000:00:04.0 " # I checked this is the same everytime
- . ~/.bashrc
- sudo bash -c "echo 0 > /proc/sys/kernel/randomize_va_space"
- echo "compile dpdk, openNetVM, and examples"
- ./scripts/install.sh
- make -C ./onvm && make -C ./examples
- echo "disable hyperthreading and print out cpu stats"
- sudo ./scripts/no_hyperthread.sh
- sudo ./scripts/corehelper.py
- cd ..
- echo "installation complete"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement