crc: CRC can not start on Apple M1-based machines (x86_64 emulation)
General information
- OS: macOS
- Hypervisor: Unknown
- Did you run
crc setupbefore starting it ? Yes
CRC version
CodeReady Containers version: 1.22.0+6faff76f
OpenShift version: 4.6.15 (embedded in executable)
CRC status
Machine does not exist. Use 'crc start' to create it
CRC config
- consent-telemetry : no
Host Operating System
ProductName: macOS
ProductVersion: 11.2.1
BuildVersion: 20D74
MacBook Air (M1, 2020)
Steps to reproduce
- crc setup
- crc start --log-level debug --pull-secret-file ~/Downloads/pull-secret.txt
Expected
crc is statrted
Actual
Error creating machine: Error creating the VM: Error creating machine: Error in driver during machine creation: IP address never found in dhcp leases file Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Logs
You can start crc with crc start --log-level debug to collect logs.
Please consider posting this on http://gist.github.com/ and post the link in the issue.
DEBU CodeReady Containers version: 1.22.0+6faff76f
DEBU OpenShift version: 4.6.15 (embedded in executable)
DEBU Running 'crc start'
DEBU Total memory of system is 17179869184 bytes
DEBU No new version available. The latest version is 1.22.0
INFO Checking if running as non-root
INFO Checking if podman remote executable is cached
DEBU Currently podman remote is not supported
INFO Checking if admin-helper executable is cached
DEBU Running '/Users/xxxxx/.crc/bin/admin-helper-darwin --version'
DEBU Found admin-helper-darwin version 0.0.2
DEBU admin-helper executable already cached
INFO Checking minimum RAM requirements
DEBU Total memory of system is 17179869184 bytes
INFO Checking if HyperKit is installed
DEBU Running '/Users/xxxxx/.crc/bin/hyperkit -v'
DEBU Found hyperkit version v0.20200224-44-gb54460
INFO Checking if crc-driver-hyperkit is installed
DEBU Checking if crc-driver-hyperkit is installed
DEBU Running '/Users/xxxxx/.crc/bin/crc-driver-hyperkit version'
DEBU Found crc-driver-hyperkit version 0.12.11
INFO Checking file permissions for /etc/hosts
DEBU Checking if /etc/hosts ownership/permissions need to be adjusted after crc upgrade
INFO Checking file permissions for /etc/resolver/testing
DEBU Checking file: /Users/xxxxx/.crc/machines/crc/.crc-exist
DEBU Using secret from configuration
INFO Loading bundle: crc_hyperkit_4.6.15.crcbundle ...
INFO Creating CodeReady Containers VM for OpenShift 4.6.15...
DEBU Found binary path at /Users/xxxxx/.crc/bin/crc-driver-hyperkit
DEBU Launching plugin server for driver hyperkit
DEBU Plugin server listening at address 127.0.0.1:64970
DEBU () Calling .GetVersion
DEBU Using API Version 1
DEBU () Calling .SetConfigRaw
DEBU () Calling .GetMachineName
DEBU (crc) Calling .GetMachineName
DEBU (crc) Calling .DriverName
DEBU Running pre-create checks...
DEBU (crc) Calling .PreCreateCheck
DEBU (crc) DBG | time="2021-03-03T00:41:54+08:00" level=debug msg="exe=/Users/xxxxx/.crc/bin/crc-driver-hyperkit uid=0"
DEBU (crc) Calling .GetConfigRaw
DEBU Creating machine...
DEBU (crc) Calling .Create
DEBU (crc) DBG | time="2021-03-03T00:41:54+08:00" level=debug msg="exe=/Users/xxxxx/.crc/bin/crc-driver-hyperkit uid=0"
DEBU (crc) DBG | time="2021-03-03T00:42:04+08:00" level=debug msg="exe=/Users/xxxxx/.crc/bin/crc-driver-hyperkit uid=0"
DEBU (crc) DBG | time="2021-03-03T00:42:04+08:00" level=debug msg="clean start, hyperkit pid file doesn't exist: /Users/xxxxx/.crc/machines/crc/hyperkit.pid"
DEBU (crc) DBG | time="2021-03-03T00:42:04+08:00" level=debug msg="Using hyperkit binary from /Users/xxxxx/.crc/bin/hyperkit"
DEBU (crc) DBG | time="2021-03-03T00:42:04+08:00" level=debug msg="Using UUID c3d68012-0208-11ea-9fd7-f2189899ab08"
DEBU (crc) DBG | time="2021-03-03T00:42:04+08:00" level=debug msg="Generated MAC e:f0:e3:c7:4f:be"
DEBU (crc) DBG | time="2021-03-03T00:42:04+08:00" level=debug msg="Starting with cmdline: BOOT_IMAGE=(hd0,gpt1)/ostree/rhcos-e987d143726ea61316e00306563367d1101d0b18ee608b632894143f3fbde302/vmlinuz-4.18.0-193.41.1.el8_2.x86_64 rhcos.root=crypt_rootfs random.trust_cpu=on console=tty0 console=ttyS0,115200n8 ignition.platform.id=qemu rd.luks.options=discard ostree=/ostree/boot.1/rhcos/e987d143726ea61316e00306563367d1101d0b18ee608b632894143f3fbde302/0"
DEBU (crc) DBG | time="2021-03-03T00:42:04+08:00" level=debug msg="Trying to execute /Users/xxxxx/.crc/bin/hyperkit -A -u -F /Users/xxxxx/.crc/machines/crc/hyperkit.pid -c 4 -m 9216M -s 0:0,hostbridge -s 31,lpc -s 1:0,virtio-net -U c3d68012-0208-11ea-9fd7-f2189899ab08 -s 2:0,virtio-blk,file:///Users/xxxxx/.crc/machines/crc/crc.qcow2,format=qcow -s 3,virtio-sock,guest_cid=3,path=/Users/xxxxx/.crc/machines/crc -s 4,virtio-rnd -l com1,autopty=/Users/xxxxx/.crc/machines/crc/tty,log=/Users/xxxxx/.crc/machines/crc/console-ring -f kexec,/Users/xxxxx/.crc/cache/crc_hyperkit_4.6.15/vmlinuz-4.18.0-193.41.1.el8_2.x86_64,/Users/xxxxx/.crc/cache/crc_hyperkit_4.6.15/initramfs-4.18.0-193.41.1.el8_2.x86_64.img,earlyprintk=serial BOOT_IMAGE=(hd0,gpt1)/ostree/rhcos-e987d143726ea61316e00306563367d1101d0b18ee608b632894143f3fbde302/vmlinuz-4.18.0-193.41.1.el8_2.x86_64 rhcos.root=crypt_rootfs random.trust_cpu=on console=tty0 console=ttyS0,115200n8 ignition.platform.id=qemu rd.luks.options=discard ostree=/ostree/boot.1/rhcos/e987d143726ea61316e00306563367d1101d0b18ee608b632894143f3fbde302/0"
DEBU (crc) DBG | time="2021-03-03T00:42:04+08:00" level=debug msg="exe=/Users/xxxxx/.crc/bin/crc-driver-hyperkit uid=0"
DEBU (crc) DBG | time="2021-03-03T00:42:04+08:00" level=debug msg="hyperkit pid from json: 37798"
DEBU (crc) DBG | time="2021-03-03T00:42:04+08:00" level=debug msg="Searching for e:f0:e3:c7:4f:be in /var/db/dhcpd_leases ..."
DEBU (crc) DBG | time="2021-03-03T00:42:04+08:00" level=debug msg="error: Temporary Error: open /var/db/dhcpd_leases: no such file or directory - sleeping 2s"
DEBU (crc) DBG | time="2021-03-03T00:42:06+08:00" level=debug msg="retry loop 1"
DEBU (crc) DBG | time="2021-03-03T00:42:06+08:00" level=debug msg="exe=/Users/xxxxx/.crc/bin/crc-driver-hyperkit uid=0"
DEBU (crc) DBG | time="2021-03-03T00:42:06+08:00" level=debug msg="hyperkit pid from json: 37798"
DEBU (crc) DBG | time="2021-03-03T00:42:06+08:00" level=debug msg="hyperkit pid 37798 missing from process table"
DEBU (crc) DBG | time="2021-03-03T00:42:06+08:00" level=debug msg="non-retriable error: hyperkit crashed! command line:\n hyperkit BOOT_IMAGE=(hd0,gpt1)/ostree/rhcos-e987d143726ea61316e00306563367d1101d0b18ee608b632894143f3fbde302/vmlinuz-4.18.0-193.41.1.el8_2.x86_64 rhcos.root=crypt_rootfs random.trust_cpu=on console=tty0 console=ttyS0,115200n8 ignition.platform.id=qemu rd.luks.options=discard ostree=/ostree/boot.1/rhcos/e987d143726ea61316e00306563367d1101d0b18ee608b632894143f3fbde302/0"
DEBU Making call to close driver server
DEBU (crc) Calling .Close
DEBU (crc) DBG | time="2021-03-03T00:42:06+08:00" level=debug msg="Closing plugin on server side"
DEBU Successfully made call to close driver server
DEBU Making call to close connection to plugin binary
Error creating machine: Error creating the VM: Error creating machine: Error in driver during machine creation: IP address never found in dhcp leases file Temporary Error: open /var/db/dhcpd_leases: no such file or directory
hyperkit crashed! command line:
hyperkit BOOT_IMAGE=(hd0,gpt1)/ostree/rhcos-e987d143726ea61316e00306563367d1101d0b18ee608b632894143f3fbde302/vmlinuz-4.18.0-193.41.1.el8_2.x86_64 rhcos.root=crypt_rootfs random.trust_cpu=on console=tty0 console=ttyS0,115200n8 ignition.platform.id=qemu rd.luks.options=discard ostree=/ostree/boot.1/rhcos/e987d143726ea61316e00306563367d1101d0b18ee608b632894143f3fbde302/0
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 24 (11 by maintainers)
Commits related to this issue
- preflight: macos: Add check for M1 CPUs We don't support M1 CPUs, and there are apparently issues with it, see https://github.com/code-ready/crc/issues/2047 This takes inspiration from https://githu... — committed to cfergeau/crc by cfergeau 3 years ago
- preflight: macos: Add check for M1 CPUs We don't support M1 CPUs, and there are apparently issues with it, see https://github.com/code-ready/crc/issues/2047 This takes inspiration from https://githu... — committed to cfergeau/crc by cfergeau 3 years ago
- preflight: macos: Add check for M1 CPUs We don't support M1 CPUs, and there are apparently issues with it, see https://github.com/code-ready/crc/issues/2047 This takes inspiration from https://githu... — committed to cfergeau/crc by cfergeau 3 years ago
- preflight: macos: Add check for M1 CPUs We don't support M1 CPUs, and there are apparently issues with it, see https://github.com/code-ready/crc/issues/2047 This takes inspiration from https://githu... — committed to cfergeau/crc by cfergeau 3 years ago
- preflight: macos: Add check for M1 CPUs We don't support M1 CPUs, and there are apparently issues with it, see https://github.com/code-ready/crc/issues/2047 This takes inspiration from https://githu... — committed to cfergeau/crc by cfergeau 3 years ago
- preflight: macos: Add check for M1 CPUs We don't support M1 CPUs, and there are apparently issues with it, see https://github.com/code-ready/crc/issues/2047 This takes inspiration from https://githu... — committed to cfergeau/crc by cfergeau 3 years ago
- preflight: macos: Add check for M1 CPUs We don't support M1 CPUs, and there are apparently issues with it, see https://github.com/code-ready/crc/issues/2047 This takes inspiration from https://githu... — committed to cfergeau/crc by cfergeau 3 years ago
- preflight: macos: Add check for M1 CPUs We don't support M1 CPUs, and there are apparently issues with it, see https://github.com/code-ready/crc/issues/2047 This takes inspiration from https://githu... — committed to crc-org/crc by cfergeau 3 years ago
See https://github.com/code-ready/crc/issues/2480#issuecomment-1030887915 Very rough podman-only dev preview (no OpenShift for now).
My colleague pointed out that you are using a M1 macbook,
crcis not tested/supported on this CPU, I’m afraid thishyperkitissue is related to the non-x86 arch.