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

Ubuntu installs hang on hyperv-iso builder - firewall blocks access to preseed.cfg #1

Closed
PatrickLang opened this issue Aug 5, 2016 · 1 comment

Comments

@PatrickLang
Copy link

I'm using the 104 build of your branch, and ran into a problem where the Ubuntu install was hanging. I'm curious if you hit this or not in your setup. I suspect it could be a difference because my laptop is domain joined so I'm going to see if there are any default deny policies that could cause this.

Steps

  1. packer build --only hyperv-iso -var 'hyperv_switchname=Ethernet' .\hyperv-ubuntu-16.04.json
  2. Wait a while - it will get to a purple screen and hang
  3. Go to VT2 (alt-f2), run ps - wget was hung
  4. Look at firewall rules on Hyper-V host:
PS C:\Users\Patrick\Source\packer\builder\hyperv> Get-NetFirewallRule -name *pack*


Name                  : UDP Query User{A737BEBC-D140-435A-B83D-EA9E15B130AD}C:\packer\packer.exe
DisplayName           : packer
Description           : packer
DisplayGroup          :
Group                 :
Enabled               : True
Profile               : Domain, Public
Platform              : {}
Direction             : Inbound
Action                : Block
EdgeTraversalPolicy   : Block
LooseSourceMapping    : False
LocalOnlyMapping      : False
Owner                 :
PrimaryStatus         : OK
Status                : The rule was parsed successfully from the store. (65536)
EnforcementStatus     : NotApplicable
PolicyStoreSource     : PersistentStore
PolicyStoreSourceType : Local

Name                  : TCP Query User{473B0AEF-617B-415C-8229-B3A7A725898C}C:\packer\packer.exe
DisplayName           : packer
Description           : packer
DisplayGroup          :
Group                 :
Enabled               : True
Profile               : Domain, Public
Platform              : {}
Direction             : Inbound
Action                : Block
EdgeTraversalPolicy   : Block
LooseSourceMapping    : False
LocalOnlyMapping      : False
Owner                 :
PrimaryStatus         : OK
Status                : The rule was parsed successfully from the store. (65536)
EnforcementStatus     : NotApplicable
PolicyStoreSource     : PersistentStore
PolicyStoreSourceType : Local



PS C:\Users\Patrick\Source\packer\builder\hyperv> Get-NetFirewallRule -name *pack* | Get-NetFirewallAddressFilter


LocalAddress  : Any
RemoteAddress : Any

LocalAddress  : Any
RemoteAddress : Any



PS C:\Users\Patrick\Source\packer\builder\hyperv> Get-NetFirewallRule -name *pack* | Get-NetFirewallPortFilter


Protocol      : TCP
LocalPort     : Any
RemotePort    : Any
IcmpType      : Any
DynamicTarget : Any

Protocol      : UDP
LocalPort     : Any
RemotePort    : Any
IcmpType      : Any
DynamicTarget : Any
  1. Change firewall rules to allow ports on all networks. This isn't really ideal, but it showed it was a firewall problem
Get-NetFirewallRule -name *pack* | Set-NetFirewallRule -Profile Private, Public, Domain -Enabled True -Action Allow
taliesins pushed a commit that referenced this issue Sep 29, 2016
DO-62 - Adjust the product name and product key to the current Windows 10 image
@taliesins
Copy link
Owner

I think documentation of what is required on the host is required. You would have the same issues with other builders and other hosts oses.

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

2 participants