Chef-solo provisioner very slow to upload cookbooks

128 views
Skip to first unread message

James Bannan

unread,
Sep 19, 2016, 9:21:06 PM9/19/16
to Packer
Hi all,

I'm using Packer 0.10.1 on Windows 10 to build a Windows 10 image on VirtualBox.

The template uses the chef-solo provisioner, and i'm seeing that the upload of the cookbooks is extremely slow. Slow, as in, about 30 minutes to upload 4 cookbooks.

It always works and never errors, but the process is extremely slow and painful. Any way of troubleshooting what's happening and hopefully fixing it?

Sean Farrow

unread,
Sep 19, 2016, 11:22:39 PM9/19/16
to packe...@googlegroups.com

Hi James,

 

What template are you using, is it possible to provide a link?

Cheers

Sean.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/6d4548b5-c250-46c7-afff-b79912f49c4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

James Bannan

unread,
Sep 19, 2016, 11:26:00 PM9/19/16
to Packer, sean....@tendosolutions.com
Hi Sean,

Sure, the template is this one, authored by Matt Wrock:


Based on some additional research, it looks like this is a long-standing issue with the performance of the WinRM transport in Packer.  However, I'm only trying to upload about 500KB to the VM.  30 minutes to upload seems excessive...

Thanks,
James

James Bannan

unread,
Sep 20, 2016, 3:10:28 AM9/20/16
to Packer, sean....@tendosolutions.com
Just a quick update on this one - I ended up writing a short PowerShell script to download the cookbooks directly from the Chef Marketplace and extract them on the target VM.  This is working OK and I can bypass the cookbook upload, but it's not ideal as it precludes using Berkshelf to determine cookbook dependencies.
Reply all
Reply to author
Forward
0 new messages