{"builders": [{"type": "vmware-vmx","source_path": "path/to/UbuntuPackerTest.vmx","vm_name": "packerTest","ssh_username": "packeradmin","ssh_password": "password","ssh_timeout": "10m","shutdown_command": "shutdown -P now",}],"provisioners": [{"type": "shell","execute_command": "touch Hi.txt","scripts": ["script.sh"]}]}
>packer build ubuntu.json
vmware-vmx output will be in this color.
==> vmware-vmx: Cloning source VM...
==> vmware-vmx: Starting virtual machine...
==> vmware-vmx: Waiting 10s for boot...
==> vmware-vmx: Connecting to VM via VNC
==> vmware-vmx: Typing the boot command over VNC...
==> vmware-vmx: Waiting for SSH to become available...
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/369c3df6-b653-4056-8223-e655ab35b520%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Lookup up IP information...DHCP leases path: C:/ProgramData/VMware/vmnetdhcp.leasesIP lookup failed: IP not found for MAC in DHCP leases at C:/ProgramData/VMware/vmnetdhcp.leases[DEBUG] Error getting SSH address: IP lookup failed: IP not found for MAC in DHCP leases at C:/ProgramData/VMware/vmnetdhcp.leases]==> vmware-vmx: Timeout waiting for SSH.Executing: C:/Program Files (x86)/VMware/VMware Workstation/vmrun.exe [-T ws list][DEBUG] SSH wait cancelled. Exiting loop.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/505dacff-afe2-46b8-8eb1-c0fa88b16b52%40googlegroups.com.
I'm not sure how it gets an IP address yet, I'll have to figure that out later. RIght now, for Putty, I find the IP address by logging into the VM from workstation and running ifconfig.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/6a96a672-36c1-4c4e-9dd6-414c0cbfd752%40googlegroups.com.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/3371deca-2d7b-40ea-bd80-8335a0ca53d3%40googlegroups.com.
No it doesn't. But it uses the mac address of the NIC to look it up in its internal dhcp server, so if you are not using dhcp you have to specify the IP address in ssh_host.(I think Hyperv is the only one that requires installing guest tools)// Rickard
On Jul 18, 2017 07:39, "Stuart Luscombe" <stuart....@gmail.com> wrote:
Similar to the issue I had with Hyper-V, do VMWare-based VMs require the guest tools to be installed for Packer to communicate?--
On Monday, 17 July 2017 19:46:06 UTC+1, kryptoof...@gmail.com wrote:Here you go. ThanksLookup up IP information...DHCP leases path: C:/ProgramData/VMware/vmnetdhcp.leasesIP lookup failed: IP not found for MAC in DHCP leases at C:/ProgramData/VMware/vmnetdhcp.leases[DEBUG] Error getting SSH address: IP lookup failed: IP not found for MAC in DHCP leases at C:/ProgramData/VMware/vmnetdhcp.leases]==> vmware-vmx: Timeout waiting for SSH.Executing: C:/Program Files (x86)/VMware/VMware Workstation/vmrun.exe [-T ws list][DEBUG] SSH wait cancelled. Exiting loop.
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.