Building rhel7 image, qemu fails to shutdown after “Performing post-installation setup”. This is usually where you pres a key to reboot, but I see that “poweroff” is in the kickstart file. I also tried adding “shutdown_command”: “echo ‘packer’ | sudo -S shutdown -P now” in the rhel7.json with no luck.
Performing post-installation setup tasksplugin: Qemu stdout: ==> qemu: Failed to shutdown 2021/12/07 23:44:07 packer-builder-qemu plugin: Unable to load communicator config from state to populate provisionHookData ==> qemu: Provisioning step had errors: Running the cleanup provisioner, if present... ==> qemu: Deleting output directory... 2021/12/07 23:44:07 packer-builder-qemu plugin: failed to unlock port lockfile: close tcp 127.0.0.1:5952: use of closed network connection
Ubuntu 20.04.3 LTS
Packer is version 1.7.8
ISO is RHEL7.9
Any help is appreciated