IP Lookup failed

70 views
Skip to first unread message

Santhosh

unread,
Mar 24, 2017, 8:35:34 PM3/24/17
to Packer
I am trying to create vmware image for Ubuntun 16.04.1 using packer. I am unable to complete the headless installation and my installation is aborted at "Load Debconf preconfiguration file" error (please see the attached files)

I also see this error 

2017/03/24 16:52:11 /work/skokala/stingray-cloud/ssc_host_build/packer/packer-builder-vmware: 2017/03/24 16:52:11 Lookup up IP information...^M
2017/03/24 16:52:11 /work/skokala/stingray-cloud/ssc_host_build/packer/packer-builder-vmware: 2017/03/24 16:52:11 DHCP leases path: /etc/vmware/vmnet8/dhcpd/dhcpd.leases^M
2017/03/24 16:52:11 /work/skokala/stingray-cloud/ssc_host_build/packer/packer-builder-vmware: 2017/03/24 16:52:11 IP lookup failed: IP not found for MAC in DHCP leases^M
2017/03/24 16:52:11 /work/skokala/stingray-cloud/ssc_host_build/packer/packer-builder-vmware: 2017/03/24 16:52:11 Error getting SSH address: IP lookup failed: IP not found for MAC in DHCP leases^M
2017/03/24 16:52:16 /work/skokala/stingray-cloud/ssc_host_build/packer/packer-builder-vmware: 2017/03/24 16:52:16 Lookup up IP information...^M


It would be great if someone can let me know what I am missing here.


Ubuntu.gif

Alvaro Miranda Aguilera

unread,
Mar 24, 2017, 11:03:28 PM3/24/17
to packe...@googlegroups.com
hello

not much information on the screenshot, can you share your packer json template and the response file?

If you are editing this files on Windows, can you ensure the files are being saved as txt file with unix end of lines ?

you can run dos2unix on them

--
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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/71281138-7962-4f80-b847-f8894a2628c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Santhosh

unread,
Mar 24, 2017, 11:28:58 PM3/24/17
to Packer
Here are my packer template file, vmx and packer log set to 1


On Friday, March 24, 2017 at 8:03:28 PM UTC-7, Alvaro Miranda Aguilera wrote:
hello

not much information on the screenshot, can you share your packer json template and the response file?

If you are editing this files on Windows, can you ensure the files are being saved as txt file with unix end of lines ?

you can run dos2unix on them
On Sat, Mar 25, 2017 at 1:35 AM, Santhosh <santhos...@gmail.com> wrote:
I am trying to create vmware image for Ubuntun 16.04.1 using packer. I am unable to complete the headless installation and my installation is aborted at "Load Debconf preconfiguration file" error (please see the attached files)

I also see this error 

2017/03/24 16:52:11 /work/skokala/stingray-cloud/ssc_host_build/packer/packer-builder-vmware: 2017/03/24 16:52:11 Lookup up IP information...^M
2017/03/24 16:52:11 /work/skokala/stingray-cloud/ssc_host_build/packer/packer-builder-vmware: 2017/03/24 16:52:11 DHCP leases path: /etc/vmware/vmnet8/dhcpd/dhcpd.leases^M
2017/03/24 16:52:11 /work/skokala/stingray-cloud/ssc_host_build/packer/packer-builder-vmware: 2017/03/24 16:52:11 IP lookup failed: IP not found for MAC in DHCP leases^M
2017/03/24 16:52:11 /work/skokala/stingray-cloud/ssc_host_build/packer/packer-builder-vmware: 2017/03/24 16:52:11 Error getting SSH address: IP lookup failed: IP not found for MAC in DHCP leases^M
2017/03/24 16:52:16 /work/skokala/stingray-cloud/ssc_host_build/packer/packer-builder-vmware: 2017/03/24 16:52:16 Lookup up IP information...^M


It would be great if someone can let me know what I am missing here.


--
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 packer-tool...@googlegroups.com.



--
Alvaro

ssc-host-vmware.json
packer-log

Alvaro Miranda Aguilera

unread,
Mar 25, 2017, 11:03:06 AM3/25/17
to packe...@googlegroups.com
Hello

Can you clone this and try to build it ?




To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/e5c28c60-c031-49cf-90fe-cab4a0742c57%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Santhosh K Kokala

unread,
Mar 25, 2017, 1:43:00 PM3/25/17
to packe...@googlegroups.com
With the atlas-packer-vagrant-tutorial, I am able to spin a 12.04 vm fine...I modified the template.json file boot command and iso_url to work with ubuntu-16.04.2 and I hit the same issue and see this error file=/cdrom/preseed/preseed.cfg is missing

You received this message because you are subscribed to a topic in the Google Groups "Packer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/packer-tool/1dFqQyWDIKI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0exf6LQYzPEPYL0rFfRY_WeUSkb1Tv9vgeUZqA8YgirLpA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages