Not able to create Rhel-8 Image its getting timed out after IP allocation
abhisheklearnsjava opened this issue · 2 comments
Code of Conduct
- I have read and agree to the project's Code of Conduct.
Project Version
latest
VMware vSphere
8.0
HashiCorp Packer
1.10.0
HashiCorp Packer Plugin for VMware vSphere
1.2.5
Guest Operating System
RHEL8.8
Environment Details
No response
Description
When trying to build a RHEL 8.8 image on vsphere. It getting timed out with below logs. The script is able to provision a VM, silent boot is going through and IP allocation is also working fine with DHCP. But after that its not moving futher.
2024/03/25 10:36:08 -plugin-vsphere_v1.2.5_x5.0_linux_amd64 plugin: 2024/03/25 10:36:08 [INFO] Waiting 1s
2024/03/25 10:36:09 -plugin-vsphere_v1.2.5_x5.0_linux_amd64 plugin: 2024/03/25 10:36:09 Special code '' found, replacing with: CodeLeftControl
2024/03/25 10:36:09 -plugin-vsphere_v1.2.5_x5.0_linux_amd64 plugin: 2024/03/25 10:36:09 Sending char 'x', code CodeX, shift false
2024/03/25 10:36:09 -plugin-vsphere_v1.2.5_x5.0_linux_amd64 plugin: 2024/03/25 10:36:09 Special code '' found, replacing with: CodeLeftControl
2024/03/25 10:36:09 -plugin-vsphere_v1.2.5_x5.0_linux_amd64 plugin: 2024/03/25 10:36:09 [INFO] Waiting for IP, up to total timeout: 45m0s, settle timeout: 45m0s
==> vsphere-iso.linux-rhel: Waiting for IP...
2024/03/25 10:41:44 -plugin-vsphere_v1.2.5_x5.0_linux_amd64 plugin: 2024/03/25 10:41:44 VM IP acquired: 10.151.101.195
2024/03/25 10:41:44 -plugin-vsphere_v1.2.5_x5.0_linux_amd64 plugin: 2024/03/25 10:41:44 VM IP is still the same: 10.151.101.195
2024/03/25 10:42:14 -plugin-vsphere_v1.2.5_x5.0_linux_amd64 plugin: 2024/03/25 10:42:14 VM IP is still the same: 10.151.101.195
2024/03/25 10:42:44 -plugin-vsphere_v1.2.5_x5.0_linux_amd64 plugin: 2024/03/25 10:42:44 VM IP is still the same: 10.151.101.195
2024/03/25 10:43:14 -plugin-vsphere_v1.2.5_x5.0_linux_amd64 plugin: 2024/03/25 10:43:14 VM IP is still the same: 10.151.101.195
2024/03/25 10:43:44 -plugin-vsphere_v1.2.5_x5.0_linux_amd64 plugin: 2024/03/25 10:43:44 VM IP is still the same: 10.151.101.195
2024/03/25 10:44:14 -plugin-vsphere_v1.2.5_x5.0_linux_amd64 plugin: 2024/03/25 10:44:14 **VM IP is still the same: 10.151.101.195_VM IP is still the same: 10.151.101.195**
Expected Behavior
It should proceed further and create an image.
Actual Behavior
Its getting timed out and waiting for another IP.
Steps to Reproduce
Run packer build with main branch rhel 8.8. scripts.
Log Fragments and Files
No response
Screenshots
No response
Additional Context
No response
This issue got fixed after I change common_ap_settle_timeout to 5s. Earlier it was same as the common_ip_wait_timeout=45m.
This issue can be closed. Would appreciate if someone can explain logic behind it.
Thanks
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.