Following my previous article, I wanted to check out Ubuntu 22.04 LTS. Unfortunately Ubuntu 22.04 is not released yet, but we can grab a daily build. Keep in mind daily builds are not meant for production purposes.
Download the daily iso from https://cdimage.ubuntu.com/ubuntu-server/daily-live/, e.g. https://cdimage.ubuntu.com/ubuntu-server/daily-live/20220320/jammy-live-server-arm64.iso – this link will not work because the date will be too old a day after I write this.
# wget https://cdimage.ubuntu.com/ubuntu-server/daily-live/20220320/jammy-live-server-arm64.iso
Then run virt-install as usual, and choose ssh setup when presented with the option.
# virt-install -n mailserver --description "mailserver" --os-type=linux --os-variant=ubuntu21.04 --ram=2048 --vcpus=2 --disk path=/var/lib/libvirt/images/mailserver.img,bus=virtio,size=20 --network brid
ge:br0 --graphics none --cdrom /var/lib/libvirt/boot/jammy-live-server-arm64.iso
Note: employ a bit of patience when running the installation; it may take a few minutes before the installation options are presented.