While deploying VCSA appliances, if you get “First script execution error” as shown in the screenshot below, what could be the issue? how do you resolve?
Its’ always best to analyze the logs, you can find the path in the same error screenshot to get the log file.
After you navigate to the respective log file path and open the log file, try searing “First boot error” in the same log file.
Immediately above the error line, you will find information like “If the supplied system name is a FQDN, then make sure the DNS forward lookup results in at least one valid IP address in the system”
So, as per the information fetched from the log, it clearly indicates that the issue is because of Fully qualified domain name specified while installation the VCSA appliance.
To conclude this cause, this particular issue occurs when FQDN is not resolving during first boot of an appliance.
To resolve this,
-> you have to create DNS host record of VCSA appliance FQDN name.
-> You have to verify the host record created is working fine or not using following steps
- Open the console to the vCenter Server Appliance and press CTRL+ALT+F3 and log in with root credentials.
- To enable shell, run this command.
shell.set –enabled true
- Enter shell with this command:
- Ping the DNS servers to confirm communication with this command:
- Use nslookup to make sure the vCenter Server Appliance can be resolved:
- Use the nslookup command to resolve the shortname.
Once all DNS/FQDN related issues are resolved and all looks good, then redeploy the VCSA appliance.
Its always recommended to create DNS host records, test those records, before you deploy VCSA appliance to avoid issues.