summaryrefslogtreecommitdiffhomepage
path: root/kokoro/ubuntu1604/40_kokoro.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kokoro/ubuntu1604/40_kokoro.sh')
-rwxr-xr-xkokoro/ubuntu1604/40_kokoro.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/kokoro/ubuntu1604/40_kokoro.sh b/kokoro/ubuntu1604/40_kokoro.sh
index 1be865182..64772d74d 100755
--- a/kokoro/ubuntu1604/40_kokoro.sh
+++ b/kokoro/ubuntu1604/40_kokoro.sh
@@ -23,7 +23,7 @@ declare -r ssh_public_keys=(
)
# Install dependencies.
-apt-get update && apt-get install -y rsync coreutils python-psutil
+apt-get update && apt-get install -y rsync coreutils python-psutil qemu-kvm
# We need a kbuilder user.
if useradd -c "kbuilder user" -m -s /bin/bash kbuilder; then
@@ -39,6 +39,12 @@ cat > /etc/sudoers.d/kokoro <<EOF
kbuilder ALL=(ALL) NOPASSWD:ALL
EOF
+# Ensure we can run Docker without sudo.
+usermod -aG docker kbuilder
+
+# Ensure that we can access kvm.
+usermod -aG kvm kbuilder
+
# Ensure that /tmpfs exists and is writable by kokoro.
#
# Note that kokoro will typically attach a second disk (sdb) to the instance