Kickstart file hangs when called from Packer

I’m probably going to post this elsewhere too, but I have a weird issue where my kickstart file works fine if I boot from an iso and plug in the inst.ks manually, but when I call is from the packer-plugin-vsphere builder, the install process hangs.

The last message in the install log is:

DBG payload.manager: Updating payload thread state: DOWNLOADING_GROUP_METADATA

After that, the install hangs. This is on RHEL 9.7, by the way. Or RHEL 9.5.

I’ve dropped in to the shell before it hangs and I can ping the mirror and wget files fine.

Any suggestions?

It seems to be the appstream repo. If I comment it out in the ks file it works fine. Nevertheless, if I build a VM from the template, it will pull updates from it without any issues.

Stupidly, this was one of those things hidden in plain sight. The issue was simply that the VM I was building had 1GB RAM and needed 2GB. The fact that it always worked before with 1GB I suppose maybe was just a fluke.