diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-10-02 18:18:46 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-10-02 16:40:30 +0000 |
| commit | 65faba36470e75a1339e6f79c8631c9578786b7b (patch) | |
| tree | ede73ae4cc0e51fe173ba68c73fce5fc5eefe4f4 /vm | |
| parent | 50b20e75ef04c31603a5b0cfe1f59c749f172724 (diff) | |
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.
Diffstat (limited to 'vm')
| -rw-r--r-- | vm/gce/gce.go | 7 |
1 files changed, 4 insertions, 3 deletions
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) |
