Custom Images for MAAS

Hello all,

I’m trying to get Debian to work with MAAS.

I’ve tried these instructions with no luck:

Download a debian cloud image in raw format.

Mount the image

sudo mkdir /mnt/loop
sudo mount -o ro,loop,offset=1048576 <nameofdebianimage.raw> /mnt/loop

Convert to a gzipped tarball

cd /mnt/loop
sudo tar czvf ~/debian.tgz .
sudo umount /mnt/loop
Upload this to maas

cd ~
maas login your.user http://<maasserver>:5240/MAAS 'user:credentials'
maas your.user boot-resources create name=custom/debian title="debian" architecture=amd64/generic content@=debian.tgz

Edit /etc/maas/preseeds/curtin_userdata_custom and add the following at the top after the comment line and before debconf_selections to override the kernel to install:

  fallback-package: linux-image-amd64
  package: linux-image-amd64

any ideas on this?

Debian image downloaded from here:

1 Like

The image you are using is for ARM. You should choose the AMD equivalent.

Actually, AMD64 image was used. I just copied the wrong link here for reference.

Below is the correct link: