vmware-iso: Waiting for SSH to become available hangs

808 views
Skip to first unread message

Lynn Ben Barouch

unread,
Jul 29, 2019, 4:59:09 AM7/29/19
to Packer
Hey!
I am using the vmware-iso builder, the VM gets created successfully and the os installation is successful as well. 
Also, I can successfully connect via SSH to the newly created VM (using the same credentials given to packer). However, I am getting SSH timeouts.
All I am seeing in the packer log is:

2019/07/29 08:50:33 packer: 2019/07/29 08:50:33 [DEBUG] Opening new ssh session
packer: 2019/07/29 08:50:33 [DEBUG] starting remote command: esxcli --formatter csv network vm list
2019/07/29 08:50:34 packer: 2019/07/29 08:50:34 [DEBUG] Error getting SSH address: EOF

: When running this command on the esx

[packer@ESX:~] esxcli --formatter csv network vm list
Name,Networks,NumPorts,WorldID,
centos7-2019-07-29_08-18-22,"Network,",1,3179774,
centos7-2019-07-29_07-53-41,"Network,",1,3175792,

.Please find attached my builder config

Screen Shot 2019-07-29 at 11.46.59.png

Frédéric Cuza

unread,
Jul 29, 2019, 5:23:45 AM7/29/19
to packe...@googlegroups.com
Hi Lynn,

Are you sure that the network is correctly set on your VM ? I guess it is a Centos.
Here you can find a kickstart that we use and that is working with the associtate json.

Regards,

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/83da37f8-80d2-4997-b933-af3da4ae3503%40googlegroups.com.
centos7.json
ks.cfg

Rickard von Essen

unread,
Jul 29, 2019, 8:41:36 AM7/29/19
to packe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages