crc-org / crc

CRC is a tool to help you run containers. It manages a local OpenShift 4.x cluster, Microshift or a Podman VM optimized for testing and development purposes
https://crc.dev
Apache License 2.0
1.26k stars 242 forks source link

[BUG] crc binary fails to start on MacOS Sonoma 14.2.1 #4190

Open radhikapc opened 5 months ago

radhikapc commented 5 months ago

General information

CRC version

% crc version
CRC version: 2.36.0+27c493
OpenShift version: 4.15.12
Podman version: 4.4.4

CRC status

crc does not seem to be setup correctly, have you run 'crc setup'?

CRC config

% crc config view
- consent-telemetry                     : no

Host Operating System

sw_vers: No such file or directory

Steps to reproduce

  1. Install Openshift Local
  2. Run crc setup

Output

% crc setup INFO Using bundle path /Users/radhika.puthiyetath/.crc/cache/crc_vfkit_4.15.12_arm64.crcbundle INFO Checking if running macOS version >= 13.x
INFO Checking if running as non-root
INFO Checking if crc-admin-helper executable is cached INFO Checking if running on a supported CPU architecture INFO Checking if crc executable symlink exists
INFO Creating symlink for crc executable
readlink /usr/local/bin/crc: permission denied

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

praveenkumar commented 5 months ago
OS: macOS
Hypervisor: xhyve

@radhikapc you mentioned xhyve but we are using vfkit at the moment, is it typo or you have some different kind of setup?

Also you didn't mention sw_vers , and is it an intel mac or silicon (M1/M2/M3) one?

cfergeau commented 5 months ago
INFO Creating symlink for crc executable
readlink /usr/local/bin/crc: permission denied

Did you check this file permissions/.. ? ls -al /usr/local/bin/crc I'd try to remove it by hand sudo rm /usr/local/bin/crc

gbraad commented 5 months ago

INFO Using bundle path /Users/radhika.puthiyetath/.crc/cache/crc_vfkit_4.15.12_arm64.crcbundle

So an Apple Silicon machine