# Packer vmware-vmx: SSH timeout

**URL:** <https://discuss.hashicorp.com/t/packer-vmware-vmx-ssh-timeout/10083>\
**Category:** Packer\
**Created:** [June 17, 2020, 1:54pm UTC](https://discuss.hashicorp.com/t/packer-vmware-vmx-ssh-timeout/10083 "2020-06-17T13:54:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krshnakp](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/krshnakp/32/8041_2.png) [@krshnakp](https://discuss.hashicorp.com/u/krshnakp)\
**Post date:** [June 17, 2020, 1:54pm UTC](https://discuss.hashicorp.com/t/packer-vmware-vmx-ssh-timeout/10083/1 "2020-06-17T13:54:38Z")

</div>

Hello all,

I have been having issues trying to get vmware-vmx working. I have tried a few options but then tried to use the basic script that is posted on the packer site. It states this this basic code works.

[https://www.packer.io/docs/builders/vmware/vmx](https://www.packer.io/docs/builders/vmware/vmx) (Basic Example)

The following is my code that i am trying to run

{

“builders”: [

{

“type”: “vmware-vmx”,

“source\_path”: “D:/Virtual Machines/CENT7/CENT7.vmx”,

“ssh\_username”: “root”,

“ssh\_password”: “Password”,

“shutdown\_command”: “shutdown -P now”

}

]

}

The clone VM comes up fine on VMware Workstation 15.6. It picks up VMnet8 as expected. IP address is assigned via DHCP. Packer waits for SSH connection. I can login to the clone VM manually.

The following is the messages i get when i run the code:

==\> vmware-vmx: Cloning source VM…

==\> vmware-vmx: Starting virtual machine…

==\> vmware-vmx: Waiting 10s for boot…

==\> vmware-vmx: Connecting to VM via VNC (127.0.0.1:5958)

==\> vmware-vmx: Typing the boot command over VNC…

==\> vmware-vmx: Using ssh communicator to connect: 192,168.10.131

==\> vmware-vmx: Waiting for SSH to become available…

==\> vmware-vmx: Timeout waiting for SSH.

==\> vmware-vmx: Stopping virtual machine…

==\> vmware-vmx: Deleting output directory…

Build ‘vmware-vmx’ errored: Timeout waiting for SSH.

==\> Some builds didn’t complete successfully and had errors:

–\> vmware-vmx: Timeout waiting for SSH.

It could be that I am missing something. I tried adding ssh\_host but that does not work as expected.

---

<div class="post-metadata">

**Author:** ![SwampDragons](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/swampdragons/32/1296_2.png) [@SwampDragons](https://discuss.hashicorp.com/u/SwampDragons)\
**Post date:** [June 23, 2020, 5:10pm UTC](https://discuss.hashicorp.com/t/packer-vmware-vmx-ssh-timeout/10083/2 "2020-06-23T17:10:57Z")

</div>

Try setting the environment variable PACKER\_LOG=1 to get more detailed logs. The only thing that jumps out at me looking at this is that there’s a comma in the IP address: `192,168.10.131` and I wonder if this is somehow throwing things off.

---

<div class="post-metadata">

**Author:** ![Fashaun](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/fashaun/32/18534_2.png) [@Fashaun](https://discuss.hashicorp.com/u/Fashaun)\
**Post date:** [February 6, 2022, 4:58pm UTC](https://discuss.hashicorp.com/t/packer-vmware-vmx-ssh-timeout/10083/3 "2022-02-06T16:58:36Z")

</div>

Hi,  
I also met the problem too,  
Whats the clone vm logic with the virtual network interface ip address?
