minikube: ERROR: qemu-system-aarch64: Addressing limited to 32 bits

What Happened?

When starting minikube v1.26.0-beta.1 with the following configuration, it fails to start.

- cpus: 8
- driver: qemu2
- memory: 32768

Log file is attached though the error indicates a 32-bit memory address limitation. My host configuration is…

  • OS: macOS Monterey (12.4)
  • CPU: Apple M1 Ultra
  • Memory: 128 GB

NOTE: I wasn’t able to select qemu2 as the driver below on this form.

Attach the log file

logs.txt

Operating System

macOS (Default)

Driver

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19

Most upvoted comments

Looks like host is a reasonable choice for CPU for darwin. I think we can change that from cortex-a72 and only set highmem=off when available RAM is under 32 GB.

@afbjorklund As always, thanks for your guidance here and the above links. I’ll review #14146 to see where I can help.

It should check the macOS version, and only apply the workaround if < 12.4

                qemuMachine = "virt"
                qemuCPU = "cortex-a72"
                // highmem=off needed, see https://patchwork.kernel.org/project/qemu-devel/patch/20201126215017.41156-9-agraf@csgraf.de/#23800615 for details
                if runtime.GOOS == "darwin" {
                        qemuMachine = "virt,highmem=off"
                }

Also the virt basic machine, should be separated out from the other options.

LIke so: qemuMachine += ",highmem=off"