Generally cloud providers don't support nested virtualization so it doesn't
work to run VMware inside a Digital Ocean droplet.

On Sep 2, 2017 10:24, <[email protected]> wrote:

> 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?
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/bf7c0dbe-0635-419c-84b5-834ca82b36ae%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/bf7c0dbe-0635-419c-84b5-834ca82b36ae%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt_SkQ05Hut2DbaZdh5M3iJhGuOJ5rc2FuRWA-BNC_AnYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to