cilium / packer-ci-build

Contains the scripts and data for building the Cilium CI testing VM.
10 stars 17 forks source link

Support arm64 builds with multipass #307

Open jrajahalme opened 2 years ago

jrajahalme commented 2 years ago

Add 'multipass' make target for creating Cilium Development VMs with Canonical Multipass. As on now there is no vagrant provider for multipass, so the resulting images do not work with vagrant, but can be locally created and used directly with multipass.

Example use:

NETNEXT=true VM_NAME=netnext VM_CPUS=8 VM_MEMORY=8G make multipass

This will launch a new VM with Ubuntu 20.04 and run the standard Cilium VM provisioning scripts on it, followed by mounting the Cilium repos from the host to the VM (at /home/ubuntu/go/src/github.com/cilium) using NFS. Adjusting NFS exports is done with 'sudo', so the password will be asked for when needed.

See the Makefile for all the supported environment variables.

This has been tested on MacOS on Apple Silicon (arm64), but should also work on the Intel models (amd64). Multipass should also work on Linux, but that has not been tested.

To enable this dependencies have been bumped to versions with arm64 support and virtual box guest additions install has been made conditional.

tklauser commented 2 years ago

build-me-please

jrajahalme commented 2 years ago

build-me-please

jrajahalme commented 2 years ago

build-me-please

jrajahalme commented 2 years ago

build-me-please

jrajahalme commented 2 years ago

build-me-please

jrajahalme commented 2 years ago

build-me-please

tklauser commented 2 years ago

Looks like this needs another rebase after #309 being merged.

tklauser commented 2 years ago

build-me-please