Skip to content

Commit

Permalink
templates: armv7l: directly load kernel and initrd
Browse files Browse the repository at this point in the history
EFISTUB doesn't seem to work with qemu-system-arm, so the kernel and the
initrd have to be directly passed to QEMU.

Workaround for issue 1701

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed Jul 31, 2023
1 parent 9abe762 commit d140437
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions examples/experimental/armv7l.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
# This example requires Lima v0.7.0 or later.
# This example requires Lima v0.17.0 or later.

arch: "armv7l"
cpus: 1
memory: "2GiB"
images:
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
- location: "https://cloud-images.ubuntu.com/releases/23.04/release-20230729/ubuntu-23.04-server-cloudimg-armhf.img"
arch: "armv7l"
digest: "sha256:ab0a4f4e9538694f6edc0e2f8bc18923ec364333dd2883377949d99e2f4788c6"
# Fallback to the latest release image.
# Hint: run `limactl prune` to invalidate the cache
# EFISTUB seems to be broken for qemu-system-arm, so kernel and initrd have to be directly passed to QEMU.
# https://github.com/lima-vm/lima/issues/1701
- location: "https://cloud-images.ubuntu.com/releases/23.04/release/ubuntu-23.04-server-cloudimg-armhf.img"
arch: "armv7l"
kernel:
location: "https://cloud-images.ubuntu.com/releases/23.04/release/unpacked/ubuntu-23.04-server-cloudimg-armhf-vmlinuz-lpae"
cmdline: "root=LABEL=cloudimg-rootfs ro"
initrd:
location: "https://cloud-images.ubuntu.com/releases/23.04/release/unpacked/ubuntu-23.04-server-cloudimg-armhf-initrd-generic-lpae"

mounts:
- location: "~"
- location: "/tmp/lima"
writable: true
mountType: "9p"

# We do not have arm-v7 binaries of containerd
containerd:
Expand Down

0 comments on commit d140437

Please sign in to comment.