From 68def56dcee511f758e2c515d73912e2cc04ce96 Mon Sep 17 00:00:00 2001 From: Greg Steuck Date: Thu, 13 Sep 2018 15:34:34 -0700 Subject: tools/create-openbsd-gce-ci.sh: Add VMM configuration. Added verification of successful package install. --- tools/create-openbsd-gce-ci.sh | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) (limited to 'tools') diff --git a/tools/create-openbsd-gce-ci.sh b/tools/create-openbsd-gce-ci.sh index 5785d7028..a3342c502 100755 --- a/tools/create-openbsd-gce-ci.sh +++ b/tools/create-openbsd-gce-ci.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright 2018 syzkaller project authors. All rights reserved. # Use of this source code is governed by Apache 2 LICENSE that can be found in @@ -29,9 +29,8 @@ fi mkdir -p etc cat >install.site < boot.conf echo 'PasswordAuthentication no' >> /etc/ssh/sshd_config @@ -43,6 +42,7 @@ EOF cat >etc/installurl <etc/rc.local <etc/rc.local <etc/rc.conf.local <etc/vm.conf <auto_install.conf <&1 < /dev/null \ + || { echo Package installation failed. Inspect install_log. 2>&1 ; exit 1; } + # Create Compute Engine disk image. echo "Archiving disk.raw... (this may take a while)" i="openbsd-${ARCH}-gce.tar.gz" @@ -166,5 +184,7 @@ Done. To create GCE image run the following commands: gsutil cp -a public-read "$i" gs://syzkaller/ -gcloud compute images create ci-openbsd-root --source-uri gs://syzkaller/"$i" +gcloud compute images create ci-openbsd-root --source-uri gs://syzkaller/"$i" \\ + --licenses "https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx" + EOF -- cgit mrf-deployment