This all seemed to work and the image was added to the server successfully.
One note I should probably add is that I first did this on the root user without success, when importing the image it told me it couldn’t find the image or it got a permission denied error. I solved this by creating a new user on the server and importing the image that way in the home directory of this user. Not sure if this could be related to the issue I’m having right now.
Edit: I forgot to mention I also added the custom preseed inside /var/snap/maas/current/preseeds/curtin_userdata_custom as described inside the packer maas repo and I see these errors inside the logs for the machine:
Marking node failed - Missing boot image custom/amd64/ga-24.04/debian-12.
Marking node failed - Missing kernel image custom/amd64/ga-24.04/debian-12.