Do you have a dhcp server in spacewalk, if so you need to fix the IP lease
an set the ssh_host in packer.
What's the point of adding space walk, I don't see that it will add any
value.

On Sep 6, 2016 3:43 PM, "Anil Dasmala" <[email protected]> wrote:

> ok thank you.
>
> Two minor issues i have are,
> 1.ssh not connecting even after vm gets installed through kickstart ,
> reboots and shows login prompt in console and
> 2.if i cancel the packer build vm gets unregistered even after setting
> keep_registered to true
> can you talk about that?,
> I've set text based kickstart install.
>
> This is what i've got in Debug mode :
>
> 2016/09/06 09:17:26 packer: Stderr:
> 2016/09/06 09:17:31 ui error: ==> vmware-iso: Timeout waiting for SSH.
> ==> vmware-iso: Timeout waiting for SSH.
> 2016/09/06 09:17:31 packer: 2016/09/06 09:17:31 opening new ssh session
> 2016/09/06 09:17:31 packer: 2016/09/06 09:17:31 [DEBUG] SSH wait
> cancelled. Exiting loop.
> 2016/09/06 09:17:31 packer: 2016/09/06 09:17:31 starting remote command:
> vim-cmd vmsvc/power.getstate 42
> 2016/09/06 09:17:32 packer: 2016/09/06 09:17:32 remote command exited with
> '0': vim-cmd vmsvc/power.getstate 42
>
>
> On Tuesday, September 6, 2016 at 6:41:20 PM UTC+5:30, Alvaro Miranda
> Aguilera wrote:
>>
>> Hello
>>
>> This is my suggestion based on what I would do if I was in your situation.
>>
>> Replace:
>>       "vmx_data": {
>>         "virtualHW.version": "9",
>>         "ethernet0.startConnected": "TRUE",
>>         "ethernet0.present": "TRUE",
>>         "ethernet0.virtualDev": "e1000",
>>         "ethernet0.networkName": "vlan2",
>>         "ethernet0.addressType": "generated",
>>         "ethernet0.displayName": "vlan2",
>>         "ethernet0.present": "TRUE",
>>         "memsize": "1024",
>>         "numvcpus": "1",
>>         "cpuid.coresPerSocket": "1",
>>         "scsi0:0.present": "TRUE",
>>         "scsi0:0.redo": "",
>>         "ide0:0.present": "FALSE"
>>       }
>>
>> To ethernet1.
>>
>> Just let packer to create ethernet0.
>>
>> When the machine starts, probably won't see eth0 due the lack of drivers,
>> so the ks should work as is.
>>
>> as part of the provisioning, in packer you can install vmware tools, then:
>>
>> When you finish to install, put on /etc/sysconfig/network-scripts/ifcfg-eth0
>> and eth1, for dhcp on boot
>>
>> At some point you can/could/should export the VM without nics or 1/2 nics
>> etc and will work in all the cases.
>>
>> my 2 cents
>>
>> Alvaro.
>>
>> On Tue, Sep 6, 2016 at 12:36 PM, Anil Dasmala <[email protected]> wrote:
>>
>>> Hi Alvaro,
>>>
>>> Thanks for the info.
>>> Finally I found another way to get past this issue of vmxnet3.
>>> create-vm.json attached.
>>> (Note : in json file i have to set "ethernet0.virtualDev": "e1000" ,
>>> otherwise packer build fails.)
>>>
>>> After running packer build myjsonfile and i see VM getting registered on
>>> esx in debug text, I'm using vsphere powercli to modify the network adapter
>>> to vmxnet3 type online.
>>> get-vm packer-vm | get-networkadapter|set-networkadapter -networkname
>>> "vlan2"   -type vmxnet3 -connected:$true -confirm:$false
>>>
>>> I tested on centos7, the vmxnet3 driver is gettign loaded only after
>>> shutdown and power on, (if I just reboot instead of shutdown first time
>>> e1000 driver loaded).
>>>
>>> Thanks again Alvaro, your help is much appreciated.
>>>
>>> On Friday, September 2, 2016 at 11:48:36 PM UTC+5:30, Alvaro Miranda
>>> Aguilera wrote:
>>>>
>>>>
>>>> On Thu, Sep 1, 2016 at 9:30 AM, Anil Dasmala <[email protected]> wrote:
>>>>
>>>>> vmxnet3
>>>>
>>>>
>>>> Hello
>>>>
>>>> What he did is a new file.go that you can use to patch packer and build
>>>> a new binary.
>>>>
>>>> I think will be easier to ask him for a build version (binary) to test.
>>>>
>>>> Other option is create a custom iso / initrd
>>>>
>>>> https://vmwire.com/2011/06/11/vmware-tools-rpm-installation-
>>>> with-pxeboot-and-kickstart-3/
>>>>
>>>>
>>>> Can you share your packer templates and scripts?
>>>>
>>>> I have an ESX 5.5 where I can test
>>>>
>>>>
>>>> --
>>>> 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/ms
>>> gid/packer-tool/f1ecf513-a684-48f5-af7f-e4ccf2dc6d80%40googlegroups.com
>>> <https://groups.google.com/d/msgid/packer-tool/f1ecf513-a684-48f5-af7f-e4ccf2dc6d80%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/cde8dcc3-bf4e-4362-8d90-e42d974a7ed6%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/cde8dcc3-bf4e-4362-8d90-e42d974a7ed6%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/CALz9Rt9F09%2B3CEtgqQf1hMbHFgpQwiOa0u00G-23y87rLieroQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to