crc: crc setup/start cannot be executed complete successfully

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 status

PS C:\lab\RedHatCRC> crc status --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,.internal.bpshare.cloud, proxyCAFile:
DEBU CodeReady Containers version: 1.29.1+bc5f4409
DEBU OpenShift version: 4.7.18 (embedded in executable)
DEBU Running 'crc status'
DEBU Checking file: U:\.crc\machines\crc\.crc-exist
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'
Machine does not exist. Use 'crc start' to create it

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.

Steps to reproduce

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

Expected

crc start command gets executed successfully.

Actual

Get below error:

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.

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>

Before gather the logs try following if that fix your issue

$ crc delete -f
$ crc cleanup
$ crc setup
$ crc start --log-level debug

Above delete and cleanup actions do not help here.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 28 (7 by maintainers)

Most upvoted comments

I fixed the issue above by running the installer again and choosing the option to Remove. It didn’t give that option the first time round following the upgrade steps in the documentation, only to replace what was already there. I performed a crc cleanup and then performed the fresh install (again) and now the tray executable runs correctly. Maybe something is not removed/cleaned up correctly when performing an install as an upgrade? Maybe crc cleanup is also required between upgrades?

I have another issue around DNS and wildcard domains not resolving but I’ll open a new issue for that if I can’t find an existing one. Hope the above helps someone else with a similar problem though.