Skip to content

crc setup fails on "managed" M1 Mac #4838

@adietish

Description

@adietish

General information

I am using a "managed" M1 Mac, where I cannot change the firewall rules. crc setup fails to launch the daemon.

Operating System

macOS

Hypervisor

vfkit

Did you run crc setup before crc start?

yes

Running on

Laptop

Steps to reproduce

The following steps were run with 2.47 but it behaved the same with 2.52 for me.

Steps:

  1. ASSERT: have a clean env, run crc cleanup if needed
  2. EXEC: download crc pkg, run the installer
  3. EXEC: run crc setup

CRC version

WARN A new version (2.52.0) has been published on https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.52.0/crc-macos-installer.pkg
CRC version: 2.47.0+457b65
OpenShift version: 4.17.14
MicroShift version: 4.17.14

(Same results when using crc 2.52, 2.49, 2.47)

CRC status

DEBU CRC version: 2.47.0+457b65
DEBU OpenShift version: 4.17.14
DEBU MicroShift version: 4.17.14
DEBU Running 'crc status'
Machine does not exist. Use 'crc start' to create it

CRC config

- consent-telemetry                     : no
- disk-size                             : 35
- memory                                : 15520
- no-proxy                              : local,169.254/16

Host Operating System

ProductName:		macOS
ProductVersion:		15.5
BuildVersion:		24F74

Expected behavior

I should be able to setup and run crc on my "managed" M1 Mac.

Actual behavior

❯ crc setup --log-level debug
DEBU CRC version: 2.47.0+457b65
DEBU OpenShift version: 4.17.14
DEBU MicroShift version: 4.17.14
DEBU Running 'crc setup'
INFO Using bundle path /Users/adietish/.crc/cache/crc_vfkit_4.17.14_arm64.crcbundle
INFO Checking if running macOS version >= 13.x
DEBU Running 'sw_vers -productVersion'
DEBU sw_vers -productVersion is: 15.5
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
DEBU GOARCH is arm64 GOOS is darwin
INFO Checking if crc executable symlink exists
DEBU lstat /Volumes/T7/.crc/bin/crc: no such file or directory
INFO Creating symlink for crc executable
DEBU symlinking /usr/local/crc/crc to /Users/adietish/.crc/bin/crc
INFO Checking minimum RAM requirements
DEBU Total memory of system is 34359738368 bytes
INFO Check if Podman binary exists in: /Users/adietish/.crc/bin/oc
INFO Checking if running emulated on Apple silicon
INFO Checking if vfkit is installed
INFO Checking if CRC bundle is extracted in '$HOME/.crc'
INFO Checking if /Users/adietish/.crc/cache/crc_vfkit_4.17.14_arm64.crcbundle exists
DEBU error getting bundle info for crc_vfkit_4.17.14_arm64.crcbundle: could not find cached bundle info in /Users/adietish/.crc/cache/crc_vfkit_4.17.14_arm64: stat /Users/adietish/.crc/cache/crc_vfkit_4.17.14_arm64: no such file or directory
DEBU could not find cached bundle info in /Users/adietish/.crc/cache/crc_vfkit_4.17.14_arm64: stat /Users/adietish/.crc/cache/crc_vfkit_4.17.14_arm64: no such file or directory
INFO Getting bundle for the CRC executable
DEBU Ensuring directory /Users/adietish/.crc/cache exists
INFO Downloading bundle: /Users/adietish/.crc/cache/crc_vfkit_4.17.14_arm64.crcbundle...
DEBU Got valid signature from key id: 199E2F91FD431D51
DEBU Verified bundle hashes:
c87b8e49c82404e1a93570caa048b7789a001ff1011cddf48e8715ef0267782b  crc_hyperv_4.17.14_amd64.crcbundle
c311840a532b7ccdeb8c48b1f3cc5f9e0d30b9dee0aad512fecd8fdf0fcc36f6  crc_libvirt_4.17.14_amd64.crcbundle
4b6c592bfa145cc74495b816801ead3a4bb557a10f5c0ee6bcd7af9945d2b544  crc_vfkit_4.17.14_amd64.crcbundle
a7bc5a98d6b548e71da4cd57a513c34088e9228b01e03be4ea8dd74024614512  crc_vfkit_4.17.14_arm64.crcbundle
DEBU Downloading https://mirror.openshift.com/pub/openshift-v4/clients/crc/bundles/openshift/4.17.14/crc_vfkit_4.17.14_arm64.crcbundle to /Users/adietish/.crc/cache/crc_vfkit_4.17.14_arm64.crcbundle
4.86 GiB / 4.86 GiB [--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% 1.71 MiB/s
DEBU Download saved to /Users/adietish/.crc/cache/crc_vfkit_4.17.14_arm64.crcbundle
INFO Uncompressing /Users/adietish/.crc/cache/crc_vfkit_4.17.14_arm64.crcbundle
DEBU Uncompressing /Users/adietish/.crc/cache/crc_vfkit_4.17.14_arm64.crcbundle to /Users/adietish/.crc/cache/tmp-extract
crc.img:  31.00 GiB / 31.00 GiB [-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00%
oc:  125.37 MiB / 125.37 MiB [----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00%
DEBU retry loop: attempt 0
INFO Checking if old launchd config for tray and/or daemon exists
INFO Checking if crc daemon plist file is present and loaded
DEBU File not found: /Users/adietish/Library/LaunchAgents/com.redhat.crc.daemon.plist: stat /Users/adietish/Library/LaunchAgents/com.redhat.crc.daemon.plist: no such file or directory
INFO Adding crc daemon plist file and loading it
DEBU Creating plist for com.redhat.crc.daemon
DEBU Running 'launchctl load -w /Users/adietish/Library/LaunchAgents/com.redhat.crc.daemon.plist'
DEBU Running 'launchctl stop com.redhat.crc.daemon'
DEBU Running 'launchctl start com.redhat.crc.daemon'
DEBU retry loop: attempt 0
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU retry loop: attempt 1
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU retry loop: attempt 2
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU retry loop: attempt 3
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU retry loop: attempt 4
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU retry loop: attempt 5
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU retry loop: attempt 6
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU retry loop: attempt 7
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU RetryAfter timeout after 8 tries
Temporary error: daemon is not running yet (x8)

If I then run crc start things fail, too, complaining that the daemon is not running:

DEBU CRC version: 2.47.0+457b65
DEBU OpenShift version: 4.17.14
DEBU MicroShift version: 4.17.14
DEBU Running 'crc start'
DEBU Total memory of system is 34359738368 bytes
WARN A new version (2.52.0) has been published on https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.52.0/crc-macos-installer.pkg
DEBU file not found: /Users/adietish/.crc/machines/crc/.crc-exist
Is 'crc daemon' running? Cannot reach daemon API: Get "http://unix/api/version": dial unix /Users/adietish/.crc/crc-http.sock: connect: connection refused

If I then manually launch the daemon in a separate shell, crc start is stuck creating the machine:

DEBU CRC version: 2.47.0+457b65
DEBU OpenShift version: 4.17.14
DEBU MicroShift version: 4.17.14
DEBU Running 'crc start'
DEBU Total memory of system is 34359738368 bytes
WARN A new version (2.52.0) has been published on https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.52.0/crc-macos-installer.pkg
DEBU file not found: /Users/adietish/.crc/machines/crc/.crc-exist
INFO Using bundle path /Users/adietish/.crc/cache/crc_vfkit_4.17.14_arm64.crcbundle
INFO Checking if running macOS version >= 13.x
DEBU Running 'sw_vers -productVersion'
DEBU sw_vers -productVersion is: 15.5
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
DEBU GOARCH is arm64 GOOS is darwin
INFO Checking if crc executable symlink exists
INFO Checking minimum RAM requirements
DEBU Total memory of system is 34359738368 bytes
INFO Check if Podman binary exists in: /Users/adietish/.crc/bin/oc
INFO Checking if running emulated on Apple silicon
INFO Checking if vfkit is installed
INFO Checking if old launchd config for tray and/or daemon exists
INFO Checking if crc daemon plist file is present and loaded
DEBU Running 'bash -c launchctl list | grep com.redhat.crc.daemon | awk '{print $1}''
INFO Checking SSH port availability
DEBU file not found: /Users/adietish/.crc/machines/crc/.crc-exist
INFO Loading bundle: crc_vfkit_4.17.14_arm64...
DEBU Cannot load secret from configuration: empty path
DEBU Using secret from keyring
INFO Creating CRC VM for OpenShift 4.17.14...
DEBU Running pre-create checks...
DEBU Creating machine...

CRC Logs

I did all the delete and cleanup before hand.

Additional context

No response

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

Status

Work In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions