When I run PACKER_LOG=debug packer build server.json
I get the error:
2014/01/03 12:51:30 ui: ==> vmware-vmx: Cloning source VM...
2014/01/03 12:51:30 /usr/local/packer/packer-builder-vmware-vmx: 2014/01/03 12:51:30 Cloning from: ubuntu_12.04.3.vmwarevm/ubuntu_12.04.3.vmx
2014/01/03 12:51:30 /usr/local/packer/packer-builder-vmware-vmx: 2014/01/03 12:51:30 Cloning to: output-vmware-vmx/packer-vmware-vmx-1388782290.vmx
2014/01/03 12:51:30 /usr/local/packer/packer-builder-vmware-vmx: 2014/01/03 12:51:30 Executing: /Applications/VMware Fusion.app/Contents/Library/vmrun [-T fusion clone ubuntu_12.04.3.vmwarevm/ubuntu_12.04.3.vmx output-vmware-vmx/packer-vmware-vmx-1388782290.vmx full]
2014/01/03 12:51:30 /usr/local/packer/packer-builder-vmware-vmx: 2014/01/03 12:51:30 stdout: Error: One of the parameters was invalid
2014/01/03 12:51:30 /usr/local/packer/packer-builder-vmware-vmx: 2014/01/03 12:51:30 stderr:
==> vmware-vmx: Deleting output directory...
2014/01/03 12:51:30 ui: ==> vmware-vmx: Deleting output directory...
Build 'vmware-vmx' errored: VMware error:
2014/01/03 12:51:30 ui error: Build 'vmware-vmx' errored: VMware error:
2014/01/03 12:51:30 /usr/local/packer/packer-command-build: 2014/01/03 12:51:30 Builds completed. Waiting on interrupt barrier...
2014/01/03 12:51:30 machine readable: error-count []string{"1"}
==> Some builds didn't complete successfully and had errors:
2014/01/03 12:51:30 ui error:
==> Some builds didn't complete successfully and had errors:
2014/01/03 12:51:30 machine readable: vmware-vmx,error []string{"VMware error: "}
--> vmware-vmx: VMware error:
2014/01/03 12:51:30 ui error: --> vmware-vmx: VMware error:
==> Builds finished but no artifacts were created.
Running the command the failed by itself:
> /Applications/VMware Fusion.app/Contents/Library/vmrun [-T fusion clone ubuntu_12.04.3.vmwarevm/ubuntu_12.04.3.vmx output-vmware-vmx/packer-vmware-vmx-1388782290.vmx full]
-bash: /Applications/VMware: No such file or directory
Why is packer looking for /Applications/VMware
? Could it be a problem escaping the space in VMware Fusion.app
?
My template:
{
"variables": {},
"builders": [{
"type": "vmware-vmx",
"source_path": "ubuntu_12.04.3.vmwarevm/ubuntu_12.04.3.vmx",
"ssh_username": "<redacted>",
"ssh_password": "<redacted>",
"shutdown_command": "shutdown -P now"
}]
}
Packer validate:
> packer validate server.json
Template validated successfully.
Software versions:
- VMWare Fusion 6.0.2
- Packer v0.5.1
- OSX 10.9.1