Hey Alvaro, Thank you so much for the quick reply. yes you are right, now I got past that error. btw do you think the way im planning vm provisioning i.e is boot from minimal iso to kickstart from spacewalk supported?, or should I use floppy_files for specifying the kickstart file?
On Monday, August 29, 2016 at 1:55:03 PM UTC+5:30, Alvaro Miranda Aguilera wrote: > > Hello > > If I understand this correctly, you want to build on a remote ESXi server. > > As you haven't defined the remote host, its trying to build a local vmware > vm ie Workstation/Fusion. > > Check all the remote_<*> in the documentation, especially remote_host > > https://www.packer.io/docs/builders/vmware-iso.html > > Thanks > Alvaro. > > > On Mon, Aug 29, 2016 at 10:18 AM, Anil Dasmala <[email protected] > <javascript:>> wrote: > >> Hi guys, >> >> I'm new to packer. >> Im on centos 7.2, Packer v0.10.1 >> My ultimate goal is to spinup a centos vm on vcenter with vmware-iso >> builder. >> using a custom minimal iso which has kick-start profiles to install from >> spacewalk. >> i.e packer -> bootiso-to-kickstart-from-spacewalk ->bootcommand referrign >> kickstart profile -> install vm on vcenter >> >> Here is my initial json file. but im gettign below error when runnign >> packer build on my json file, any ideas why its failing? >> so the builder section builds an image which can be in turn transferred >> to vcenter in post-processing? or how does the process actually work. >> Thanks in advance. >> >> 2016/08/26 04:40:11 ui error: 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: "vmplayer": executable file not found in $PATH >> * exec: "vmplayer": executable file not found in $PATH >> >> json file >> ========== >> { >> "variables": { >> "ssh_name": "root", >> "ssh_pass": "xxxxxx", >> "hostname": "packer-test" >> }, >> >> "builders": [ >> { >> "type": "vmware-iso", >> "iso_url": "http://127.0.0.1:8000/centos-min-custom-boot.iso", >> "iso_checksum_type": "none", >> "ssh_username": "{{user `ssh_name`}}", >> "ssh_password": "{{user `ssh_pass`}}", >> "shutdown_command": "echo {{user `ssh_pass`}} | sudo -S shutdown -P >> now", >> "boot_command": [ >> "<tab> linux nameserver=x.x.x.x gateway=x.x.x.x ip=x.x.x.x ks= >> http://spacewalkhost/ks/cfg/org/1/label/centos70_x86_64_MIN >> netmask=255.255.255.0 --<enter>" >> ] >> } >> ] >> } >> >> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/packer-tool/fb95e989-5c91-4662-9e9c-56e7f238f683%40googlegroups.com >> >> <https://groups.google.com/d/msgid/packer-tool/fb95e989-5c91-4662-9e9c-56e7f238f683%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Alvaro > (+31)103400555 > -- 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/aedb995e-be21-46d8-ac4e-25ecca69f933%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
