Custom Images in MAAS

I’m trying to find out how it might be possible to run custom images from MAAS but I have been unable to find a method/tutorial that works. Most of them require a command to be ran after you have a ready image such as “maas massuser boot-resources create …” but when I try running these commands I get the maas help page which doesn’t even show ‘boot-resources’ as a command.
Is it possible to add custom images with the latest version of maas?
If so is there a detailed tutorial available somewhere?

1 Like

Seen this yet? https://github.com/canonical/packer-maas
Instructions are in the README for the OS

@robert-datacare, there is no tutorial yet, but this bumps it up on my list of things to get done. did you see the README for https://github.com/canonical/packer-maas? if you’re having trouble with the README, lmk, i’ll try to help.

I’ve tried folowing the instructions for making an image with packer but when i run ‘make custom-ubuntu-lvm.dd.gz’ it comes up with an error.
Screenshot from 2022-12-14 08-08-13

Make sure you have the right version of packer.

apt-add-repository “deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main”
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
#remove local from /etc/apt/sources.list
apt update

Hey @robert-datacare,

Regarding the issue with getting the full commands from the CLI - the full set of commands are only visible and available when you are logged in with a valid profile (the “massuser” part)

Check out the instructions that kick off this article.

https://developer.hashicorp.com/packer/downloads