diff --git a/pkg/limayaml/defaults.go b/pkg/limayaml/defaults.go index 00ccf6bd551..22d3a44813d 100644 --- a/pkg/limayaml/defaults.go +++ b/pkg/limayaml/defaults.go @@ -132,37 +132,6 @@ func defaultGuestInstallPrefix() string { return "/usr/local" } -func defaultFirmwareImages() []FileWithVMType { - return []FileWithVMType{ - /* - The "Firmware/edk2 20231213" patches - are necessary to boot most aarch64 images (except Debian, which does not use UEFI shim). - - The patches are proposed for the QEMU v8.2.0 milestone, but likely to be postponed to v8.2.1. - Until the patches get accepted in the QEMU upstream, Lima fetches the patched edk2 binary from - . - */ - { - File: File{ - Location: "https://gitlab.com/kraxel/qemu/-/raw/704f7cad5105246822686f65765ab92045f71a3b/pc-bios/edk2-aarch64-code.fd.bz2", - Arch: AARCH64, - Digest: "sha256:a5fc228623891297f2d82e22ea56ec57cde93fea5ec01abf543e4ed5cacaf277", - }, - VMType: QEMU, - }, - // Mirror - { - File: File{ - Location: "https://github.com/AkihiroSuda/qemu/raw/704f7cad5105246822686f65765ab92045f71a3b/pc-bios/edk2-aarch64-code.fd.bz2", - Arch: AARCH64, - Digest: "sha256:a5fc228623891297f2d82e22ea56ec57cde93fea5ec01abf543e4ed5cacaf277", - }, - VMType: QEMU, - }, - // TODO: what about ARMv7? - } -} - // FillDefault updates undefined fields in y with defaults from d (or built-in default), and overwrites with values from o. // Both d and o may be empty. // @@ -335,9 +304,6 @@ func FillDefault(y, d, o *LimaYAML, filePath string) { } y.Firmware.Images = append(append(o.Firmware.Images, y.Firmware.Images...), d.Firmware.Images...) - if len(y.Firmware.Images) == 0 { - y.Firmware.Images = defaultFirmwareImages() - } for i := range y.Firmware.Images { f := &y.Firmware.Images[i] if f.Arch == "" { diff --git a/pkg/qemu/qemu.go b/pkg/qemu/qemu.go index 0c7710a2174..08aa3f37dc5 100644 --- a/pkg/qemu/qemu.go +++ b/pkg/qemu/qemu.go @@ -483,6 +483,10 @@ func Cmdline(ctx context.Context, cfg Config) (exe string, args []string, err er if version.LessThan(*semver.New(MinimumQemuVersion)) { logrus.Fatalf("QEMU %v is too old, %v or later required", version, MinimumQemuVersion) } + if runtime.GOOS == "darwin" && runtime.GOARCH == "arm64" && version.Equal(*semver.New("8.2.0")) { + logrus.Fatal("QEMU 8.2.0 is no longer supported on ARM Mac due to . " + + "Please upgrade QEMU to v8.2.1 (or downgrade to v8.1.x).") + } } // Architecture