Back with update, the build on vmware iso went well. One issue I faced was, the network wasn't connecting to initiate the kickstart inside guest os. The network adapter wasnt getting set to "connected". I had to set netwrok adapter type to e1000 and manually(doing it through powercli) set connected to true and change adapter type to vmxnet3.Its working that way.
But even after changing the type to vmxnet3, the guest OS(centos7) still sees it as e1000 and loads e1000 driver. Isnt there a direct way to set vmxnet3 adapter type and make it work? I saw a fix mentioned at https://github.com/amitinfo2k/packerfixdvsnw for similar problem. But didn't understand how to implement it On Tuesday, August 30, 2016 at 10:38:07 AM UTC+5:30, Anil Dasmala wrote: > > ok thank you. yeah I have the repos defined in the kickstart file. > I'l post the results, right now I'm working on getting ssh access to esxi > host discussing roles required to provision vm with vmware admins. > > > On Tuesday, August 30, 2016 at 1:16:21 AM UTC+5:30, Alvaro Miranda > Aguilera wrote: >> >> the spacewalk is a known webserver so you will be using it as http for >> kickstart and potentially for a internal yum repo. >> >> it should work, just test the ks manyally first, and then try to make >> packer to automate that. >> >> If you use a minimal cd/dvd, you need to add to the kickstart the install >> media as new repo, copy the content of a full DVD with metadata and test. >> >> If you go with a full dvd, it will be only uploaded once to the vmstore, >> and you can just use none for the checksum check of the same to make the >> process to go faster. >> >> You have lots of options, so my suggestion will be try couple and see >> what feels more natural. >> >> Thanks >> Alvaro. >> >> On Mon, Aug 29, 2016 at 12:12 PM, Anil Dasmala <[email protected]> wrote: >> >>> 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]> >>>> 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]. >>>>> 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 >>> >>> <https://groups.google.com/d/msgid/packer-tool/aedb995e-be21-46d8-ac4e-25ecca69f933%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/6a98663e-e641-4484-8309-aeb75ca61e2f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
