If you attach the output of running PACKER_LOG=1 packer build template.json
there might be some hints on what's going wrong.

On Jul 17, 2017 19:26, <[email protected]> wrote:

> Hi,
>
> I am on a windows 7 laptop, and I am trying to build a Ubuntu 16.04 image
> using the vmware-vmx builder. I have VMware workstation installed on my
> laptop. Whenever I run packer build command, it copies the vmx and spins up
> a VM, but it fails to build the image because it times out waiting for ssh
> to be available. What's really weird is that while its waiting for ssh to
> be available, I can use Putty to ssh into the VM. Can someone please help?
> I have openssh installed on the Ubuntu VM, and I configured to run at
> startup using 'sudo systemctl enable ssh
> I have configured the VM for a bridged network connection. Below is my
> ubuntu.json file and command output
>
> {
>>
>> "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 [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/369c3df6-b653-4056-8223-e655ab35b520%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/369c3df6-b653-4056-8223-e655ab35b520%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt8-P8DdQZabZhqLwpNwHLORoXd%2Bj0yfERuNwx82LvV09g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to