Skip to content

Instantly share code, notes, and snippets.

@liusheng
Last active March 19, 2020 07:19
Show Gist options
  • Save liusheng/d5266aafaa6e7ed3481c4f49e356b7a8 to your computer and use it in GitHub Desktop.
Save liusheng/d5266aafaa6e7ed3481c4f49e356b7a8 to your computer and use it in GitHub Desktop.
build-ubuntu18.04-aarch64-image
apt-get install -y debootstrap gdisk dosfstools
export DIB_RELEASE=bionic
export DIB_CHECKSUM=1
export DIB_SHOW_IMAGE_USAGE=1
export DIB_APT_LOCAL_CACHE=0
export DIB_DISABLE_APT_CLEANUP=1
export DIB_DEV_USER_AUTHORIZED_KEYS=/root/zuul-key/id_rsa.pub
export DIB_DEV_USER_USERNAME=zuul
export DIB_DEV_USER_PWDLESS_SUDO=yes
export DIB_DEBIAN_COMPONENTS='main,universe'
disk-image-create -x -t qcow2 -a arm64 -o /tmp/ubuntu-bionic-aarch64 ubuntu vm simple-init block-device-efi growroot devuser openssh-server zuul-worker infra-package-needs pip-and-virtualenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment