Custom Images for MAAS


#1

Hello all,

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

I’ve tried these instructions with no luck:
https://askubuntu.com/questions/882911/how-do-i-use-maas-to-create-a-debian-image

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:

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

any ideas on this?

Debian image downloaded from here:
http://cdimage.debian.org/cdimage/openstack/current/debian-9.5.6-20181013-openstack-arm64.raw


#2

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


#3

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

Below is the correct link:
http://cdimage.debian.org/cdimage/openstack/current/debian-9.5.6-20181013-openstack-amd64.raw

thanks!