Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Vsphere-clone Incorrect IP Address #318

Open
joshuajmlee opened this issue Jun 3, 2020 · 0 comments
Open

Vsphere-clone Incorrect IP Address #318

joshuajmlee opened this issue Jun 3, 2020 · 0 comments

Comments

@joshuajmlee
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant