The Packer template in this directory creates a Azure Linux 2.0 AMD64 image for use with MAAS.
This distribution was formerly known as CBL-Mariner
.
- A machine running Ubuntu 22.04+ with the ability to run KVM virtual machines.
- qemu-utils, libnbd-bin, nbdkit and fuse2fs
- Packer., v1.7.0 or newer
See curtin/install-custom-packages file.
The Packer template needs the CBL-Mariner 2.0 ISO image.
You can build the image using the Makefile:
make azurelinux.tar.gz ISO=/path/to/Mariner-2.0-x86_64.iso
The installation runs in a non-interactive mode.
Note: mariner-packer.pkr.hcl runs Packer in headless mode, with the serial port output from qemu redirected to stdio to give feedback on image creation process. If you wish to see more, change the value of headless
to false
in mariner-packer.pkr.hcl, and remove [ "-serial", "stdio" ]
from qemuargs
section. This lets you watch progress of the image build script. Press ctrl-b 2
to switch to shell to explore more, and ctrl-b 1
to go back to log view.
Setting this to PACKER_LOG=1
will show verbose output during the build process.
The path to the ISO image.
maas $PROFILE boot-resources create name='custom/cbl-mariner-2.0' \
title='CBL Mariner 2.0 Custom' architecture='amd64/generic' \
base_image='rhel/8' filetype='tgz' \
content@=azurelinux.tar.gz
MAAS uses cloud-init to create mariner
account using the ssh keys configured for the MAAS admin user (e.g. imported from Launchpad). Log in to the machine:
ssh -i ~/.ssh/<your_identity_file> mariner@<machine-ip-address>
The autoinstall script sets the mariner
account password to mariner
.