crc setup/start gets processed with error on Windows 10 Enterprise OS

Latest response

I'm trying seutp CodeReady Container on my company laptop with Windows 10 Enterprise OS following the document here:

https://access.redhat.com/documentation/en-us/red_hat_codeready_containers/1.29/html/getting_started_guide/installation_gsg#installing-codeready-containers_gsg

I get below error when try to execute crc start command:

PS C:\lab\RedHatCRC> crc start --log-level debug
DEBU HTTP-PROXY: http://127.0.0.1:8080, HTTPS-PROXY: http://127.0.0.1:8080, NO-PROXY: 127.0.0.1,localhost,.bpshare.com, proxyCAFile:
DEBU CodeReady Containers version: 1.29.1+bc5f4409
DEBU OpenShift version: 4.7.18 (embedded in executable)
DEBU Running 'crc start'
DEBU Total memory of system is 17005862912 bytes
DEBU No new version available. The latest version is 1.29.1
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId).ReleaseId'
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").EditionID'
Is 'crc daemon' running? Cannot reach daemon API: Get "http://unix/api/version": open \.\pipe\crc-http: The system cannot find the file specified.

--------------Steps to reproduce-----------------------------

  • Download and extract the CodeReady Containers archive from https://cloud.redhat.com/openshift/create/local on my Windows 10 Enterprise
  • Place the binary in my $PATH .
  • Open Windows Terminal, start to run: crc setup
  • Get prompt information to reboot system.
  • Reboot system
  • Open Windows Terminal, start to run: crc setup to complete the setup process.

----------------General information---------------------

OS: Windows 10
Hypervisor: Hyper-V
Did you run crc setup before starting it (Yes/No)? Yes
Running CRC on: Laptop

----------------CRC version---------------------------
CodeReady Containers version: 1.29.1+bc5f4409
OpenShift version: 4.7.18 (embedded in executable)

--------------CRC config-----------------------------
PS C:\lab\RedHatCRC> crc config view
- consent-telemetry : yes
- network-mode : user

------------------Host Operating System------------------------------
PS C:\lab\RedHatCRC> systeminfo
Host Name: localhost
OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.19042 N/A Build 19042
OS Manufacturer: Microsoft Corporation
OS Configuration: Member Workstation
OS Build Type: Multiprocessor Free
Registered Owner: BPSHARE
Registered Organization: BPSHARE
Product ID: 00000-00000-00000-0000
Original Install Date: 6/23/2021, 2:25:42 PM
System Boot Time: 7/21/2021, 12:56:27 PM
System Manufacturer: LENOVO
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 142 Stepping 10 GenuineIntel ~1696 Mhz
BIOS Version: LENOVO N24ET61W (1.36 ), 10/13/2020
Windows Directory: C:\WINDOWS
System Directory: C:\WINDOWS\system32
Boot Device: \Device\HarddiskVolume2
System Locale: en-us;English (United States)
Total Physical Memory: 16,218 MB
Available Physical Memory: 10,823 MB
Virtual Memory: Max Size: 25,434 MB
Virtual Memory: Available: 19,361 MB
Virtual Memory: In Use: 6,073 MB
Page File Location(s): C:\pagefile.sys
Domain: BPSHARE.com
Hotfix(s): 7 Hotfix(s) Installed.
[01]: KB4576478
[02]: KB4562830
[03]: KB4570334
[04]: KB4577266
[05]: KB4577586
[06]: KB5004237
[07]: KB5003742
Network Card(s): 5 NIC(s) Installed.
[01]: VirtualBox Host-Only Ethernet Adapter
Connection Name: Ethernet 2
DHCP Enabled: No
IP address(es)
[01]: 192.168.32.1
[02]: fe80::800:27ff:fe00:f
[02]: Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64
Connection Name: Internet
Status: Hardware not present
[03]: Intel(R) Ethernet Connection (4) I219-LM
Connection Name: Ethernet
Status: Media disconnected
[04]: Intel(R) Dual Band Wireless-AC 8265
Connection Name: Wi-Fi
DHCP Enabled: Yes
DHCP Server: 1.1.1.1
IP address(es)
[01]: 192.168.115.111
[05]: Bluetooth Device (Personal Area Network)
Connection Name: Bluetooth Network Connection
Status: Media disconnected
Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.

-----------------Logs-------------------------------------
PS C:\lab\RedHatCRC> crc setup --log-level debug
DEBU HTTP-PROXY: http://127.0.0.1:8080, HTTPS-PROXY: http://127.0.0.1:8080, NO-PROXY: 127.0.0.1,localhost,.bpshare.com,, proxyCAFile:
DEBU CodeReady Containers version: 1.29.1+bc5f4409
DEBU OpenShift version: 4.7.18 (embedded in executable)
DEBU Running 'crc setup'
INFO Checking if crc-admin-helper executable is cached
DEBU Running 'U:.crc\bin\crc-admin-helper-windows.exe --version'
DEBU Found crc-admin-helper-windows.exe version 0.0.6
DEBU crc-admin-helper executable already cached
INFO Checking for obsolete admin-helper executable
DEBU Checking if an older admin-helper executable is installed
DEBU No older admin-helper executable found
INFO Checking if running on a supported CPU architecture
INFO Checking minimum RAM requirements
DEBU Total memory of system is 17005862912 bytes
INFO Checking if running in a shell with administrator rights
DEBU Running '$currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent());$currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)'
INFO Checking Windows 10 release
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId).ReleaseId'
INFO Checking Windows edition
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").EditionID'
DEBU Running on Windows Enterprise edition
INFO Checking if Hyper-V is installed and operational
DEBU Running '@(Get-Wmiobject Win32_ComputerSystem).HypervisorPresent'
DEBU Running '@(Get-Service vmms).Status'
INFO Checking if crc-users group exists
DEBU Running 'Get-LocalGroup -Name crc-users'
DEBU Command failed: exit status 1
DEBU stdout:
DEBU stderr: Get-LocalGroup : Group crc-users was not found.
At line:1 char:43
+ ... ogressPreference = 'SilentlyContinue'; Get-LocalGroup -Name crc-users
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (crc-users:String) [Get-LocalGroup], GroupNotFoundException
+ FullyQualifiedErrorId : GroupNotFound,Microsoft.PowerShell.Commands.GetLocalGroupCommand

DEBU 'crc-users' group does not exist: exit status 1
INFO Creating crc-users group
INFO Will run as admin: create crc-users group
DEBU Running 'C:\Users\dev001\AppData\Local\Temp\crcScripts379267583\runAsAdmin.ps1'
INFO Checking if current user is in Hyper-V group and crc-users group
DEBU Running 'Get-LocalGroupMember -Name crc-users -Member 'bpshare\dev001''
DEBU Command failed: exit status 1
DEBU stdout:
DEBU stderr: Get-LocalGroupMember : Principal bpshare\dev001 was not found.
At line:1 char:43
+ ... yContinue'; Get-LocalGroupMember -Name crc-users -Member 'bpshare\dev001 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (bpshare\dev001:String) [Get-LocalGroupMember], PrincipalNotFoundException
+ FullyQualifiedErrorId : PrincipalNotFound,Microsoft.PowerShell.Commands.GetLocalGroupMemberCommand

DEBU exit status 1
INFO Adding current user to group
DEBU Running 'Get-LocalGroupMember -Name crc-users -Member 'bpshare\dev001''
DEBU Command failed: exit status 1
DEBU stdout:
DEBU stderr: Get-LocalGroupMember : Principal bpshare\dev001 was not found.
At line:1 char:43
+ ... yContinue'; Get-LocalGroupMember -Name crc-users -Member 'bpshare\dev001 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (bpshare\dev001:String) [Get-LocalGroupMember], PrincipalNotFoundException
+ FullyQualifiedErrorId : PrincipalNotFound,Microsoft.PowerShell.Commands.GetLocalGroupMemberCommand

INFO Will run as admin: adding current user to crc-users group
DEBU Running 'C:\Users\dev001\AppData\Local\Temp\crcScripts159028050\runAsAdmin.ps1'
DEBU Running '$sid = New-Object System.Security.Principal.SecurityIdentifier("S-1-5-32-578")
@([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole($sid)'
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId).ReleaseId'
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").EditionID'
Please reboot your system and run 'crc setup' to complete the setup process
PS C:\lab\RedHatCRC>

Responses

I am also getting the same error. After Installing the CRC, when I ran 'oc setup' command, it asked to reboot the machine. I restarted the machine and when I ran the same command again, got the same message 'reboot the machine' . Then, I checked the logs in CRC directory and found the same error : "stderr: Get-LocalGroupMember : Principal ******** was not found".

Hi Alam,

Actually, I did check the local user group on my laptop, the crc user group gets created successfully and my domain user is in the crc user group, cannot insert the screenshot here so you can go to the Github issue to check the screenshots I captured and more comments: https://github.com/code-ready/crc/issues/2594

Thanks, Ben