CRC start failling

Hi Team,

I am not able to start an open shift CRC in my local environment. Please help to guide me to relsove below error

OS = Window 11 pro

crc start --log-level debugC:\Users\kolag>
C:\Users\kolag>
C:\Users\kolag>crc start --log-level debug
DEBU CRC version: 2.44.0+facc77
DEBU OpenShift version: 4.17.3
DEBU MicroShift version: 4.17.3
DEBU Running ‘crc start’
DEBU Total memory of system is 17178710016 bytes
WARN A new version (2.45.0) has been published on https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.45.0/crc-windows-installer.zip
DEBU Checking file: C:\Users\kolag.crc\machines\crc.crc-exist
INFO Using bundle path C:\Users\kolag.crc\cache\crc_okd_hyperv_4.15.0-0.okd-2024-02-23-163410_amd64.crcbundle
INFO Checking minimum RAM requirements
DEBU Total memory of system is 17178710016 bytes
INFO Check if Podman binary exists in: C:\Users\kolag.crc\bin\oc
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 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 Professional 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 Hyper-V service is enabled
DEBU Running ‘@(Get-Service vmms).Status’
INFO Checking if crc-users group exists
DEBU Running ‘Get-LocalGroup -Name crc-users’
INFO Checking if current user is in crc-users and Hyper-V admins group
DEBU Running ‘(Get-LocalGroupMember -Group ‘crc-users’).Name’
DEBU Checking current user is in the ‘crc-user’ group
DEBU group members: WIN11\kolag
DEBU Running ‘(Get-LocalGroupMember -SID ‘S-1-5-32-578’).Name’
DEBU Checking current user is in the ‘Hyper-v Administrators’ group
DEBU group members: WIN11\kolag
INFO Checking if vsock is correctly configured
DEBU Running ‘Get-Item -Path “HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\GuestCommunicationServices\00000400-FACB-11E6-BD58-64006A7986D3”’
INFO Checking if the win32 background launcher is installed
DEBU Running ‘(Get-Item ‘C:\Program Files\Red Hat OpenShift Local\crc-background-launcher.exe’).VersionInfo.FileVersion’
DEBU Found crc-background-launcher.exe version 0.0.0.1
INFO Checking if the daemon task is installed
DEBU Running ‘Get-ScheduledTask -TaskName crcDaemon’
DEBU Running ‘(Get-ScheduledTask -TaskName “crcDaemon”).Version’
INFO Checking if the daemon task is running
DEBU Running ‘(Get-ScheduledTask -TaskName “crcDaemon”).State’
INFO Checking admin helper service is running
DEBU Running ‘(Get-Service crcAdminHelper).Status’
INFO Checking SSH port availability
DEBU Checking file: C:\Users\kolag.crc\machines\crc.crc-exist
DEBU Copying ‘C:\Users\kolag.crc\cache\crc_okd_hyperv_4.15.0-0.okd-2024-02-23-163410_amd64\oc.exe’ to ‘C:\Users\kolag.crc\bin\oc\oc.exe’
DEBU Copying ‘C:\Users\kolag.crc\cache\crc_okd_hyperv_4.15.0-0.okd-2024-02-23-163410_amd64\podman.exe’ to ‘C:\Users\kolag.crc\bin\podman\podman.exe’
INFO Loading bundle: crc_okd_hyperv_4.15.0-0.okd-2024-02-23-163410_amd64…
INFO Creating CRC VM for OKD 4.15.0-0.okd-2024-02-23-163410…
DEBU Running pre-create checks…
DEBU Running ‘@(Get-Module -ListAvailable hyper-v).Name | Get-Unique’
DEBU Running ‘@([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(([System.Security.Principal.SecurityIdentifier]::new(“S-1-5-32-578”)))’
DEBU Creating machine…
DEBU Machine: libhvee → creating: system settings
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’
Error creating machine: Error in driver during machine creation: failed to define system: Job failed with error code: 32768 (Failed to create a new virtual machine.)

C:\Users\kolag>

I don’t have access to a Windows laptop, so I’m a bit limited into how much I can suggest. But a quick web search indicates that “error code 32768 generally indicates a problem related to resource allocation, often meaning the system is unable to allocate enough memory or processing power to complete the requested operation, leading to a failure in creating or managing the OpenShift cluster within your local environment.”

The problem apparently is either your computer has too little memory available, or that CRC is not detecting what you have correctly. I’d start with " [m]odify the --memory and --cpus options in your crc command to allocate more resources to the cluster.", and see if that helps.

Hi @rob_kodekloud ,

I tried to install CRC with 4 cores processor with 16 RAM assigned to the VM. still I showing the same error. I have followed the same steps openshift 4 kodekloud course.

Please try to help. it is required for me.

  1. List item

Two questions:

  1. What’s the amount of RAM available on your labtop? Is it sufficiently large for this OpenShift cluster?
  2. what was the exact command you used to launch it with crc start?

Hi @rob_kodekloud ,

My laptop configuration Intel i7 ultra core(16 cores 22 threads) process with 32 GB RAM on the host for Oracle Virtual box OS I gave 6 cores with 16 GB RAM.

I tired with both commands

  1. CRC Start
  2. CRC start --memory=1288

As I read the command #2, you are only allocating 1.288 GB of memory:

e$ crc start --help
Start the instance

Usage:
  crc start [flags]

Flags:
  -b, --bundle string             Bundle path/URI - absolute or local path, http, https or docker URI (string, like 'https://foo.com/crc_vfkit_4.17.0_arm64.crcbundle', 'docker://quay.io/myorg/crc_vfkit_4.17.0_arm64.crcbundle:2.42.0' default '/Users/robthorne/.crc/cache/crc_vfkit_4.17.0_arm64.crcbundle' ) (default "/Users/robthorne/.crc/cache/crc_vfkit_4.17.0_arm64.crcbundle")
  -c, --cpus int                  Number of CPU cores to allocate to the instance (default 4)
      --disable-update-check      Don't check for update
  -d, --disk-size uint            Total size in GiB of the disk used by the instance (default 31)
  -h, --help                      help for start
  -m, --memory int                MiB of memory to allocate to the instance (default 10752)
  -n, --nameserver string         IPv4 address of nameserver to use for the instance
  -o, --output string             Output format. One of: json
  -p, --pull-secret-file string   File path of image pull secret (download from https://console.redhat.com/openshift/create/local)

Global Flags:
      --log-level string   log level (e.g. "debug | info | warn | error") (default "info")

You have a lot of memory on the laptop, give it 15GB…

crc start -m 15000