# This template requires Lima v0.8.3 or later.

# NOTE: EL8-based distros are known not to work on M1 chips: https://github.com/lima-vm/lima/issues/841
# EL9-based distros are known to work.

images:
- location: "https://repo.almalinux.org/almalinux/8.9/cloud/x86_64/images/AlmaLinux-8-GenericCloud-8.9-20231128.x86_64.qcow2"
  arch: "x86_64"
  digest: "sha256:a1686bc537bce699b512e3233666f5b8f69ed797ff1ce0af52c17fdc52942621"
- location: "https://repo.almalinux.org/almalinux/8.9/cloud/aarch64/images/AlmaLinux-8-GenericCloud-8.9-20231128.aarch64.qcow2"
  arch: "aarch64"
  digest: "sha256:603531fce80537f1ac4f78b6a43f79a47d1b2d70247fb2004da48ff1e5300813"
# Fallback to the latest release image.
# Hint: run `limactl prune` to invalidate the cache
- location: "https://repo.almalinux.org/almalinux/8/cloud/x86_64/images/AlmaLinux-8-GenericCloud-latest.x86_64.qcow2"
  arch: "x86_64"
- location: "https://repo.almalinux.org/almalinux/8/cloud/aarch64/images/AlmaLinux-8-GenericCloud-latest.aarch64.qcow2"
  arch: "aarch64"
mounts:
- location: "~"
- location: "/tmp/lima"
  writable: true
cpuType:
  # Workaround for "vmx_write_mem: mmu_gva_to_gpa XXXXXXXXXXXXXXXX failed" on Intel Mac
  # https://bugs.launchpad.net/qemu/+bug/1838390
  x86_64: "Haswell-v4"
