Skip to content

[BUG] unable to establish ssh connection - command results: handshake failed: read tcp 127.0.0.1:62297->127.0.0.1:2222: read: connection reset by peer #3410

Open
@ahaffar

Description

General information

  • OS: macOS
  • Hypervisor: vfkit
  • Did you run crc setup before starting it (Yes/No)? Yes
  • Running CRC on: Laptop

CRC version

# Put `crc version` output here
haffar@Ahmeds-MacBook-Pro ~ % crc version 
CRC version: 2.10.2+065f0741
OpenShift version: 4.11.7
Podman version: 4.2.0
haffar@Ahmeds-MacBook-Pro ~ % 

CRC status

# Put `crc status --log-level debug` output here

CRC config

# Put `crc config view` output here
haffar@Ahmeds-MacBook-Pro ~ % crc status
CRC VM:          Stopped
OpenShift:       Stopped (v4.11.7)
RAM Usage:       0B of 0B
Disk Usage:      0B of 0B (Inside the CRC VM)
Cache Usage:     36.71GB
Cache Directory: /Users/haffar/.crc/cache
haffar@Ahmeds-MacBook-Pro ~ % 

Host Operating System

haffar@Ahmeds-MacBook-Pro ~ % sw_vers
ProductName:	macOS
ProductVersion:	11.7
BuildVersion:	20G817
haffar@Ahmeds-MacBook-Pro ~ % 

Steps to reproduce

  1. CRC start

Expected

Vm is running

Actual

VM is not running

Logs

Before gather the logs try following if that fix your issue -- No

$ crc delete -f
$ crc cleanup
$ crc setup
$ crc start --log-level debug
#crc start --log-level debuf
haffar@Ahmeds-MacBook-Pro ~ % crc start --log-level debug
DEBU CRC version: 2.10.2+065f0741
DEBU OpenShift version: 4.11.7
DEBU Podman version: 4.2.0
DEBU Running 'crc start'
DEBU Total memory of system is 17179869184 bytes
DEBU No new version available. The latest version is 2.10.2
DEBU Checking file: /Users/haffar/.crc/machines/crc/.crc-exist
INFO Checking if running as non-root
INFO Checking if crc-admin-helper executable is cached
INFO Checking for obsolete admin-helper executable
DEBU Checking if an older admin-helper executable is installed
DEBU No older admin-helper executable found
INFO Checking if running on a supported CPU architecture
DEBU GOARCH is arm64 GOOS is darwin
INFO Checking minimum RAM requirements
DEBU Total memory of system is 17179869184 bytes
INFO Checking if crc executable symlink exists
INFO Checking if running emulated on a M1 CPU
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}''
DEBU Checking file: /Users/haffar/.crc/machines/crc/.crc-exist
INFO Loading bundle: crc_vfkit_4.11.7_arm64...
DEBU Cannot load secret from configuration: empty path
DEBU Using secret from keyring
INFO Creating CRC VM for openshift 4.11.7...
DEBU Running pre-create checks...
DEBU Creating machine...
DEBU /Users/haffar/.crc/machines/crc/crc.img is already 33285996544 bytes
INFO Generating new SSH key pair...
INFO Generating new password for the kubeadmin user
DEBU Created /Users/haffar/.crc/machines/crc/.crc-exist
DEBU Machine successfully created
DEBU Checking file: /Users/haffar/.crc/machines/crc/.crc-exist
INFO Starting CRC VM for openshift 4.11.7...
DEBU Updating CRC VM configuration
DEBU Running 'sw_vers -productVersion'
DEBU Running /Applications/Red Hat OpenShift Local.app/Contents/Resources/vfkit --cpus 4 --memory 13000 --kernel /Users/haffar/.crc/cache/crc_vfkit_4.11.7_arm64/vmlinuz-5.14.0-70.26.1.el9_0.aarch64 --initrd /Users/haffar/.crc/cache/crc_vfkit_4.11.7_arm64/initramfs-5.14.0-70.26.1.el9_0.aarch64.img --kernel-cmdline console=hvc0 BOOT_IMAGE=(hd0,gpt3)/ostree/rhcos-caefb4ee863008487ed96ac7f0ea85354ea877e6f9636f87ad1b10c20102aea8/vmlinuz-5.14.0-70.26.1.el9_0.aarch64 random.trust_cpu=on ignition.platform.id=qemu ostree=/ostree/boot.0/rhcos/caefb4ee863008487ed96ac7f0ea85354ea877e6f9636f87ad1b10c20102aea8/0 root=UUID=3873ab67-a779-4b5a-9a47-6d12eea58372 rw rootflags=prjquota boot=UUID=49471370-5a0a-4a7f-ab51-c3b1a17380fa --device virtio-serial,logFilePath=/Users/haffar/.crc/machines/crc/vfkit.log --device virtio-rng --device virtio-blk,path=/Users/haffar/.crc/machines/crc/crc.img --device virtio-vsock,port=1024,socketURL=/Users/haffar/.crc/tap.sock
DEBU time="2022-11-09T21:34:31+03:00" level=info msg="&{4 13000 /Users/haffar/.crc/cache/crc_vfkit_4.11.7_arm64/vmlinuz-5.14.0-70.26.1.el9_0.aarch64 console=hvc0 BOOT_IMAGE=(hd0,gpt3)/ostree/rhcos-caefb4ee863008487ed96ac7f0ea85354ea877e6f9636f87ad1b10c20102aea8/vmlinuz-5.14.0-70.26.1.el9_0.aarch64 random.trust_cpu=on ignition.platform.id=qemu ostree=/ostree/boot.0/rhcos/caefb4ee863008487ed96ac7f0ea85354ea877e6f9636f87ad1b10c20102aea8/0 root=UUID=3873ab67-a779-4b5a-9a47-6d12eea58372 rw rootflags=prjquota boot=UUID=49471370-5a0a-4a7f-ab51-c3b1a17380fa /Users/haffar/.crc/cache/crc_vfkit_4.11.7_arm64/initramfs-5.14.0-70.26.1.el9_0.aarch64.img [virtio-serial,logFilePath=/Users/haffar/.crc/machines/crc/vfkit.log virtio-rng virtio-blk,path=/Users/haffar/.crc/machines/crc/crc.img virtio-vsock,port=1024,socketURL=/Users/haffar/.crc/tap.sock]}"
DEBU time="2022-11-09T21:34:31+03:00" level=info msg="boot parameters:"
DEBU time="2022-11-09T21:34:31+03:00" level=info msg="\tkernel: /Users/haffar/.crc/cache/crc_vfkit_4.11.7_arm64/vmlinuz-5.14.0-70.26.1.el9_0.aarch64"
DEBU time="2022-11-09T21:34:31+03:00" level=info msg="\tkernel command line:console=hvc0 BOOT_IMAGE=(hd0,gpt3)/ostree/rhcos-caefb4ee863008487ed96ac7f0ea85354ea877e6f9636f87ad1b10c20102aea8/vmlinuz-5.14.0-70.26.1.el9_0.aarch64 random.trust_cpu=on ignition.platform.id=qemu ostree=/ostree/boot.0/rhcos/caefb4ee863008487ed96ac7f0ea85354ea877e6f9636f87ad1b10c20102aea8/0 root=UUID=3873ab67-a779-4b5a-9a47-6d12eea58372 rw rootflags=prjquota boot=UUID=49471370-5a0a-4a7f-ab51-c3b1a17380fa"
DEBU time="2022-11-09T21:34:31+03:00" level=info msg="\tinitrd: /Users/haffar/.crc/cache/crc_vfkit_4.11.7_arm64/initramfs-5.14.0-70.26.1.el9_0.aarch64.img"
DEBU time="2022-11-09T21:34:31+03:00" level=info
DEBU time="2022-11-09T21:34:31+03:00" level=info msg="virtual machine parameters:"
DEBU time="2022-11-09T21:34:31+03:00" level=info msg="\tvCPUs: 4"
DEBU time="2022-11-09T21:34:31+03:00" level=info msg="\tmemory: 13000 MiB"
DEBU time="2022-11-09T21:34:31+03:00" level=info
DEBU time="2022-11-09T21:34:31+03:00" level=info msg="Adding virtio-serial device (logFile: /Users/haffar/.crc/machines/crc/vfkit.log)"
DEBU time="2022-11-09T21:34:31+03:00" level=info msg="Adding virtio-rng device"
DEBU time="2022-11-09T21:34:31+03:00" level=info msg="Adding virtio-blk device (imagePath: /Users/haffar/.crc/machines/crc/crc.img)"
DEBU time="2022-11-09T21:34:31+03:00" level=info msg="Adding virtio-vsock device"
DEBU time="2022-11-09T21:34:31+03:00" level=info msg="virtual machine is running"
DEBU time="2022-11-09T21:34:31+03:00" level=info msg="Exposing vsock port 1024 on /Users/haffar/.crc/tap.sock"
DEBU time="2022-11-09T21:34:31+03:00" level=info msg="waiting for VM to stop"
DEBU Waiting for machine to be running, this may take a few minutes...
DEBU retry loop: attempt 0
DEBU Machine is up and running!
INFO CRC instance is running with IP 127.0.0.1
DEBU Waiting until ssh is available
DEBU retry loop: attempt 0
DEBU Running SSH command: exit 0
DEBU Using ssh private keys: [/Users/haffar/.crc/machines/crc/id_ecdsa /Users/haffar/.crc/cache/crc_vfkit_4.11.7_arm64/id_ecdsa_crc]
DEBU SSH command results: err: ssh: handshake failed: read tcp 127.0.0.1:62297->127.0.0.1:2222: read: connection reset by peer, output:
DEBU error: Temporary error: ssh command error:
command : exit 0
err     : ssh: handshake failed: read tcp 127.0.0.1:62297->127.0.0.1:2222: read: connection reset by peer
 - sleeping 1s
DEBU retry loop: attempt 1
DEBU Running SSH command: exit 0
DEBU Using ssh private keys: [/Users/haffar/.crc/machines/crc/id_ecdsa /Users/haffar/.crc/cache/crc_vfkit_4.11.7_arm64/id_ecdsa_crc]
^C

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions