Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 7 trial on Ubuntu 16.04: Timeout waiting for WinRM #60

Closed
obilodeau opened this issue Jul 11, 2017 · 4 comments
Closed

Windows 7 trial on Ubuntu 16.04: Timeout waiting for WinRM #60

obilodeau opened this issue Jul 11, 2017 · 4 comments

Comments

@obilodeau
Copy link
Member

  • WinRM service is running, configuration happened
  • VirtualBox NAT rule is in place and proper port is exposed to packer
  • Windows firewall rule for 5985 is in place
  • Verified the NIC's network realm (public, work, private) and verified if firewall rule is according
  • Telnet connects
  • Sniffing with wireshark reveals that a TCP SYN on the right port is received when trying to use a winrm connector manually from the host (a pywinrm script)

Also,

  • upgraded packer from 0.12 to 1.0.2 just in case, didn't change anything
@obilodeau
Copy link
Member Author

selection_137

Found it! I need to find a way to override this automatically detected setting.

obilodeau added a commit that referenced this issue Jul 12, 2017
It seems like the separate script running from Autounattend.xml is not
working which causes subsequent errors in winrm setup.
@obilodeau
Copy link
Member Author

Network connection type is not switched to a "trusted" network type by the powershell script fixnetworks.ps1. I tried inlining it into enablewinrm.ps1 but that didn't work. I added pause to the script. Here's the output of the failing FirstLogon command:

vboxvnc - tigervnc_138

@obilodeau
Copy link
Member Author

Testing a workaround right now. Sleeping for a few seconds is enough to let the network come up and the network change take effect.

@obilodeau
Copy link
Member Author

Fixed by #64 in commit 94b3b46 and 599e033

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant