I work in a fairly constrained environment so troubleshooting is a bit of a pain. Our configuration:
A GitLab runner virtual machine configured with packer installed.
Building a RHEL golden image via vsphere
Currently the build is working properly - though the Waiting for IP takes what I believe to be a long time relatively speaking 8-11 minutes.
I want to test this with either ServerSpec or Testinfra using the shell-local provisioner so that I can keep my created images ‘clean’ but every time I attempt to use the shell-local via the gitlab runner I am getting the following:
Usually that means the script that was uploaded /tmp/packer-shellxxxxxxxxx doesn’t have execute permission set … Example: it could be owned by ‘root’ with a 774 permission but you’re trying to run it as the ‘packer’ user … which means no execute permission allowed for non-root user.
Try add a “ls -al /tmp” prior to that to see what the file’s permissions and owner/group are.