blob: 1d811e455999191662261f8dbf8fb748d8866e50 [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001
2# Standard update + upgrade dance
3yum check-update
4yum update -y
5
6# Install build tools
7yum groupinstall 'Development Tools' -y
8yum install openssl-devel -y
9yum install glibc-static -y
10
11# Install jdk and maven
12yum install -y java-1.8.0-openjdk-devel
13
14# Load the uio kernel module
15modprobe uio_pci_generic
16
17echo uio_pci_generic >> /etc/modules-load.d/uio_pci_generic.conf
18
19# Setup for hugepages using upstart so it persists across reboots
20sysctl -w vm.nr_hugepages=1024
21echo "vm.nr_hugepages=1024" >> /etc/sysctl.conf
22mkdir -p /mnt/huge
23echo "hugetlbfs /mnt/huge hugetlbfs defaults 0 0" >> /etc/fstab
24mount /mnt/huge
25
26# Setup the vpp code
27cd ~vagrant/
28sudo -u vagrant mkdir git
29cd git/
30
31# You will need to alter this line to reflect reality.
32sudo -H -u vagrant git clone /vpp
33cd vpp
34
35# Initial vpp build
36if [ -d build-root ]; then
37 # Bootstrap vpp
38 cd build-root/
39 sudo -H -u vagrant ./bootstrap.sh
40
41 # Build vpp
42 sudo -H -u vagrant make PLATFORM=vpp TAG=vpp_debug install-packages
43 cd ~vagrant/
44 cat /vagrant/README
45fi