Failed to Retrieve the preconfiguration file

2,894 views
Skip to first unread message

Mark Mandel

unread,
Aug 30, 2013, 7:23:08 PM8/30/13
to packe...@googlegroups.com
Hi,

Not sure if this is a Packer issue, a VMWare issue, or a Ubuntu issue. But figured I would try here first to see if anyone else had encountered this problem.

Environment:
Packer v0.3.5
Ubuntu 13.04 64 Bit
VMWare workstation 9.0.2 build-1031769

Packer File is the following:
{
"builders":
[
{
"type": "vmware",
"iso_url": "file:///home/mark/Downloads/os/ubuntu-12.04.3-server-amd64.iso",
"iso_checksum": "2cbe868812a871242cdcdd8f2fd6feb9",
"iso_checksum_type": "md5",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "300s",
"shutdown_command": "echo vagrant | sudo -S shutdown -P now",
"disk_size": 20000,
"guest_os_type": "ubuntu-64",
"tools_upload_flavor": "linux",
"output_directory": "ubuntu-vm",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz noapic ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname=vagrant-precise64 ",
"fb=false debconf/frontend=noninteractive ",
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA console-setup/ask_detect=false ",
"initrd=/install/initrd.gz -- <enter>"
]
}
]
}

Every time I run this, I get the following error on screen, that it can't download my preseed file (which can be seen: https://dl.dropboxusercontent.com/u/16200445/ubuntu-preseed.cfg ).

"Failed to retrieve the preconfiguration file

Screenshot:

I've tried moving the pressed file to github, same issue.

I went down to command line in this VM, and I can ping and wget - so the network works.  I'm stumped?

Anyone got any ideas what I'm doing wrong?t

Thanks.

Mark

Mitchell Hashimoto

unread,
Aug 30, 2013, 7:24:52 PM8/30/13
to packe...@googlegroups.com, Mark Mandel
Mark,

Just a thought: maybe it doesn't have a CA roots at this point to do SSL verification? Have you a tried a non-secure URL?

Best,
Mitchell
--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Mark Mandel

unread,
Aug 30, 2013, 7:29:28 PM8/30/13
to Mitchell Hashimoto, packe...@googlegroups.com
That was it!

Works with a non secure URL.

Interesting - all the github examples use https with a github url.

But otherwise, this looks good. I just need to tweak my preseed, and I should be all good to go. 

Much appreciated on the speedy response.

Mark

Kevin T

unread,
Oct 1, 2013, 11:16:56 AM10/1/13
to packe...@googlegroups.com
Hi,

I've been experiencing this same issue, however I've tried both a secure and un-secure url to a preseed file on github 
and packer still gives me this error. Any idea what the problem is?

Kevin

Jack Pearkes

unread,
Oct 1, 2013, 2:08:52 PM10/1/13
to packe...@googlegroups.com
Kevin,

I'm quite sure that GitHub redirects all non-https requests with a 302 to HTTPS. You may need to host it elsewhere.

Best,

Jack


--
Reply all
Reply to author
Forward
0 new messages