Hey Everyone,
I'm running packer on Linux Mint 13, using Workstation 10, building locally with vmware-iso then pushing up to ESX via the vsphere post processor.
I'm getting these errors during the post processing:
==> vmware-iso: Running post-processor: vsphere
2014/05/20 08:47:19 ui: ==> vmware-iso: Running post-processor: vsphere
vmware-iso (vsphere): Uploading output-vmware-iso/packer-vmware-iso.vmx to vSphere
2014/05/20 08:47:19 ui: vmware-iso (vsphere): Uploading output-vmware-iso/packer-vmware-iso.vmx to vSphere
2014/05/20 08:47:24 /usr/local/packer/packer-command-build: 2014/05/20 08:47:24 Deleting original artifact for build 'vmware-iso'
Build 'vmware-iso' errored: 1 error(s) occurred:
* Post-processor failed: Failed: exit status 1
Stdout: Opening VMX source: output-vmware-iso/packer-vmware-iso.vmx
Completed with errors
2014/05/20 08:47:24 ui error: Build 'vmware-iso' errored: 1 error(s) occurred:
* Post-processor failed: Failed: exit status 1
Stdout: Opening VMX source: output-vmware-iso/packer-vmware-iso.vmx
Completed with errors
2014/05/20 08:47:24 /usr/local/packer/packer-command-build: 2014/05/20 08:47:24 Builds completed. Waiting on interrupt barrier...
2014/05/20 08:47:25 machine readable: error-count []string{"1"}
==> Some builds didn't complete successfully and had errors:
2014/05/20 08:47:25 ui error:
==> Some builds didn't complete successfully and had errors:
2014/05/20 08:47:25 machine readable: vmware-iso,error []string{"1 error(s) occurred:\n\n* Post-processor failed: Failed: exit status 1\nStdout: Opening VMX source: output-vmware-iso/packer-vmware-iso.vmx\nError: Locator does not refer to an object: vi://ro...@192.168.48.71:443ha-datacenter/host/vm-host2-h./Resources/
192.168.48.36/host/DTS2/Resources/\nCompleted with errors\n"}
--> vmware-iso: 1 error(s) occurred:
192.168.48.36 is the name of the Datacenter (I know, pretty strange).
Here is my configuration in the json file:
{
"builders": [
{
"type": "vmware-iso",
"iso_url": "/home/user/Documents/en_windows_server_2012_r2_x64_dvd_2707946.iso",
"iso_checksum_type": "md5",
"iso_checksum": "838fe19bd9af21801d4f919b48372699",
"headless": true,
"boot_wait": "2m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "2h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"guest_os_type": "windows8srv-64",
"disk_size": 40000,
"vnc_port_min": 5900,
"vnc_port_max": 5980,
"floppy_files": [
"./scripts/Autounattend.xml",
"./scripts/win-updates.ps1",
"./scripts/openssh.ps1"
],
"vmx_data": {
"RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900",
"memsize": "2048",
"numvcpus": "2",
"scsi0.virtualDev": "lsisas1068"
}
}
],
"provisioners": [
{
"type": "shell",
"remote_path": "/tmp/script.bat",
"execute_command": "{{.Vars}} cmd /c C:/Windows/Temp/script.bat",
"scripts": [
"./scripts/vm-guest-tools.bat",
"./scripts/chef.bat",
"./scripts/vagrant-ssh.bat"
]
},
{
"type": "shell", "inline": ["rm -rf /tmp/*"]
}
],
"post-processors": [
{
"type": "vsphere",
"host": "192.168.48.71",
"username": "root",
"password": "password",
"datacenter": "192.168.48.36",
"cluster": "DTS2",
"datastore": "Primary Datastore",
"vm_folder": "/",
"vm_name": "packer-dbtest",
"vm_network": "Development_Server",
"resource_pool": " ",
"disk_mode": "thin",
"insecure": "true"
}
]
}
I've been searching on the "Locator does not refer to an object" error for a while and I cannot find anything other than people on VMware communities saying that syntax is wrong for ovftool and so forth. If that is the case there is nothing I could do since packer is initiating the syntax.
Any ideas of what may causing this? Could something security wise on the host be blocking this step from proceeding correctly? I am at a loss.
Thanks!