Added ssh_timeout of 10000 seconds (166.6667 minutes). This will keep packer from destroying the VM before it's even done with the setup process. The time can be adjusted but this helped me in the setup process.
Updated line 55 to use the variable in the variables.json
new option is pause_before connecting as previous is deprecated within packer https://packer.io/docs/templates/communicator.html#ssh_timeout Also time is set to 166m by default so have flipped that to 10m to make it work :-)