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

BITS (Background Intelligent Transfer Service) wants to set firewall settings but can't in a container #354

Closed
borhae opened this issue Apr 25, 2023 · 16 comments
Assignees
Labels
question Further information is requested

Comments

@borhae
Copy link

borhae commented Apr 25, 2023

I wanted to evaluate a distributed, peer to peer, install scenario with windows containers. BITS by Microsoft seemed like a good choice, to distribute installation packages. When trying to configure the windows containers to enable the peer to peer install I ran into issues detailed below.

I know, that windows containers don't come with a firewall, because the host systems firewall is used. But BITS wants to change firewall settings on the system it is running (understandably) and doesn't even know that there is an external one (where a configuration wouldn't make sense anyway).

Question: How can I enable Peer 2 Peer mode for BITS inside a container?

What I tried:
Executing

Enable-BCDistributed

inside the windows docker container via powershell, As a result I get the following error:

Enable-BCDistributed : Could not access the Windows Firewall configuration.
2023-04-14 12:05:22 At line:1 char:1
2023-04-14 12:05:22 + Enable-BCDistributed
2023-04-14 12:05:22 + ~~~~~~~~~~~~~~~~~~~~
2023-04-14 12:05:22     + CategoryInfo          : NotSpecified: (MSFT_NetBranchCacheOrchestrator:r 
2023-04-14 12:05:22    oot/StandardCi...cheOrchestrator) [Enable-BCDistributed], CimException
2023-04-14 12:05:22     + FullyQualifiedErrorId : HRESULT 0x800706d9,Enable-BCDistributed

I found some instructions that indicated that I should try to check whether the firewall is running by:

Get-Service -Name "MpsSvc"

But as a result I get:

Status   Name               DisplayName
------   ----               -----------
Stopped  MpsSvc             Windows Defender Firewall

When I try to start the firewall by

Start-Service -Name "MpsSvc"

I get the following error:

Start-Service : Service 'Windows Defender Firewall (MpsSvc)' cannot be started due to the following error: Cannot start service MpsSvc on computer '.'. 
At line:1 char:1
+ Start-Service -Name "MpsSvc"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException 
    + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
@borhae borhae added the question Further information is requested label Apr 25, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the triage New and needs attention label Apr 25, 2023
@fady-azmy-msft fady-azmy-msft removed the triage New and needs attention label Apr 25, 2023
@borhae
Copy link
Author

borhae commented May 8, 2023

I'm still interested in discussing this. Any ideas @npolito-msft?

@borhae
Copy link
Author

borhae commented May 16, 2023

@fady-azmy-msft is @npolito-msft an active person? This thread seems dead.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@npolito-msft, please provide an update or close this issue.

5 similar comments
@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@npolito-msft, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@npolito-msft, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@npolito-msft, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@npolito-msft, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@npolito-msft, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@npolito-msft, please provide an update or close this issue.

3 similar comments
Copy link
Contributor

This issue has been open for 30 days with no updates.
@npolito-msft, please provide an update or close this issue.

Copy link
Contributor

This issue has been open for 30 days with no updates.
@npolito-msft, please provide an update or close this issue.

Copy link
Contributor

This issue has been open for 30 days with no updates.
@npolito-msft, please provide an update or close this issue.

@ntrappe-msft
Copy link
Contributor

@borhae I'm going to triage this again.

@ntrappe-msft ntrappe-msft added the triage New and needs attention label Feb 20, 2024
@ntrappe-msft
Copy link
Contributor

ntrappe-msft commented Feb 20, 2024

BITS requires network access which means it needs to set firewall rules. However, the Windows Firewall does not run inside a container so any calls will fail. You won't be able to use BITS to transfer files. The good news is that our product team is aware of this request and I'll update this Issue when we have something to share.

@ntrappe-msft ntrappe-msft removed the triage New and needs attention label Feb 20, 2024
@borhae
Copy link
Author

borhae commented Feb 24, 2024

Thank you so much for the response, I was already assuming that this issue is completely out of scope of what windows containers are meant to be useful for. I'm still interested in any outcome of this.

@ntrappe-msft
Copy link
Contributor

I'm going to close this Issue for now but I'll reopen + update it when we have news to share.

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

No branches or pull requests

4 participants