Do you have something like the following in your kickstart file:

network  --bootproto=dhcp --device=<nic you want here> --activate



On Thursday, December 14, 2017 at 11:23:02 PM UTC-5, Shankar Bala wrote:
>
> Hi All
>
> I have packer config file that uploads ISO to esxi server and run our 
> kickstart file..it uses dhcp and this works perfectly on centos6 box., 
> whereas on centos7 same config doesn't work.
>
> I noticed that packer is created the vm and then finally it timeout while 
> doing ssh to it.
>
> I logged into the vm., and I noticed the vm is not getting dhcp ip ., 
> whereas packer logs shows the ip of the vm. To fix this., I manually login 
> to the console of the vm., then type "dhclient <interface name>"..as soon 
> as I do this., packer continue to finish the post processor task and my 
> template is getting created.
>
> however I want to avoid this manual interventions..is it due to interface 
> name of centos7 as its not eth0 by default ?
>
> any idea on this ?
>
> Shan
>
>
>

-- 
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/f5c86a7a-beff-45d5-8d2e-b913f26765a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to