crc: [BUG] crc setup fails during Windows installation even after multiple reboots

General information

  • OS: Windows
  • Hypervisor: Hyper-V
  • Did you run crc setup before starting it (Yes) But it fails
  • Running CRC on: Laptop

CRC version

CRC version: 2.14.0+868d96cd
OpenShift version: 4.12.1
Podman version: 4.3.1

CRC status

Machine does not exist. Use 'crc start' to create it

CRC config

- consent-telemetry                     : yes
- memory                                : 16384
- pull-secret-file                      : C:\Users\myusername\Documents\afoldername\pull-secret.txt

Host Operating System

Host Name:                
OS Name:                   Microsoft Windows 11 Enterprise
OS Version:                10.0.22000 N/A Build 22000
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:          N/A
Registered Organization:   N/A
Product ID:                00330-80000-00000-AA131
Original Install Date:     7/12/2022, 11:52:47 AM
System Boot Time:          3/9/2023, 2:32:57 PM
System Manufacturer:       LENOVO
System Model:              20SUS04P00
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 165 Stepping 2 GenuineIntel ~2592 Mhz
BIOS Version:              LENOVO N30ET49W (1.32 ), 12/14/2022
Windows Directory:         C:\WINDOWS
System Directory:          C:\WINDOWS\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             en-us;English (United States)
Input Locale:              en-us;English (United States)
Time Zone:                 (UTC-08:00) Pacific Time (US & Canada)
Total Physical Memory:     32,519 MB
Available Physical Memory: 21,596 MB
Virtual Memory: Max Size:  39,687 MB
Virtual Memory: Available: 26,143 MB
Virtual Memory: In Use:    13,544 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    WORKGROUP
Logon Server:              \\LAPTOP-SLIV8CB4
Hotfix(s):                 5 Hotfix(s) Installed.
                           [01]: KB5022505
                           [02]: KB5007575
                           [03]: KB5012170
                           [04]: KB5022836
                           [05]: KB5022369
Network Card(s):           5 NIC(s) Installed.
                           [01]: Intel(R) Wi-Fi 6 AX201 160MHz
                                 Connection Name: Wi-Fi
                                 DHCP Enabled:    Yes
                                 DHCP Server:     192.168.86.1
                                 IP address(es)
                                 [01]: 192.168.86.47
                                 [02]: fe80::587a:c286:a015:a90f
                           [02]: Intel(R) Ethernet Connection (11) I219-V
                                 Connection Name: Ethernet
                                 Status:          Media disconnected
                           [03]: Cisco AnyConnect Virtual Miniport Adapter for Windows x64
                                 Connection Name: Ethernet 2
                                 Status:          Hardware not present
                           [04]: Hyper-V Virtual Ethernet Adapter
                                 Connection Name: vEthernet (crc)
                                 Status:          Media disconnected
                           [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

Have installed crc locally on Windows by running “C:\Users\myusername\Downloads\crc-windows-installer\crc-windows-amd64.msi” .

when I run crc setup, I get

INFO Using bundle path C:\Users\myusername\.crc\cache\crc_hyperv_4.12.1_amd64.crcbundle
INFO Checking if current user is in crc-users and Hyper-V admins group
INFO Adding logon user to crc-users and Hyper-V admins group
INFO Will run as admin: adding current user to crc-users and Hyper-V admins group
Please reboot your system and run 'crc setup' to complete the setup process

I reboot.

I then run crc setup and get the same response. Crc setup does not create C:\Users\myusername.crc\cache\crc_hyperv_4.12.1_amd64.crcbundle

crc start responds

file 'C:\Users\myusername\.crc\cache\crc_hyperv_4.12.1_amd64.crcbundle' does not exist

The desktop in the tooltray is loaded but will not start either.

What have I missed?

Expected

crc setup should have created C:\Users\myusername\.crc\cache\crc_hyperv_4.12.1_amd64.crcbundle

Actual

file 'C:\Users\myusername\.crc\cache\crc_hyperv_4.12.1_amd64.crcbundle' does not exist

Logs

Before gather the logs try following if that fix your issue

$ crc delete -f
Machine does not exist. Use 'crc start' to create it
$ crc cleanup
INFO Removing the daemon task
INFO Removing hosts file records added by CRC
INFO Removing pull secret from the keyring
INFO Removing older logs
INFO Removing CRC Machine Instance directory
INFO Removing crc's virtual machine
Cleanup finished
$ crc setup
INFO Using bundle path C:\Users\myusername\.crc\cache\crc_hyperv_4.12.1_amd64.crcbundle
INFO Checking if current user is in crc-users and Hyper-V admins group
INFO Adding logon user to crc-users and Hyper-V admins group
INFO Will run as admin: adding current user to crc-users and Hyper-V admins group
Please reboot your system and run 'crc setup' to complete the setup process
$ crc start --log-level debug
DEBU CRC version: 2.14.0+868d96cd
DEBU OpenShift version: 4.12.1
DEBU Podman version: 4.3.1
DEBU Running 'crc start'
DEBU Total memory of system is 34098995200 bytes
DEBU Got bundle path: C:\Users\myusername\.crc\cache\crc_hyperv_4.12.1_amd64.crcbundle
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'
file 'C:\Users\6J1943897\.crc\cache\crc_hyperv_4.12.1_amd64.crcbundle' does not exist

Please consider posting the output of crc start --log-level debug on http://gist.github.com/ and post the link in the issue.

file 'C:\Users\myusername\.crc\cache\crc_hyperv_4.12.1_amd64.crcbundle' does not exist

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 23 (10 by maintainers)

Most upvoted comments

@brucedkyle Hi created #3559 , i see the issue is actually checking if the username is part of the group, the msi is successfully able to add the user to the required group but its the pre-flight check that fails. in the PR i try to check if the user is part of the group with a string comparison and not using the -Member flag for the powershell cmdlet.

Could you please uninstall your existing CRC and give the artifact from that PR a try and see if that fixes the issue, thanks!