Advertisement
Guest User

Untitled

a guest
Mar 31st, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.11 KB | None | 0 0
  1. #!/bin/bash
  2. echo "runs in the home folder"
  3. echo "install dependencies"
  4. sudo apt-get update
  5. sudo apt-get upgrade -y
  6. sudo apt-get install build-essential linux-headers-$(uname -r) libelf-dev -y
  7. sudo apt-get install pciutils pkg-config mlocate libnuma-dev zip git -y
  8. sudo ionice -c3 updatedb
  9.  
  10. echo "clone openNetVM from Github"
  11. git clone https://github.com/sdnfv/openNetVM
  12. cd openNetVM
  13. git checkout master
  14. git submodule sync
  15. git submodule update --init
  16.  
  17. echo "setting up environmental variables"
  18. echo export ONVM_HOME=$(pwd) >> ~/.bashrc
  19. echo export RTE_TARGET=x86_64-native-linuxapp-gcc  >> ~/.bashrc
  20. echo export ONVM_NUM_HUGEPAGES=1024 >> ~/.bashrc
  21. echo export RTE_SDK=$(pwd)/dpdk >> ~/.bashrc
  22. export ONVM_NIC_PCI=" 0000:00:04.0 "  # I checked this is the same everytime
  23. . ~/.bashrc
  24. sudo bash -c "echo 0 > /proc/sys/kernel/randomize_va_space"
  25.  
  26. echo "compile dpdk, openNetVM, and examples"
  27. ./scripts/install.sh
  28. make -C ./onvm && make -C ./examples
  29.  
  30. echo "disable hyperthreading and print out cpu stats"
  31. sudo ./scripts/no_hyperthread.sh
  32. sudo ./scripts/corehelper.py
  33. cd ..
  34. echo "installation complete"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement