Okay that looks reasonable. Is it possible that capitalization matters, and the username "vcrs" versus "VCRS" is the issue?
On Mon, Oct 19, 2020 at 2:55 PM Alexander Robinson <[email protected]> wrote: > attached is the script. Any additional help would be appreciated. > > # Supress network location Prompt > New-Item -Path > "HKLM:\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" -Force > > # Set network to private > $ifaceinfo = Get-NetConnectionProfile > Set-NetConnectionProfile -InterfaceIndex $ifaceinfo.InterfaceIndex > -NetworkCategory Private > > # Set up WinRM and configure some things > winrm quickconfig -q > winrm s "winrm/config" '@{MaxTimeoutms="1800000"}' > winrm s "winrm/config/winrs" '@{MaxMemoryPerShellMB="2048"}' > winrm s "winrm/config/service" '@{AllowUnencrypted="true"}' > winrm s "winrm/config/service/auth" '@{Basic="true"}' > > # Enable the WinRM Firewall rule, which will likely already be enabled due > to the 'winrm quickconfig' command above > Enable-NetFirewallRule -DisplayName "Windows Remote Management (HTTP-In)" > > sc.exe config winrm start= auto > > exit 0 > > On Fri, Oct 16, 2020 at 3:18 PM Megan Marsh <[email protected]> > wrote: > >> I'm not seeing your autounattend actually call your configure-winrm.ps1 >> script. That could be your issue. Without knowing how you're configuring >> winrm, I'm not sure whether the options you've set are correct. Can you >> share the script? >> >> On Thu, Oct 15, 2020 at 10:52 AM Alexander Robinson < >> [email protected]> wrote: >> >>> Hi Packer Group! >>> >>> First off I am running Packer 1.6.4 and Virtualbox 6.1. I'm working off >>> of a Ubuntu18.04 machine. I'm using the JSON and autounattend XML that I've >>> attached to this message. >>> >>> I've tested various versions of enabling WinRM manually on the VM once >>> it's up, but I can't get past this invalid content type error and I've been >>> poking at this for a while. >>> >>> Any help would be appreciated as I just want to get it to connect to >>> finish the packer run so I can save the VM. Thanks! >>> >>> -- >>> 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/hashicorp/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 [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/packer-tool/c948dfac-a354-4f6c-8e22-d272aa7817can%40googlegroups.com >>> <https://groups.google.com/d/msgid/packer-tool/c948dfac-a354-4f6c-8e22-d272aa7817can%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> 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/hashicorp/packer/issues >> IRC: #packer-tool on Freenode >> --- >> 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/zEWZKrBIxFg/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/packer-tool/CAGPV1upn2%2BD_NNJbdGLpNJF%2B%3DAPo1PnSsZG1SGkhSmc4f3D%3DAw%40mail.gmail.com >> <https://groups.google.com/d/msgid/packer-tool/CAGPV1upn2%2BD_NNJbdGLpNJF%2B%3DAPo1PnSsZG1SGkhSmc4f3D%3DAw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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/hashicorp/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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/CABKLcRWONKbcwtY-YrmwushzEN_gLjZXc8_7ODs%3DevD1LGiqaA%40mail.gmail.com > <https://groups.google.com/d/msgid/packer-tool/CABKLcRWONKbcwtY-YrmwushzEN_gLjZXc8_7ODs%3DevD1LGiqaA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/hashicorp/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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAGPV1upsaAW1SYskAOmvd5pb%3DGYB_A6PsE04i%2BnqbOr4KLbHWQ%40mail.gmail.com.
