Anyone here has been able to successfully build CentOS 9 Stream for Maas using packer? Below is the error that I am getting. I am unsure if this is completely unsupported at the moment or am I doing something incorrect with the build.
2023/05/08 21:00:37 [INFO] (telemetry) Starting post-processor shell-local
==> qemu.centos9-stream: Running post-processor: (type shell-local)
2023/05/08 21:00:37 packer-post-processor-shell-local plugin: [INFO] (shell-local): Prepending inline script with #!/bin/bash -e
==> qemu.centos9-stream (shell-local): Running local shell script: /tmp/packer-shell726199497
2023/05/08 21:00:37 packer-post-processor-shell-local plugin: [INFO] (shell-local): starting local command: /bin/sh -c PACKER_BUILDER_TYPE=‘qemu’ PACKER_BUILD_NAME=‘centos9-stream’ PACKER_HTTP_ADDR=‘10.0.2.2:8814’ PACKER_HTTP_IP=‘10.0.2.2’ PACKER_HTTP_PORT=‘8814’ /tmp/packer-shell726199497
2023/05/08 21:00:37 packer-post-processor-shell-local plugin: [INFO] (shell-local communicator): Executing local shell command [/bin/sh -c PACKER_BUILDER_TYPE=‘qemu’ PACKER_BUILD_NAME=‘centos9-stream’ PACKER_HTTP_ADDR=‘10.0.2.2:8814’ PACKER_HTTP_IP=‘10.0.2.2’ PACKER_HTTP_PORT=‘8814’ /tmp/packer-shell726199497]
qemu.centos9-stream (shell-local): Loading nbd…
qemu.centos9-stream (shell-local): Using /dev/nbd13
qemu.centos9-stream (shell-local): Binding image to /dev/nbd13…
qemu.centos9-stream (shell-local): /dev/nbd13 disconnected
qemu.centos9-stream (shell-local): Waiting for partitions to be created…
qemu.centos9-stream (shell-local): Disk /dev/nbd13: 4 GiB, 4294967296 bytes, 8388608 sectors
qemu.centos9-stream (shell-local): Units: sectors of 1 * 512 = 512 bytes
qemu.centos9-stream (shell-local): Sector size (logical/physical): 512 bytes / 512 bytes
qemu.centos9-stream (shell-local): I/O size (minimum/optimal): 512 bytes / 512 bytes
qemu.centos9-stream (shell-local): Mounting root partition…
==> qemu.centos9-stream (shell-local): mount: /tmp/packer-maas-7UEm: special device /dev/nbd13p1 does not exist.
==> qemu.centos9-stream (shell-local): umount: /tmp/packer-maas-7UEm: not mounted.
2023/05/08 21:01:37 packer-post-processor-shell-local plugin: error: Script exited with non-zero exit status: 32. Allowed exit codes are: [0]
2023/05/08 21:01:37 [INFO] (telemetry) ending shell-local
2023/05/08 21:01:37 Deleting original artifact for build ‘qemu.centos9-stream’
- Post-processor failed: Script exited with non-zero exit status: 32. Allowed exit codes are: [0]
Build ‘qemu.centos9-stream’ errored after 6 minutes 3 seconds: 1 error(s) occurred:
==> Wait completed after 6 minutes 3 seconds
2023/05/08 21:01:37 machine readable: error-count []string{“1”}
==> Some builds didn’t complete successfully and had errors:
2023/05/08 21:01:37 machine readable: qemu.centos9-stream,error []string{“1 error(s) occurred:\n\n* Post-processor failed: Script exited with non-zero exit status: 32. Allowed exit codes are: [0]”}
- Post-processor failed: Script exited with non-zero exit status: 32. Allowed exit codes are: [0]
==> Wait completed after 6 minutes 3 seconds
- Post-processor failed: Script exited with non-zero exit status: 32. Allowed exit codes are: [0]
==> Builds finished but no artifacts were created.
2023/05/08 21:01:37 [INFO] (telemetry) Finalizing.
==> Some builds didn’t complete successfully and had errors:
–> qemu.centos9-stream: 1 error(s) occurred:
- Post-processor failed: Script exited with non-zero exit status: 32. Allowed exit codes are: [0]
==> Builds finished but no artifacts were created.
2023/05/08 21:01:37 waiting for all plugin processes to complete…
2023/05/08 21:01:37 /root/.config/packer/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.9_x5.0_linux_amd64: plugin process exited
2023/05/08 21:01:37 /usr/bin/packer: plugin process exited
make: *** [Makefile:8: centos9-stream.tar.gz] Error 1