Packer VirtualBox hang

188 views
Skip to first unread message

nbmp...@gmail.com

unread,
Nov 28, 2017, 5:50:06 AM11/28/17
to Packer
Hi There,

I'm using https://github.com/taliesins/packer-baseboxes as a base for my images. As of yet none of the platforms have worked for me.

vSphere fails at SSH.
Vmware needs drivers. might need workstation pro which I don't have. Only have VMware player free.
Hyper-V needs hyper-v installed.
Virtualbox starts the process but hangs at the powershell scripts. Using virtualbox-windows-2012R2-serverstandard-amd64.json. Had to disable the uefi part in the autounattend.xml file. See below.
















The packer log only gives a mix of these messages:
2017/11/28 11:20:44 packer.exe: 2017/11/28 11:20:44 [DEBUG] connecting to remote shell using WinRM
2017/11/28 11:20:44 packer.exe: 2017/11/28 11:20:44 [ERROR] connection error: http response error: 401 - invalid content type
2017/11/28 11:20:44 packer.exe: 2017/11/28 11:20:44 [ERROR] WinRM connection err: http response error: 401 - invalid content type
2017/11/28 11:20:49 packer.exe: 2017/11/28 11:20:49 [INFO] Attempting WinRM connection...
2017/11/28 11:20:49 packer.exe: 2017/11/28 11:20:49 [DEBUG] connecting to remote shell using WinRM
2017/11/28 11:22:15 packer.exe: 2017/11/28 11:22:15 [ERROR] connection error: unknown error Post http://127.0.0.1:2962/wsman: read tcp 127.0.0.1:60547->127.0.0.1:2962: wsarecv: An existing connection was forcibly closed by the remote host.
2017/11/28 11:22:15 packer.exe: 2017/11/28 11:22:15 [ERROR] WinRM connection err: unknown error Post http://127.0.0.1:2962/wsman: read tcp 127.0.0.1:60547->127.0.0.1:2962: wsarecv: An existing connection was forcibly closed by the remote host.

 I would love to use Packer but this is a real pain and documentation + google searches provide very limited help.

Anybody knows whats up?

nbmp...@gmail.com

unread,
Nov 28, 2017, 6:15:10 AM11/28/17
to Packer
FYI: Goal is to provision to vSphere.

Rickard von Essen

unread,
Nov 28, 2017, 6:31:17 AM11/28/17
to packe...@googlegroups.com
Maybe you have a firewall on your host intercepting the traffic. Try adding -on-error=ask and do some troubleshooting of your network set up. 

On Nov 28, 2017 12:15 PM, <nbmp...@gmail.com> wrote:
FYI: Goal is to provision to vSphere.

--
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/55ca063d-c37f-4f03-9c91-5e58cc03526f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages