onos/tools/dev/p4vm/kernel-update.sh
Carmelo Cascone ada7b5b820 New P4 dev and tutorial VM with Ubuntu 18.04
Change-Id: Iacf2ca8f8467dc91e696ace5ed30412f7869110a
(cherry picked from commit 2b8bcbcd3d0e3e66ee2bc681f0f1dfbb0e2a218f)
2019-05-17 20:45:36 +00:00

16 lines
408 B
Bash
Executable File

#!/usr/bin/env bash
set -xe
# There is a known issue with some kernel versions that affects PTF tests:
# https://github.com/jafingerhut/p4-guide/tree/master/linux-veth-bug
# Run this script to update the kernel inside the VM.
KERNEL_VER="4.15.0-46-generic"
apt-get update
apt-get -y --no-install-recommends install \
linux-image-${KERNEL_VER} linux-headers-${KERNEL_VER}
apt-mark hold ${KERNEL_VER}