Debian Not deploying

Hi all,

I am using the latest Maas version (3.4) with Ubuntu 20.04 LTS (the default) as the comissioning distro.
I tried to follow the instructions present at https://github.com/canonical/packer-maas/tree/main/debian but until now I have been unsuccessful to launch a Debian 12 Machine.

Server Specs:
HP DL380 Gen 10+ with EFI enabled

My commands for the image generation:

git clone https://github.com/canonical/packer-maas.git
cd packer-maas/debian/
make debian SERIES=bookworm
sudo cp curtin_userdata_custom_amd64 /var/snap/maas/current/preseeds/curtin_userdata_custom_amd64_generic_debian-12
maas admin $PROFILE boot-resources create name='custom/debian-12' title='Debian 12 Custom' architecture='amd64/generic' filetype='tgz' content@=debian-custom-cloudimg.tar.gz -k

The error after trying the deploy on MaaS:

Thanks a lot
BR

Hi @jonaspaulo ,

if you are running snap could you please run on the rack
tree /var/snap/maas/common/maas/boot-resources/current/
?

Sure here it goes:

 tree /var/snap/maas/common/maas/boot-resources/current/
/var/snap/maas/common/maas/boot-resources/current/
β”œβ”€β”€ bootaa64.efi -> bootloader/uefi/arm64/bootaa64.efi
β”œβ”€β”€ bootloader
β”‚   β”œβ”€β”€ open-firmware
β”‚   β”‚   └── ppc64el
β”‚   β”‚       └── bootppc64.bin
β”‚   β”œβ”€β”€ pxe
β”‚   β”‚   └── i386
β”‚   β”‚       β”œβ”€β”€ cat.c32
β”‚   β”‚       β”œβ”€β”€ chain.c32
β”‚   β”‚       β”œβ”€β”€ cmd.c32
β”‚   β”‚       β”œβ”€β”€ cmenu.c32
β”‚   β”‚       β”œβ”€β”€ config.c32
β”‚   β”‚       β”œβ”€β”€ cptime.c32
β”‚   β”‚       β”œβ”€β”€ cpu.c32
β”‚   β”‚       β”œβ”€β”€ cpuid.c32
β”‚   β”‚       β”œβ”€β”€ cpuidtest.c32
β”‚   β”‚       β”œβ”€β”€ debug.c32
β”‚   β”‚       β”œβ”€β”€ dhcp.c32
β”‚   β”‚       β”œβ”€β”€ dir.c32
β”‚   β”‚       β”œβ”€β”€ disk.c32
β”‚   β”‚       β”œβ”€β”€ dmi.c32
β”‚   β”‚       β”œβ”€β”€ dmitest.c32
β”‚   β”‚       β”œβ”€β”€ elf.c32
β”‚   β”‚       β”œβ”€β”€ ethersel.c32
β”‚   β”‚       β”œβ”€β”€ gfxboot.c32
β”‚   β”‚       β”œβ”€β”€ gpxecmd.c32
β”‚   β”‚       β”œβ”€β”€ hdt.c32
β”‚   β”‚       β”œβ”€β”€ hexdump.c32
β”‚   β”‚       β”œβ”€β”€ host.c32
β”‚   β”‚       β”œβ”€β”€ ifcpu64.c32
β”‚   β”‚       β”œβ”€β”€ ifcpu.c32
β”‚   β”‚       β”œβ”€β”€ ifmemdsk.c32
β”‚   β”‚       β”œβ”€β”€ ifplop.c32
β”‚   β”‚       β”œβ”€β”€ kbdmap.c32
β”‚   β”‚       β”œβ”€β”€ kontron_wdt.c32
β”‚   β”‚       β”œβ”€β”€ ldlinux.c32
β”‚   β”‚       β”œβ”€β”€ lfs.c32
β”‚   β”‚       β”œβ”€β”€ libcom32.c32
β”‚   β”‚       β”œβ”€β”€ libgpl.c32
β”‚   β”‚       β”œβ”€β”€ liblua.c32
β”‚   β”‚       β”œβ”€β”€ libmenu.c32
β”‚   β”‚       β”œβ”€β”€ libutil.c32
β”‚   β”‚       β”œβ”€β”€ linux.c32
β”‚   β”‚       β”œβ”€β”€ lpxelinux.0
β”‚   β”‚       β”œβ”€β”€ ls.c32
β”‚   β”‚       β”œβ”€β”€ lua.c32
β”‚   β”‚       β”œβ”€β”€ mboot.c32
β”‚   β”‚       β”œβ”€β”€ meminfo.c32
β”‚   β”‚       β”œβ”€β”€ menu.c32
β”‚   β”‚       β”œβ”€β”€ pci.c32
β”‚   β”‚       β”œβ”€β”€ pcitest.c32
β”‚   β”‚       β”œβ”€β”€ pmload.c32
β”‚   β”‚       β”œβ”€β”€ poweroff.c32
β”‚   β”‚       β”œβ”€β”€ prdhcp.c32
β”‚   β”‚       β”œβ”€β”€ pwd.c32
β”‚   β”‚       β”œβ”€β”€ pxechn.c32
β”‚   β”‚       β”œβ”€β”€ pxelinux.0
β”‚   β”‚       β”œβ”€β”€ reboot.c32
β”‚   β”‚       β”œβ”€β”€ rosh.c32
β”‚   β”‚       β”œβ”€β”€ sanboot.c32
β”‚   β”‚       β”œβ”€β”€ sdi.c32
β”‚   β”‚       β”œβ”€β”€ sysdump.c32
β”‚   β”‚       β”œβ”€β”€ syslinux.c32
β”‚   β”‚       β”œβ”€β”€ vesa.c32
β”‚   β”‚       β”œβ”€β”€ vesainfo.c32
β”‚   β”‚       β”œβ”€β”€ vesamenu.c32
β”‚   β”‚       β”œβ”€β”€ vpdtest.c32
β”‚   β”‚       β”œβ”€β”€ whichsys.c32
β”‚   β”‚       └── zzjson.c32
β”‚   └── uefi
β”‚       β”œβ”€β”€ amd64
β”‚       β”‚   β”œβ”€β”€ bootx64.efi
β”‚       β”‚   └── grubx64.efi
β”‚       └── arm64
β”‚           β”œβ”€β”€ bootaa64.efi
β”‚           └── grubaa64.efi
β”œβ”€β”€ bootppc64.bin -> bootloader/open-firmware/ppc64el/bootppc64.bin
β”œβ”€β”€ bootx64.efi -> bootloader/uefi/amd64/bootx64.efi
β”œβ”€β”€ chain.c32 -> bootloader/pxe/i386/chain.c32
β”œβ”€β”€ custom
β”‚   └── amd64
β”‚       └── generic
β”‚           β”œβ”€β”€ debian-12
β”‚           β”‚   └── uploaded
β”‚           β”‚       └── root-tgz
β”‚           β”œβ”€β”€ ol-8.8
β”‚           β”‚   └── uploaded
β”‚           β”‚       └── root-tgz
β”‚           └── ol-9.2
β”‚               └── uploaded
β”‚                   └── root-tgz
β”œβ”€β”€ esxi
β”‚   └── amd64
β”‚       └── generic
β”‚           └── 7.0
β”‚               └── uploaded
β”‚                   └── root-dd.gz
β”œβ”€β”€ grub
β”‚   └── grub.cfg
β”œβ”€β”€ grubaa64.efi -> bootloader/uefi/arm64/grubaa64.efi
β”œβ”€β”€ grubx64.efi -> bootloader/uefi/amd64/grubx64.efi
β”œβ”€β”€ ifcpu64.c32 -> bootloader/pxe/i386/ifcpu64.c32
β”œβ”€β”€ ipxe.cfg
β”œβ”€β”€ ldlinux.c32 -> bootloader/pxe/i386/ldlinux.c32
β”œβ”€β”€ libcom32.c32 -> bootloader/pxe/i386/libcom32.c32
β”œβ”€β”€ libutil.c32 -> bootloader/pxe/i386/libutil.c32
β”œβ”€β”€ lpxelinux.0 -> bootloader/pxe/i386/lpxelinux.0
β”œβ”€β”€ maas.meta
β”œβ”€β”€ pxelinux.0 -> lpxelinux.0
β”œβ”€β”€ syslinux -> bootloader/pxe/i386
└── ubuntu
    └── amd64
        β”œβ”€β”€ ga-20.04
        β”‚   └── focal
        β”‚       └── stable
        β”‚           β”œβ”€β”€ boot-initrd
        β”‚           β”œβ”€β”€ boot-kernel
        β”‚           └── squashfs
        β”œβ”€β”€ ga-20.04-lowlatency
        β”‚   └── focal
        β”‚       └── stable
        β”‚           β”œβ”€β”€ boot-initrd
        β”‚           β”œβ”€β”€ boot-kernel
        β”‚           └── squashfs
        β”œβ”€β”€ ga-22.04
        β”‚   └── jammy
        β”‚       └── stable
        β”‚           β”œβ”€β”€ boot-initrd
        β”‚           β”œβ”€β”€ boot-kernel
        β”‚           └── squashfs
        β”œβ”€β”€ ga-22.04-lowlatency
        β”‚   └── jammy
        β”‚       └── stable
        β”‚           β”œβ”€β”€ boot-initrd
        β”‚           β”œβ”€β”€ boot-kernel
        β”‚           └── squashfs
        β”œβ”€β”€ generic
        β”‚   β”œβ”€β”€ focal
        β”‚   β”‚   └── stable
        β”‚   β”‚       β”œβ”€β”€ boot-initrd
        β”‚   β”‚       β”œβ”€β”€ boot-kernel
        β”‚   β”‚       └── squashfs
        β”‚   └── jammy
        β”‚       └── stable
        β”‚           β”œβ”€β”€ boot-initrd
        β”‚           β”œβ”€β”€ boot-kernel
        β”‚           └── squashfs
        β”œβ”€β”€ hwe-20.04
        β”‚   └── focal
        β”‚       └── stable
        β”‚           β”œβ”€β”€ boot-initrd
        β”‚           β”œβ”€β”€ boot-kernel
        β”‚           └── squashfs
        β”œβ”€β”€ hwe-20.04-edge
        β”‚   └── focal
        β”‚       └── stable
        β”‚           β”œβ”€β”€ boot-initrd
        β”‚           β”œβ”€β”€ boot-kernel
        β”‚           └── squashfs
        β”œβ”€β”€ hwe-20.04-lowlatency
        β”‚   └── focal
        β”‚       └── stable
        β”‚           β”œβ”€β”€ boot-initrd
        β”‚           β”œβ”€β”€ boot-kernel
        β”‚           └── squashfs
        β”œβ”€β”€ hwe-20.04-lowlatency-edge
        β”‚   └── focal
        β”‚       └── stable
        β”‚           β”œβ”€β”€ boot-initrd
        β”‚           β”œβ”€β”€ boot-kernel
        β”‚           └── squashfs
        β”œβ”€β”€ hwe-22.04
        β”‚   └── jammy
        β”‚       └── stable
        β”‚           β”œβ”€β”€ boot-initrd
        β”‚           β”œβ”€β”€ boot-kernel
        β”‚           └── squashfs
        β”œβ”€β”€ hwe-22.04-edge
        β”‚   └── jammy
        β”‚       └── stable
        β”‚           β”œβ”€β”€ boot-initrd
        β”‚           β”œβ”€β”€ boot-kernel
        β”‚           └── squashfs
        β”œβ”€β”€ hwe-22.04-lowlatency
        β”‚   └── jammy
        β”‚       └── stable
        β”‚           β”œβ”€β”€ boot-initrd
        β”‚           β”œβ”€β”€ boot-kernel
        β”‚           └── squashfs
        └── hwe-22.04-lowlatency-edge
            └── jammy
                └── stable
                    β”œβ”€β”€ boot-initrd
                    β”œβ”€β”€ boot-kernel
                    └── squashfs

67 directories, 128 files

uhm this is definitely wrong because the machine should ask for

/images/ubuntu/amd64/ga-20.04/focal/stable/boot-kernel

Could you please upload the full logs of the rackd?

uhm never mind I have reproduced it locally.

Could you please open a bug on LP?

Done: Bug #2046557 β€œDebian Image not being deployed” : Bugs : maas-images
Thanks
BR

Just an update with the latest git commit (369f4bc) of GitHub - canonical/packer-maas: Packer templates to create MAAS deployable images and MaaS 3.5.1 at least Debian 12 works on my setup.

BR

1 Like