arch: "aarch64" 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/22.04/release-20230518/ubuntu-22.04-server-cloudimg-amd64.img" arch: "x86_64" digest: "sha256:afb820a9260217fd4c5c5aacfbca74aa7cd2418e830dc64ca2e0642b94aab161" - location: "https://cloud-images.ubuntu.com/releases/22.04/release-20230518/ubuntu-22.04-server-cloudimg-arm64.img" arch: "aarch64" digest: "sha256:b47f8be40b5f91c37874817c3324a72cea1982a5fdad031d9b648c9623c3b4e2" # Fallback to the latest release image. - location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img" arch: "x86_64" - location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-arm64.img" arch: "aarch64" memory: "12GiB" cpus: 12 disk: "64GiB" ssh: localPort: 4444 provision: - mode: system script: | #!/bin/bash set -eux -o pipefail export DEBIAN_FRONTEND=noninteractive apt-get update apt-get install --yes vim python3 python3-pip apt-get install --yes apt-transport-https ca-certificates curl clang jq libzstd-dev apt-get install --yes libelf-dev libpcap-dev libbfd-dev binutils-dev build-essential make apt-get install --yes bsdutils apt-get install --yes build-essential apt-get install --yes pkgconf apt-get install --yes zlib1g-dev libelf-dev apt-get install --yes protobuf-compiler apt-get install --yes libssl-dev apt-get install --yes net-tools apt-get install --yes iperf3 apt-get install --yes cmake apt-get install --yes bpfcc-tools bpftrace apt-get install --yes linux-tools-common linux-tools-generic apt-get install --yes linux-headers-$(uname -r) linux-tools-$(uname -r) curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y /root/.cargo/bin/rustup toolchain install nightly --component rust-src wget https://apt.llvm.org/llvm.sh chmod +x llvm.sh ./llvm.sh 19 all rm ./llvm.sh LLVM_SYS_191_PREFIX=/usr/lib/llvm-19 /root/.cargo/bin/cargo install --no-default-features bpf-linker - mode: user script: | #!/bin/bash set -eux -o pipefail sudo cp /home/$(whoami).linux/.ssh/authorized_keys /root/.ssh/authorized_keys