So I am learning about the way of the packer and this is my first test template:
{
"builders": [
{
"type": "vmware-iso",
"guest_os_type" : "ubuntu64",
"iso_url": "
http://old-releases.ubuntu.com/releases/precise/ubuntu-12.04.2-server-amd64.iso",
"iso_checksum": "af5f788aee1b32c4b2634734309cc9e9",
"iso_checksum_type": "md5",
"disk_size": "10240",
"disk_type_id": "thin",
"vmdk_name": "test",
"vmx_data" : {
"cpuid.coresPerSocket": "1",
"numvcpus": "1",
"ethernet0.networkName": "LAN",
"memsize": "1024"
},
"ssh_username" : "bubba",
"ssh_password" : "test123",
"ssh_wait_timeout": "30s",
"remote_type": "esx5",
"remote_host": "
exsi.domain.com",
"remote_datastore": "datastore1",
"remote_username": "admin",
"remote_password": "password",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz noapic ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname={{ .Name }} ",
"fb=false debconf/frontend=noninteractive ",
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA console-setup/ask_detect=false ",
"initrd=/install/initrd.gz -- <enter>"
],
"boot_wait": "20s",
"shutdown_command": "shutdown -P now"
}
]
}
When I go build it, I get this message about not being able to connect to it using vnc:
raub@desktop:~/dev/packer$ packer build test.json
vmware-iso output will be in this color.
==> vmware-iso: Downloading or copying ISO
vmware-iso: Downloading or copying:
http://old-releases.ubuntu.com/releases/precise/ubuntu-12.04.2-server-amd64.iso==> vmware-iso: Uploading ISO to remote machine...
==> vmware-iso: Creating virtual machine disk
==> vmware-iso: Building and writing VMX file
==> vmware-iso: Registering remote VM...
==> vmware-iso: Starting virtual machine...
==> vmware-iso: Waiting 20s for boot...
==> vmware-iso: Connecting to VM via VNC
==> vmware-iso: Error connecting to VNC: dial tcp
10.0.0.20:5988: connection refused
==> vmware-iso: Unregistering virtual machine...
==> vmware-iso: Deleting output directory...
Build 'vmware-iso' errored: Error connecting to VNC: dial tcp
10.0.0.20:5988: connection refused
==> Some builds didn't complete successfully and had errors:
--> vmware-iso: Error connecting to VNC: dial tcp
10.0.0.20:5988: connection refused
==> Builds finished but no artifacts were created.
raub@desktop:~/dev/packer$
Is this an issue with my config or something I did not do in the esxi box?