Arch Linux on Azure

After years of using my favorite Linux distribution on my on-premise systems, like desktops, servers or even Raspberry Pis I’ve be always keen to use Arch on cloud as well. Unfortunately there aren’t any prebuilt images for Arch Linux available on the most public hyperscalers.

I’m now happy to announce the availabilty of an community Arch Linux image on Azure, as I got the possibility to be party of the preview of the community galleries preview 1.

You can find the image using the Community Images (PREVIEW) option on Azure Portal, with name arch-linux and publisher ´danielwagn3r` as shown here:

Community Images

Building the image

After reading some blog posts and articles 2,3,4,5 on the topic, I experimented with the image generation on my own. After some initial failes with QEMU and due the possiblity of a Windows box with Hyper-V on it I choose that approach to bootstrap my image. Initally I even skipped cloud-init on only packaged the waagent in the image, but I soon saw that the handling of an cloud-init enabled image was by far smoother when on Azure.

On the portal this then looks like this:

Virtual machine properties

The images is provided as is without any guarantee or liability.

Upcoming work

Currently the image only support generation 1 VMs on Azure. Support for generation 2 VMs 6 would be nice, but requires some work with Secure Boot. Azure enables trusted launch 7 per default with generation two VMs.

Another interesting option would be to provide an ARM based image, as Azure VMs with Arm are GA since September this year 8

In case anybody want’s to help with the work on this, just drop me a note.

References