Vsphere-clone Incorrect IP Address
joshuajmlee opened this issue · 0 comments
I'm using vsphere-clone to clone an existing VM that is getting it's IP address from DHCP. The vsphere-clone successfully clones and powers on the VM, but when it gets the IP in the console window it shows that it pulls an odd IP and I can't figure out where that IP is coming from. The network that the VM is on is providing DHCP addresses to any VM that I manually build, but doesn't seem to work for packer cloning VMs.
I'm wondering if that is contributing to another issue that I'm having. SSH times out waiting to communicate and I've already verified that SSH is enabled to start at boot on my VM that is being cloned (RHEL 7.7 VM). See below for the console output. Any help is greatly appreciated. Right now, I'm focusing on trying to figure out where that random, inaccurate IP is coming from. Then I want to figure out why SSH is timing out.
vsphere-clone: output will be in this color.
==> vsphere-clone: Cloning VM...
==> vsphere-clone: Customizing hardware...
==> vsphere-clone: Power on VM...
==> vsphere-clone: Waiting for IP...
==> vsphere-clone: IP address: 192.168.122.1
==> vsphere-clone: Using ssh communicator to connect: 192.168.122.1
==> vsphere-clone: Waiting for SSH to become available...
==> vsphere-clone: Timeout waiting for SSH.
==> vsphere-clone: Power off VM...
==> vsphere-clone: Destroying VM...
Build 'vsphere-clone' errored: Timeout waiting for SSH.
==> Some builds didn't complete successfully and had errors:
--> vsphere-clone: Timeout waiting for SSH.
==> Builds finished but no artifacts were created.