Packer retrieve a wrong IP address so Ubuntu 24.04.1 LTS can not connect with SSH. #979
Code of Conduct
Project Versiondevelop VMware vSphere7.0.3 HashiCorp Packer1.11.2 HashiCorp Packer Plugin for VMware vSphere1.4.2 Guest Operating SystemUbuntu Server 24.04.1 LTS Environment DetailsMy client side is; Descriptionstatic IP address settings applied in network.pkrvars.hcl Expected BehaviorIn network.pkrvars.hcl file... Packer must get the correct IP 192.168.12.171 and connect with SSH to the server. Actual BehaviorSteps to ReproduceEvery run of build.sh is resulted the same. Log Fragments and Filesnetwork.pkrvars.hcl file
ScreenshotsVMware gives the correct IP 192.168.12.171 PACKER_LOG=1 log output is like Additional ContextNo response |
Replies: 3 comments 1 reply
|
Converted to a discussion under help until verified as a bug. |
|
the same for me ... Packer v1.11.2, packer-plugin-vsphere v1.4.2 any ideas what the cause could be? |
|
Sorry for the delay. This will occur if DHCP is enabled on the destination network and you trying to use a static. If the network does not have DHCP, then it works as intended. To address this scenario, set the For example: common_ip_settle_timeout = "3m"This will allow the IP address to settle into the static IP before attempting a connection to continue the build. Ryan |


Sorry for the delay.
This will occur if DHCP is enabled on the destination network and you trying to use a static. If the network does not have DHCP, then it works as intended.
To address this scenario, set the
common_ip_settle_timeoutto a higher value to delay the connection to SSH until the IP is locked in as provided to clout-init during the build.For example:
This will allow the IP address to settle into the static IP before attempting a connection to continue the build.
Ryan