packer-community / packer-windows-plugins

A suite of Packer plugins for provisioning Windows machines
113 stars 20 forks source link

error with windows shell provisioner. #16

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi, Trying out the plugin I hit the following error (from the packer log):

2015/01/13 17:15:20 packer-provisioner-windows-shell.exe: 2015/01/13 17:15:20 Retryable error: Error uploading script: Error uploading file to $env:TEMP\winrmfs-54b552a8-4d49-5102- a687-29cbe31d42fb.tmp: Couldn't fetch WinRM info: strconv.ParseInt: parsing "4294967295": value out of range

Here is the winrm configuration of the server, I have tried setting both MaxProviderRequests and MaxConcurrentOperations , but these are read only as this is a win2012R2 server. Not sure how to debug this any further? Any pointers? I can't see where the int is being parsed.

PS C:\Users\Administrator> winrm get winrm/config Config MaxEnvelopeSizekb = 500 MaxTimeoutms = 1800000 MaxBatchItems = 32000 MaxProviderRequests = 4294967295 Client NetworkDelayms = 5000 URLPrefix = wsman AllowUnencrypted = false Auth Basic = true Digest = true Kerberos = true Negotiate = true Certificate = true CredSSP = false DefaultPorts HTTP = 5985 HTTPS = 5986 TrustedHosts = Service RootSDDL = O:NSG:BAD:P(A;;GA;;;BA)(A;;GR;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD) MaxConcurrentOperations = 4294967295 MaxConcurrentOperationsPerUser = 400 EnumerationTimeoutms = 240000 MaxConnections = 300 MaxPacketRetrievalTimeSeconds = 120 AllowUnencrypted = true Auth Basic = true Kerberos = true Negotiate = true Certificate = false CredSSP = false CbtHardeningLevel = Relaxed DefaultPorts HTTP = 5985 HTTPS = 5986 IPv4Filter = IPv6Filter = * EnableCompatibilityHttpListener = false EnableCompatibilityHttpsListener = false CertificateThumbprint AllowRemoteAccess = true Winrs AllowRemoteShellAccess = true IdleTimeout = 7200000 MaxConcurrentUsers = 10 MaxShellRunTime = 2147483647 MaxProcessesPerShell = 25 MaxMemoryPerShellMB = 512 MaxShellsPerUser = 30

ghost commented 9 years ago

So installing the 64Bit versions of both packer and the plugins seems to solve this problem as it's an 64bit int.