Thanks a bunch!
But, once again no luck what so ever :-/
I started out with a local build, then an upload to vCenter with
manual import and finally i wanted automation 100% and that's where i
stand today.
So here comes my JSON file. Its something that has been copied and pasted from various sources. I haven't found a good source on how to construct the JSON file.
Usernames, Password and some other private stuff has been changed. I am running the 0.5.2 version downloaded yesterday on a Macbook Pro 15" Retina with Fusion 6.0.2
{
"builders": [{
"type": "vmware-iso",
"iso_url": "http://192.168.198.1:8000/Build/ISO/CentOS-6.5-x86_64-bin-DVD1.iso",
"output_directory": "rhdev100",
"iso_checksum": "32c7695b97f7dcd1f59a77a71f64f2957dddf738",
"iso_checksum_type": "sha1",
"disk_size": "4096",
"disk_type_id": "thin",
"remote_host": "192.168.198.51",
"remote_datastore": "NFS_DATASTORE_01",
"remote_username": "root",
"remote_password": "root",
"remote_type": "esx5",
"ssh_username": "root",
"ssh_password": "root",
"ssh_port": 22,
"ssh_wait_timeout": "720s",
"shutdown_command": "shutdown -h now",
"boot_command": [
"<tab>",
"vmlinuz initrd=initrd.img ",
"ks=http://192.168.198.1:8000/Build/kickstart/rh.cfg <enter><wait>"
],
"boot_wait": "20s",
"vm_name": "rhdev100",
"vmx_data": {
"virtualHW.version": "9",
"ethernet0.networkName": "VM Network",
"ethernet0.present": "TRUE",
"ethernet0.virtualDev": "vmxnet3",
"memsize": "512",
"numvcpus": "1",
"cpuid.coresPerSocket": "1",
"scsi0:0.fileName": "disk.vmdk",
"scsi0:0.present": "TRUE",
"scsi0:0.redo": "",
"ide0:0.present": "FALSE"
}
}],
"post-processors": [{
"type": "vsphere",
"host": "192.168.198.50",
"username": "admin",
"password": "admin",
"datacenter": "MyDC",
"cluster": "Labo",
"resource_pool": " ",
"datastore": "NFS_DATASTORE_01",
"vm_folder": "/",
"vm_name": "rhdev100",
"vm_network": "VM Network",
"insecure" : "true"
}]
}
And the output from the build process:
2014/02/26 19:14:03 /Users/TheDude/packer/packer-builder-vmware-iso: 2014/02/26 19:14:03 [DEBUG] Background SSH connection checker is testing
2014/02/26 19:14:03 /Users/TheDude/packer/packer-builder-vmware-iso: 2014/02/26 19:14:03 remote command exited with '0': rm -rf /vmfs/volumes/NFS_DATASTORE_01/rhdev100
Build 'vmware-iso' errored: 1 error(s) occurred:
* Post-processor failed: Unknown artifact type, can't build box: mitchellh.vmware-esx
2014/02/26 19:14:03 ui error: Build 'vmware-iso' errored: 1 error(s) occurred:
* Post-processor failed: Unknown artifact type, can't build box: mitchellh.vmware-esx
2014/02/26 19:14:03 /Users/TheDude/packer/packer-command-build: 2014/02/26 19:14:03 Builds completed. Waiting on interrupt barrier...
2014/02/26 19:14:03 machine readable: error-count []string{"1"}
==> Some builds didn't complete successfully and had errors:
2014/02/26 19:14:03 ui error:
==> Some builds didn't complete successfully and had errors:
2014/02/26 19:14:03 machine readable: vmware-iso,error []string{"1 error(s) occurred:\n\n* Post-processor failed: Unknown artifact type, can't build box: mitchellh.vmware-esx"}
--> vmware-iso: 1 error(s) occurred:
* Post-processor failed: Unknown artifact type, can't build box: mitchellh.vmware-esx
2014/02/26 19:14:03 ui error: --> vmware-iso: 1 error(s) occurred:
* Post-processor failed: Unknown artifact type, can't build box: mitchellh.vmware-esx