From 57eb3a6f4b76d6fa8c1af026974002b4672d6ad0 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Wed, 24 Jul 2024 15:31:26 +0900 Subject: [PATCH] vz: ignore firmware.legacyBIOS Signed-off-by: Akihiro Suda --- examples/default.yaml | 2 +- pkg/vz/vz_driver_darwin.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/default.yaml b/examples/default.yaml index 5c43aa57c67f..445aac06aaf7 100644 --- a/examples/default.yaml +++ b/examples/default.yaml @@ -280,7 +280,7 @@ rosetta: timezone: null firmware: - # Use legacy BIOS instead of UEFI. Ignored for aarch64. + # Use legacy BIOS instead of UEFI. Ignored for aarch64 and vz. # 🟢 Builtin default: false legacyBIOS: null # # Override UEFI images diff --git a/pkg/vz/vz_driver_darwin.go b/pkg/vz/vz_driver_darwin.go index bf859eea246b..c76be5048fd0 100644 --- a/pkg/vz/vz_driver_darwin.go +++ b/pkg/vz/vz_driver_darwin.go @@ -79,7 +79,7 @@ func (l *LimaVzDriver) Validate() error { return fmt.Errorf("field `mountType` must be %q or %q for VZ driver , got %q", limayaml.REVSSHFS, limayaml.VIRTIOFS, *l.Yaml.MountType) } if *l.Yaml.Firmware.LegacyBIOS { - return fmt.Errorf("`firmware.legacyBIOS` configuration is not supported for VZ driver") + logrus.Warnf("vmType %s: ignoring `firmware.legacyBIOS`", *l.Yaml.VMType) } for _, f := range l.Yaml.Firmware.Images { switch f.VMType {