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.
For more options, visit https://groups.google.com/d/optout.