Skip to content

Addressing Limitations with 64GB RAM on virt-9.2 Machine Type in QEMU 9.1.93

I am trying to test whether the qemu update v9.2 stating "The hvf accelerator now supports creating VMs with larger than 36 bit address space (and thus 64GB or more of RAM), when the host is macos 15 or newer and the host CPU supports it" for VM RAM of more than 32GB is functional. I am slightly unsure whether master branch actually has v9.2 changes or not, so it could be my fault.

Host environment

  • Operating system: macOS (M2 MacBook, arm64)
  • OS/kernel version: Darwin Nimbus 23.0.0
  • Architecture: ARM64
  • QEMU flavor: qemu-system-aarch64
  • QEMU version: QEMU emulator version 9.1.93 (compiled by me from master)
  • QEMU command line: ./build/qemu-system-aarch64 \ -m 64G \ -cpu host -smp cores=12 \ -drive file=/Users/aeonitis/VirtualMachines/Disks/30GB.img,format=raw \ -cdrom /Users/aeonitis/VirtualMachines/_ISOs/26100.2033.241004-2336.ge_release_svc_refresh_CLIENTCONSUMER_RET_A64FRE_en-gb.iso \ -boot d \ -machine virt-9.2

Emulated/Virtualized environment

  • Operating system: Windows 11
  • OS/kernel version: N/A
  • Architecture: ARM64

Description of problem

When attempting to run a VM with 64GB of RAM using the virt-9.2 machine type, QEMU encounters an error related to addressing limitations. It appears that the memory configuration exceeds the 32-bit addressing limit.

Error output: qemu-system-aarch64: Addressing limited to 32 bits, but memory exceeds it by 65498251264 bytes

Steps to reproduce

  1. Build QEMU from source on macOS (M2 MacBook, arm64).
  2. Run the command with the virt-9.2 machine type and 64GB of RAM.

Additional information

  • Changes in UTM app for release v4.6.2 - (macOS) Support > 32GiB RAM configurations in QEMU (#5537)
  • Although the site advertises release of qemu-9.2.0-rc3, the brew install doesn't install the latest version yet.
  • The QEMU build environment includes dependencies installed via Homebrew: libffi, gettext, glib, pkg-config, pixman, ninja, meson, sdl2, gtk+3, gnu-tar.
Edited by Aeonitis
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information