Hi,
I am using packer to generate VMWARE images on a digital ocean instance. I have installed vmware player for linux as well as vmware vix sdk. But i am unable to get it working.
Here is my template:
{
"builders": [
{
"type": "vmware-iso",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz<wait>",
"preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/preseed.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname=RtBrick-Evaluation",
"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": "10s",
"disk_size": 10240,
"tools_upload_flavor": "linux",
"vmdk_name": "disk",
"guest_os_type": "ubuntu-64",
"http_directory": "http",
"iso_checksum": "dd54dc8cfc2a655053d19813c2f9aa9f",
"iso_checksum_type": "md5",
"iso_url": "
http://releases.ubuntu.com/14.04/ubuntu-14.04.5-server-amd64.iso",
"ssh_username": "ubuntu",
"ssh_password": "ubuntu",
"ssh_port": 22,
"headless": true,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'ubuntu'| sudo shutdown -P now",
"output_directory": "test",
"vm_name": "rtbrick-vbox-6topo-{{user `version`}}",
"vmx_data": {
"MemTrimRate": "0",
"sched.mem.pshare.enable": "FALSE",
"mainMem.useNamedFile": "FALSE",
"prefvmx.minVmMemPct": "100"
}
}
]
}
I am getting the following error:
# packer build template.json
vmware-iso output will be in this color.
Build 'vmware-iso' errored: Failed creating VMware driver: Unable to initialize any driver for this platform. The errors
from each driver are shown below. Please fix at least one driver
to continue:
* exec: "vmware": executable file not found in $PATH
* exec: "vmware": executable file not found in $PATH
* exec: "vmrun": executable file not found in $PATH
* exec: "vmrun": executable file not found in $PATH
==> Some builds didn't complete successfully and had errors:
--> vmware-iso: Failed creating VMware driver: Unable to initialize any driver for this platform. The errors
from each driver are shown below. Please fix at least one driver
to continue:
* exec: "vmware": executable file not found in $PATH
* exec: "vmware": executable file not found in $PATH
* exec: "vmrun": executable file not found in $PATH
* exec: "vmrun": executable file not found in $PATH
==> Builds finished but no artifacts were created.
I had gone through a couple of issues in packer git repo where they mentioned that I have to install VIX SDK which i did. I am still unable to get it working. Any ideas?