2 # Standard update + upgrade dance
7 yum groupinstall 'Development Tools' -y
8 yum install openssl-devel -y
9 yum install glibc-static -y
11 # Install development tools
13 yum install gdbserver -y
15 # Install jdk and maven
16 yum install -y java-1.8.0-openjdk-devel
19 yum install -y epel-release
21 # Install components to build Ganglia modules
22 yum install -y apr-devel
23 yum install -y --enablerepo=epel libconfuse-devel
24 yum install -y --enablerepo=epel ganglia-devel
27 yum install -y pciutils
29 # Load the uio kernel module
30 modprobe uio_pci_generic
32 echo uio_pci_generic >> /etc/modules-load.d/uio_pci_generic.conf
34 # Setup for hugepages using upstart so it persists across reboots
35 sysctl -w vm.nr_hugepages=1024
36 echo "vm.nr_hugepages=1024" >> /etc/sysctl.conf
38 echo "hugetlbfs /mnt/huge hugetlbfs defaults 0 0" >> /etc/fstab
43 sudo -u vagrant mkdir git
46 # Check if git exists and remove it before attempting clone, else clone ineffective when "reload --provision"
47 [ -d vpp ] && rm -rf vpp
48 sudo -H -u vagrant git clone /vpp
52 if [ -d build-root ]; then
55 sudo -H -u vagrant ./bootstrap.sh
58 sudo -H -u vagrant make PLATFORM=vpp TAG=vpp_debug install-packages