From 2a52be25e01b5561772098349fa52ef86d665dc5 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 22 Mar 2022 13:59:17 +0000 Subject: vm/gce: enable display device configuration Now we always enable it, make this configurable for GCE instances. --- pkg/gce/gce.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkg/gce') diff --git a/pkg/gce/gce.go b/pkg/gce/gce.go index 79e4d4b35..b0100b749 100644 --- a/pkg/gce/gce.go +++ b/pkg/gce/gce.go @@ -97,7 +97,8 @@ func NewContext() (*Context, error) { return ctx, nil } -func (ctx *Context) CreateInstance(name, machineType, image, sshkey string, preemptible bool) (string, error) { +func (ctx *Context) CreateInstance(name, machineType, image, sshkey string, + preemptible, displayDevice bool) (string, error) { prefix := "https://www.googleapis.com/compute/v1/projects/" + ctx.ProjectID sshkeyAttr := "syzkaller:" + sshkey oneAttr := "1" @@ -141,7 +142,7 @@ func (ctx *Context) CreateInstance(name, machineType, image, sshkey string, pree OnHostMaintenance: "TERMINATE", }, DisplayDevice: &compute.DisplayDevice{ - EnableDisplay: true, + EnableDisplay: displayDevice, }, } retry: -- cgit mrf-deployment