Closed ivanovvitaly closed 3 weeks ago
I don't have a response to this, but did some digging. Tried with Server Core and Server LTSC2022. The service is dependent on other services that are stopped:
PS C:\> get-service netprofm -RequiredServices
Status Name DisplayName
------ ---- -----------
Running RpcSs Remote Procedure Call (RPC)
Stopped nlasvc Network Location Awareness
When trying to start the nlasvc service, I get a similar error than netprofm:
PS C:\> start-service nlasvc
start-service : Service 'Network Location Awareness (nlasvc)' cannot be started due to the following error: Cannot
start service nlasvc on computer '.'.
At line:1 char:1
+ start-service nlasvc
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
ServiceCommandException
+ FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
Interesting that nlasvc has all services it depends on started:
PS C:\> get-service nlasvc -RequiredServices
Status Name DisplayName
------ ---- -----------
Running NSI Network Store Interface Service
Running RpcSs Remote Procedure Call (RPC)
Running Eventlog Windows Event Log
Running Dhcp DHCP Client
Running TcpIp TCP/IP Protocol Driver
Finally, worth noting that netprofm service is running on a Windows Server with Server Core installation. I'll leave this to the PG team, but wanted to provide the quick findings.
Confirmed that this is also an issue with servercore:ltsc2019.
Some services are disabled by default in the base images, for efficiency. Please try changing the service start type for NlaSvc
and netprofm
from disabled to demand (manual). This can be done with sc.exe
or with Set-Service
from PowerShell, or even by editing the service registry values directly. Here is an example Dockerfile:
FROM mcr.microsoft.com/windows/servercore:ltsc2022
RUN sc.exe config NlaSvc start= demand & sc.exe config netprofm start= demand
The following should work from PowerShell:
'NlaSvc', 'netprofm' |% { Set-Service $_ -StartupType Manual }
@johnstep thank you so much, I confirm that helps. Tailscale still fails to install, but the original issue with services is resolved.
I'm trying to install Tailscale on windows server core 2022 ltsc base image, but installation fails with error
If I manually start the service using powershell I get the error
How do I start the
netprofm
service? Please advice