[Ubuntu 22.04][OVA]Packer can't detect the IP change after the boot and gets stuck
DimpleRajaVamsi opened this issue · 0 comments
What steps did you take and what happened:
Trying to build Ubuntu 22.04 OVA on a vSphere environment and Packer get's stuck in the SSH configuration step.
==> vsphere: Typing boot command...
==> vsphere: Waiting for IP...
==> vsphere: IP address: 10.215.18.203
==> vsphere: Using SSH communicator to connect: 10.215.18.203
==> vsphere: Waiting for SSH to become available...
This is because the Packer Ubuntu VM IP changed after the boot and Packer won't detect the IP change and get stuck.
I looked at the upstream packer vsphere-iso
plugin and found hashicorp/packer-plugin-vsphere#127 for which there is a workaround provided by changing the Autoinstall configuration (Need to check if this works)
What did you expect to happen:
Ubuntu OVA should be successful
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
Project (Image Builder for Cluster API:
Additional info for Image Builder for Cluster API related issues:
- OS (e.g. from
/etc/os-release
, orcmd /c ver
): Ubuntu 22.04 - Packer Version: 1.8.3
- Packer Provider: vsphere-iso
- Ansible Version: 2.11.5
- Cluster-api version (if using):
- Kubernetes version: (use
kubectl version
):
/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]