Updated P4D2 2017 Fall vm scripts to build and install P4Runtime (#65)

* Updated vm provisioning scripts to build and install P4Runtime

Also, hardcoded commit ID for each tool to improve reproducibility
of exercises (the P4Runtime API could change in the future).

TODO: there is a permission error at line 114 of user-bootstrap.sh that
needs to be fixed.

* Removed unnecessary compiler flags when bulding PI

* Fixed permission error and updated BMv2 and PI commit IDs
This commit is contained in:
Carmelo Cascone
2017-10-25 16:41:53 -07:00
committed by Robert Soule
parent 7738341012
commit 37d1632865
2 changed files with 125 additions and 35 deletions

View File

@@ -9,36 +9,60 @@ apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
apt-get install -y \
lubuntu-desktop \
git \
vim \
emacs24 \
xcscope-el \
sublime-text-installer \
apt-get install -y --no-install-recommends \
atom \
xterm \
mininet \
autoconf \
automake \
libtool \
curl \
make \
g++ \
unzip \
libgc-dev \
bison \
build-essential \
ca-certificates \
cmake \
cpp \
curl \
emacs24 \
flex \
libfl-dev \
libgmp-dev \
git \
libboost-dev \
libboost-iostreams-dev \
libboost-filesystem-dev \
libboost-iostreams1.58-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-test-dev \
libboost-thread-dev \
libc6-dev \
libevent-dev \
libffi-dev \
libfl-dev \
libgc-dev \
libgc1c2 \
libgflags-dev \
libgmp-dev \
libgmp10 \
libgmpxx4ldbl \
libjudy-dev \
libpcap-dev \
libreadline6 \
libreadline6-dev \
libssl-dev \
libtool \
lubuntu-desktop \
make \
mininet \
mktemp \
pkg-config \
python \
python-scapy \
python-dev \
python-ipaddr \
python-pip \
python-scapy \
python-setuptools \
sublime-text-installer \
tcpdump \
cmake
unzip \
vim \
wget \
xcscope-el \
xterm
useradd -m -d /home/p4 -s /bin/bash p4
echo "p4:p4" | chpasswd