From 65faba36470e75a1339e6f79c8631c9578786b7b Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 2 Oct 2023 18:18:46 +0200 Subject: vm/gce: only enable DisplayDevice for amd64 GCE has begun to fail on arm64 instance creation with: Arm based instances do not support display device. Enable the feature for amd64 only. --- vm/gce/gce.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'vm/gce') diff --git a/vm/gce/gce.go b/vm/gce/gce.go index 5c91f08de..84714769b 100644 --- a/vm/gce/gce.go +++ b/vm/gce/gce.go @@ -79,9 +79,10 @@ func Ctor(env *vmimpl.Env, consoleReadCmd string) (*Pool, error) { return nil, fmt.Errorf("config param name is empty (required for GCE)") } cfg := &Config{ - Count: 1, - Preemptible: true, - DisplayDevice: true, + Count: 1, + Preemptible: true, + // Display device is not supported on other platforms. + DisplayDevice: env.Arch == targets.AMD64, } if err := config.LoadData(env.Config, cfg); err != nil { return nil, fmt.Errorf("failed to parse gce vm config: %w", err) -- cgit mrf-deployment