-
-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to start colima ssh connection refused #172
Comments
It seems you have an incorrect version of qemu installed. Most likely an x86 version. Can you |
thanks @abiosoft I did that and now I don't have the qemu binary in the path: |
yeah, re-install it with |
that is what I did, but I dont have a "qemu-system-x86_64" binary now just:
|
@kbowerma you're on an m1 device, so that is expected. If it still fails, explicitly set the arch to aarch64 with |
thanks it looks like it can not find aarch64 firmware.
|
This is an entirely new error for me. Do you have any other version of qemu installed outside of brew? |
Not that I am aware of. but I did have docker desktop running at the time, so I stopped that and did a reinstall. But now I do see the qemu-system-aarch binary:
My Docker Desktop was early M1 trial so I wonder if that has something to do with it. |
can you try this to see if qemu is installed via a custom brew tap?
|
Doesn't look like it:
|
This looks similar to the upstream issue lima-vm/lima#543 |
I have this problem as well, but it also occurs just with |
resolved my lima issue and colima is working excellently now — thanks for having developed it! |
I'm facing similar issue. Using mac M1, freshly installed colima and docker via brew. Here's the error log output.
I tried reinstalling colima, deleting .lima and .colima folders, everything. It still fails with |
When I try with {"level":"warning","msg":"local user \"mani.kancharla\" is not a valid Linux username (must match \"^[a-z_][a-z0-9_-]*$\"); using \"lima\" username instead","time":"2022-07-07T13:08:10+05:30"}
{"level":"debug","msg":"firmware candidates = [/Users/mani.kancharla/.local/share/qemu/edk2-aarch64-code.fd /Users/mani.kancharla/.colima/_wrapper/4e1b408f843d1c63afbbdcf80c40e4c88d33509f/share/qemu/edk2-aarch64-code.fd /usr/share/AAVMF/AAVMF_CODE.fd /usr/share/qemu-efi-aarch64/QEMU_EFI.fd]","time":"2022-07-07T13:08:11+05:30"}
{"level":"debug","msg":"OpenSSH version 8.6.1 detected","time":"2022-07-07T13:08:11+05:30"}
{"level":"debug","msg":"AES accelerator seems available, prioritizing [email protected] and [email protected]","time":"2022-07-07T13:08:11+05:30"}
{"level":"info","msg":"Starting QEMU (hint: to watch the boot progress, see \"/Users/mani.kancharla/.lima/colima/serial.log\")","time":"2022-07-07T13:08:12+05:30"}
{"level":"debug","msg":"qCmd.Args: [/Users/mani.kancharla/.colima/_wrapper/4e1b408f843d1c63afbbdcf80c40e4c88d33509f/bin/qemu-system-aarch64 -m 2048 -cpu cortex-a72 -machine virt,accel=tcg,highmem=off -smp 2,sockets=1,cores=2,threads=1 -drive if=pflash,format=raw,readonly=on,file=/Users/mani.kancharla/.colima/_wrapper/4e1b408f843d1c63afbbdcf80c40e4c88d33509f/share/qemu/edk2-aarch64-code.fd -boot order=d,splash-time=0,menu=on -drive file=/Users/mani.kancharla/.lima/colima/basedisk,media=cdrom,readonly=on -drive file=/Users/mani.kancharla/.lima/colima/diffdisk,if=virtio -cdrom /Users/mani.kancharla/.lima/colima/cidata.iso -netdev user,id=net0,net=192.168.5.0/24,dhcpstart=192.168.5.15,hostfwd=tcp:127.0.0.1:56191-:22 -device virtio-net-pci,netdev=net0,mac=52:55:55:a0:15:8b -device virtio-rng-pci -display none -vga none -device ramfb -device qemu-xhci,id=usb-bus -device usb-kbd,bus=usb-bus.0 -device usb-mouse,bus=usb-bus.0 -parallel none -chardev socket,id=char-serial,path=/Users/mani.kancharla/.lima/colima/serial.sock,server=on,wait=off,logfile=/Users/mani.kancharla/.lima/colima/serial.log -serial chardev:char-serial -chardev socket,id=char-qmp,path=/Users/mani.kancharla/.lima/colima/qmp.sock,server=on,wait=off -qmp chardev:char-qmp -name lima-colima -pidfile /Users/mani.kancharla/.lima/colima/qemu.pid]","time":"2022-07-07T13:08:12+05:30"}
{"level":"info","msg":"Waiting for the essential requirement 1 of 5: \"ssh\"","time":"2022-07-07T13:08:12+05:30"}
{"level":"debug","msg":"executing script \"ssh\"","time":"2022-07-07T13:08:12+05:30"}
{"level":"debug","msg":"executing ssh for script \"ssh\": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/mani.kancharla/.lima/_config/user\" -o IdentityFile=\"/Users/mani.kancharla/.ssh/id_rsa\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^[email protected],[email protected]\" -o User=lima -o ControlMaster=auto -o ControlPath=\"/Users/mani.kancharla/.lima/colima/ssh.sock\" -o ControlPersist=5m -p 56191 127.0.0.1 -- /bin/bash]","time":"2022-07-07T13:08:12+05:30"}
{"level":"debug","msg":"stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\": exit status 255","time":"2022-07-07T13:09:27+05:30"}
{"level":"info","msg":"Waiting for the essential requirement 1 of 5: \"ssh\"","time":"2022-07-07T13:09:37+05:30"}
{"level":"debug","msg":"executing script \"ssh\"","time":"2022-07-07T13:09:37+05:30"}
{"level":"debug","msg":"executing ssh for script \"ssh\": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/mani.kancharla/.lima/_config/user\" -o IdentityFile=\"/Users/mani.kancharla/.ssh/id_rsa\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^[email protected],[email protected]\" -o User=lima -o ControlMaster=auto -o ControlPath=\"/Users/mani.kancharla/.lima/colima/ssh.sock\" -o ControlPersist=5m -p 56191 127.0.0.1 -- /bin/bash]","time":"2022-07-07T13:09:37+05:30"}
{"level":"debug","msg":"stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\": exit status 255","time":"2022-07-07T13:10:52+05:30"}
{"level":"info","msg":"Waiting for the essential requirement 1 of 5: \"ssh\"","time":"2022-07-07T13:11:02+05:30"}
{"level":"debug","msg":"executing script \"ssh\"","time":"2022-07-07T13:11:02+05:30"}
{"level":"debug","msg":"executing ssh for script \"ssh\": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/mani.kancharla/.lima/_config/user\" -o IdentityFile=\"/Users/mani.kancharla/.ssh/id_rsa\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^[email protected],[email protected]\" -o User=lima -o ControlMaster=auto -o ControlPath=\"/Users/mani.kancharla/.lima/colima/ssh.sock\" -o ControlPersist=5m -p 56191 127.0.0.1 -- /bin/bash]","time":"2022-07-07T13:11:02+05:30"}
{"level":"debug","msg":"stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\": exit status 255","time":"2022-07-07T13:12:17+05:30"}
{"level":"info","msg":"Waiting for the essential requirement 1 of 5: \"ssh\"","time":"2022-07-07T13:12:27+05:30"}
{"level":"debug","msg":"executing script \"ssh\"","time":"2022-07-07T13:12:27+05:30"}
{"level":"debug","msg":"executing ssh for script \"ssh\": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/mani.kancharla/.lima/_config/user\" -o IdentityFile=\"/Users/mani.kancharla/.ssh/id_rsa\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^[email protected],[email protected]\" -o User=lima -o ControlMaster=auto -o ControlPath=\"/Users/mani.kancharla/.lima/colima/ssh.sock\" -o ControlPersist=5m -p 56191 127.0.0.1 -- /bin/bash]","time":"2022-07-07T13:12:27+05:30"}
{"level":"debug","msg":"stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\": exit status 255","time":"2022-07-07T13:13:42+05:30"}
{"level":"info","msg":"Waiting for the essential requirement 1 of 5: \"ssh\"","time":"2022-07-07T13:13:52+05:30"}
{"level":"debug","msg":"executing script \"ssh\"","time":"2022-07-07T13:13:52+05:30"}
{"level":"debug","msg":"executing ssh for script \"ssh\": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/mani.kancharla/.lima/_config/user\" -o IdentityFile=\"/Users/mani.kancharla/.ssh/id_rsa\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^[email protected],[email protected]\" -o User=lima -o ControlMaster=auto -o ControlPath=\"/Users/mani.kancharla/.lima/colima/ssh.sock\" -o ControlPersist=5m -p 56191 127.0.0.1 -- /bin/bash]","time":"2022-07-07T13:13:52+05:30"}
{"level":"debug","msg":"stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\": exit status 255","time":"2022-07-07T13:15:07+05:30"}
{"level":"info","msg":"Waiting for the essential requirement 1 of 5: \"ssh\"","time":"2022-07-07T13:15:17+05:30"}
{"level":"debug","msg":"executing script \"ssh\"","time":"2022-07-07T13:15:17+05:30"}
{"level":"debug","msg":"executing ssh for script \"ssh\": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/mani.kancharla/.lima/_config/user\" -o IdentityFile=\"/Users/mani.kancharla/.ssh/id_rsa\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^[email protected],[email protected]\" -o User=lima -o ControlMaster=auto -o ControlPath=\"/Users/mani.kancharla/.lima/colima/ssh.sock\" -o ControlPersist=5m -p 56191 127.0.0.1 -- /bin/bash]","time":"2022-07-07T13:15:17+05:30"}
{"level":"debug","msg":"stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\": exit status 255","time":"2022-07-07T13:16:32+05:30"}
{"level":"info","msg":"Waiting for the essential requirement 1 of 5: \"ssh\"","time":"2022-07-07T13:16:42+05:30"}
{"level":"debug","msg":"executing script \"ssh\"","time":"2022-07-07T13:16:42+05:30"}
{"level":"debug","msg":"executing ssh for script \"ssh\": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/mani.kancharla/.lima/_config/user\" -o IdentityFile=\"/Users/mani.kancharla/.ssh/id_rsa\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^[email protected],[email protected]\" -o User=lima -o ControlMaster=auto -o ControlPath=\"/Users/mani.kancharla/.lima/colima/ssh.sock\" -o ControlPersist=5m -p 56191 127.0.0.1 -- /bin/bash]","time":"2022-07-07T13:16:42+05:30"}
{"level":"debug","msg":"stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\": exit status 255","time":"2022-07-07T13:17:57+05:30"}
{"level":"info","msg":"Waiting for the essential requirement 1 of 5: \"ssh\"","time":"2022-07-07T13:18:07+05:30"}
{"level":"debug","msg":"executing script \"ssh\"","time":"2022-07-07T13:18:07+05:30"}
{"level":"debug","msg":"executing ssh for script \"ssh\": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/mani.kancharla/.lima/_config/user\" -o IdentityFile=\"/Users/mani.kancharla/.ssh/id_rsa\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^[email protected],[email protected]\" -o User=lima -o ControlMaster=auto -o ControlPath=\"/Users/mani.kancharla/.lima/colima/ssh.sock\" -o ControlPersist=5m -p 56191 127.0.0.1 -- /bin/bash]","time":"2022-07-07T13:18:07+05:30"}
{"level":"debug","msg":"stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\": exit status 255","time":"2022-07-07T13:19:22+05:30"}
{"level":"info","msg":"Waiting for the essential requirement 1 of 5: \"ssh\"","time":"2022-07-07T13:19:32+05:30"}
{"level":"debug","msg":"executing script \"ssh\"","time":"2022-07-07T13:19:32+05:30"}
{"level":"debug","msg":"executing ssh for script \"ssh\": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/mani.kancharla/.lima/_config/user\" -o IdentityFile=\"/Users/mani.kancharla/.ssh/id_rsa\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^[email protected],[email protected]\" -o User=lima -o ControlMaster=auto -o ControlPath=\"/Users/mani.kancharla/.lima/colima/ssh.sock\" -o ControlPersist=5m -p 56191 127.0.0.1 -- /bin/bash]","time":"2022-07-07T13:19:32+05:30"}
{"level":"debug","msg":"stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\": exit status 255","time":"2022-07-07T13:20:47+05:30"}
{"level":"info","msg":"Waiting for the essential requirement 1 of 5: \"ssh\"","time":"2022-07-07T13:20:57+05:30"}
{"level":"debug","msg":"executing script \"ssh\"","time":"2022-07-07T13:20:57+05:30"}
{"level":"debug","msg":"executing ssh for script \"ssh\": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/mani.kancharla/.lima/_config/user\" -o IdentityFile=\"/Users/mani.kancharla/.ssh/id_rsa\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^[email protected],[email protected]\" -o User=lima -o ControlMaster=auto -o ControlPath=\"/Users/mani.kancharla/.lima/colima/ssh.sock\" -o ControlPersist=5m -p 56191 127.0.0.1 -- /bin/bash]","time":"2022-07-07T13:20:57+05:30"}
{"level":"debug","msg":"stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"kex_exchange_identification: read: Connection reset by peer\\r\\nConnection reset by 127.0.0.1 port 56191\\r\\n\": exit status 255","time":"2022-07-07T13:22:13+05:30"}
{"level":"info","msg":"Waiting for the essential requirement 1 of 5: \"ssh\"","time":"2022-07-07T13:22:23+05:30"}
{"level":"debug","msg":"executing script \"ssh\"","time":"2022-07-07T13:22:23+05:30"}
{"level":"debug","msg":"executing ssh for script \"ssh\": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/mani.kancharla/.lima/_config/user\" -o IdentityFile=\"/Users/mani.kancharla/.ssh/id_rsa\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^[email protected],[email protected]\" -o User=lima -o ControlMaster=auto -o ControlPath=\"/Users/mani.kancharla/.lima/colima/ssh.sock\" -o ControlPersist=5m -p 56191 127.0.0.1 -- /bin/bash]","time":"2022-07-07T13:22:23+05:30"} |
@KManiKumarReddy you are most likely running x86_64 version of brew and utilising rosetta. You should ensure brew is running on native aarch64. Likely related to #204 (comment). |
Hi, I am trying to install Lima using this confluence steps.I have Mac M1 chip on machine. Error: colima: Failed to download resource "colima" nikhila.janga@m-nikhilaJanga-SR10362 lima_machines % sudo brew install --head colima |
I have same issue too,
ha.stderr.log: {"comment":"main file \"/Users/even/.lima/colima/lima.yaml\"","error":"[111:1] unknown field \"colimaState\"\n\u003e 111 |#!/usr/bin/env sh\n 112 | \n 113 | FILE=/etc/network/interfaces\n 114 | \n 115 | written() (\n 116 | grep -q \"^auto ${1}\" \"${FILE}\"\n 117 | )\n 118 | \n 119 | vmnet() (\n 120 | IFACE=\"\"\n 121 | \n 122 | if written $IFACE; then exit 0; fi\n 123 | \n 124 | cat \u003e\u003e$FILE \u003c\u003cEOF\n 125 | auto $IFACE\n 126 | iface $IFACE inet dhcp\n 127 | \n 128 | EOF\n 129 | )\n 130 | \n 131 | gvproxy() (\n 132 | IFACE=$(ifconfig -a | grep 'HWaddr 5A:94:EF:5C:64:B9' | awk -F' ' '{print $1}')\n 133 | \n 134 | if written $IFACE; then exit; fi\n 135 | \n 136 | cat \u003e\u003e$FILE \u003c\u003cEOF\n 137 | auto $IFACE\n 138 | iface $IFACE inet static\n 139 | address 192.168.107.2\n 140 | netmask 255.255.255.0\n 141 | gateway 192.168.107.1\n 142 | metric 200\n 143 | \n 144 | EOF\n 145 | )\n 146 | \n 147 | \n 148 | gvproxy\n 149 | service networking restart\n 150 | colimaState: Y3B1OiAyCmRpc2s6IDYwCm1lbW9yeTogMgphcmNoOiB4ODZfNjQKbW91bnRUeXBlOiBzc2hmcwpydW50aW1lOiBkb2NrZXIKa3ViZXJuZXRlczoKICAgIGVuYWJsZWQ6IGZhbHNlCiAgICB2ZXJzaW9uOiB2MS4yMy42K2szczEKICAgIGluZ3Jlc3M6IGZhbHNlCg==\n ^\n","level":"warning","msg":"Non-strict YAML is deprecated and will be unsupported in a future version of Lima","time":"2022-09-23T20:33:21+08:00"}
{"comment":"main file \"/Users/even/.lima/colima/lima.yaml\"","error":"[111:1] unknown field \"colimaState\"\n\u003e 111 | #!/usr/bin/env sh\n 112 | \n 113 | FILE=/etc/network/interfaces\n 114 | \n 115 | written() (\n 116 | grep -q \"^auto ${1}\" \"${FILE}\"\n 117 | )\n 118 | \n 119 | vmnet() (\n 120 | IFACE=\"\"\n 121 | \n 122 | if written $IFACE; then exit 0; fi\n 123 | \n 124 | cat \u003e\u003e$FILE \u003c\u003cEOF\n 125 | auto $IFACE\n 126 | iface $IFACE inet dhcp\n 127 | \n 128 | EOF\n 129 | )\n 130 | \n 131 | gvproxy() (\n 132 | IFACE=$(ifconfig -a | grep 'HWaddr 5A:94:EF:5C:64:B9' | awk -F' ' '{print $1}')\n 133 | \n 134 | if written $IFACE; then exit; fi\n 135 | \n 136 | cat \u003e\u003e$FILE \u003c\u003cEOF\n 137 | auto $IFACE\n 138 | iface $IFACE inet static\n 139 | address 192.168.107.2\n 140 | netmask 255.255.255.0\n 141 | gateway 192.168.107.1\n 142 | metric 200\n 143 | \n 144 | EOF\n 145 | )\n 146 | \n 147 | \n 148 | gvproxy\n 149 | service networking restart\n 150 | colimaState: Y3B1OiAyCmRpc2s6IDYwCm1lbW9yeTogMgphcmNoOiB4ODZfNjQKbW91bnRUeXBlOiBzc2hmcwpydW50aW1lOiBkb2NrZXIKa3ViZXJuZXRlczoKICAgIGVuYWJsZWQ6IGZhbHNlCiAgICB2ZXJzaW9uOiB2MS4yMy42K2szczEKICAgIGluZ3Jlc3M6IGZhbHNlCg==\n ^\n","level":"warning","msg":"Non-strict YAML is deprecated and will be unsupported in a future version of Lima","time":"2022-09-23T20:33:21+08:00"}
{"level":"debug","msg":"Creating iso file /Users/even/.lima/colima/cidata.iso","time":"2022-09-23T20:33:21+08:00"}
{"level":"debug","msg":"Using /var/folders/q1/720_n3k53275jq9xrhlyszbm0000gn/T/diskfs_iso2394121710 as workspace","time":"2022-09-23T20:33:21+08:00"}
{"level":"debug","msg":"firmware candidates = [/Users/even/.local/share/qemu/edk2-x86_64-code.fd /Users/even/.colima/_wrapper/4e1b408f843d1c63afbbdcf80c40e4c88d33509f/share/qemu/edk2-x86_64-code.fd /usr/share/OVMF/OVMF_CODE.fd /usr/share/qemu/ovmf-x86_64-code.bin /usr/share/edk2-ovmf/x64/OVMF_CODE.fd]","time":"2022-09-23T20:33:21+08:00"}
{"level":"debug","msg":"OpenSSH version 8.6.1 detected","time":"2022-09-23T20:33:21+08:00"}
{"level":"debug","msg":"AES accelerator seems available, prioritizing [email protected] and [email protected]","time":"2022-09-23T20:33:21+08:00"}
{"level":"info","msg":"Starting QEMU (hint: to watch the boot progress, see \"/Users/even/.lima/colima/serial.log\")","time":"2022-09-23T20:33:21+08:00"}
{"level":"debug","msg":"qCmd.Args: [/Users/even/.colima/_wrapper/4e1b408f843d1c63afbbdcf80c40e4c88d33509f/bin/qemu-system-x86_64 -m 2048 -cpu host -machine q35,accel=hvf -smp 2,sockets=1,cores=2,threads=1 -drive if=pflash,format=raw,readonly=on,file=/Users/even/.colima/_wrapper/4e1b408f843d1c63afbbdcf80c40e4c88d33509f/share/qemu/edk2-x86_64-code.fd -boot order=d,splash-time=0,menu=on -drive file=/Users/even/.lima/colima/basedisk,media=cdrom,readonly=on -drive file=/Users/even/.lima/colima/diffdisk,if=virtio -cdrom /Users/even/.lima/colima/cidata.iso -netdev user,id=net0,net=192.168.5.0/24,dhcpstart=192.168.5.15,hostfwd=tcp:127.0.0.1:49367-:22 -device virtio-net-pci,netdev=net0,mac=52:55:55:58:37:cc -device virtio-rng-pci -display none -device virtio-vga -device virtio-keyboard-pci -device virtio-mouse-pci -device qemu-xhci,id=usb-bus -parallel none -chardev socket,id=char-serial,path=/Users/even/.lima/colima/serial.sock,server=on,wait=off,logfile=/Users/even/.lima/colima/serial.log -serial chardev:char-serial -chardev socket,id=char-qmp,path=/Users/even/.lima/colima/qmp.sock,server=on,wait=off -qmp chardev:char-qmp -name lima-colima -pidfile /Users/even/.lima/colima/qemu.pid]","time":"2022-09-23T20:33:21+08:00"}
{"level":"info","msg":"Waiting for the essential requirement 1 of 5: \"ssh\"","time":"2022-09-23T20:33:21+08:00"}
{"level":"debug","msg":"executing script \"ssh\"","time":"2022-09-23T20:33:21+08:00"}
{"level":"debug","msg":"executing ssh for script \"ssh\": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/even/.lima/_config/user\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^[email protected],[email protected]\" -o User=even -o ControlMaster=auto -o ControlPath=\"/Users/even/.lima/colima/ssh.sock\" -o ControlPersist=5m -p 49367 127.0.0.1 -- /bin/bash]","time":"2022-09-23T20:33:21+08:00"}
{"level":"debug","msg":"stdout=\"\", stderr=\"ssh: connect to host 127.0.0.1 port 49367: Connection refused\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"ssh: connect to host 127.0.0.1 port 49367: Connection refused\\r\\n\": exit status 255","time":"2022-09-23T20:33:21+08:00"}
{"level":"debug","msg":"qemu[stderr]: qemu-system-x86_64: Error: HV_ERROR","time":"2022-09-23T20:33:21+08:00"}
{"error":"exit status 255","level":"info","msg":"QEMU has exited","time":"2022-09-23T20:33:21+08:00"} FYI, I am using an AMD x86_64 hackintosh, and I can start qumu by |
@evenlee it shows For now, you can install the development version to get rid of the warnings |
Thanks for your advice @abiosoft, I uninstalled Colima from brew, and re-installed with --head parameter, but still got same error. |
Same issue :( could anyone solve it? |
@elramirezv are you on M1 device? If yes, have you confirmed you have the arm64 version of brew installed? |
@abiosoft Yes, im using a M1. Mmmmm not really sure what version i have installed, but this is my HOMEBREW_VERSION: 3.6.6
ORIGIN: https://github.com/Homebrew/brew
HEAD: 978a452ea7ccdff1ed7377f88add3ff0513ba2b7
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 76200ff370469c6f5f8d1a1684ff259cf9337ac6
Core tap last commit: 26 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 13.1.6 build 1316
Git: 2.32.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.6-arm64
CLT: 14.0.0.0.1.1661618636
Xcode: 13.4.1
Rosetta 2: false |
I have the same issue with m1 device
|
Same problem, different cause and solution. It was nothing to do with the architecture mismatch for me, but rather brew sources. I ran Solution for me in the end was: brew uninstall --zap qemu colima lima
brew upgrade
brew update
brew upgrade
brew install colima Basically just out of date formula after an upgrade, though this shouldn't have been possible. |
Hit the same issue with my M1 Max: What I have tried so far:
Error seems to be persist:
But it works as expected without
It also works by just passing
|
Just re-tried to run |
hi, any progress with this one? still having this issue on an m3 macbook. |
What worked for me is |
This just worked for me on my Mac M2, Sonoma 14.2.1. colima delete
colima start --arch aarch64 |
After trying all the suggestions, |
I can't seem to start colima for the first time. Looks like ssh trying to connect on a ephemeral port being refused. But maybe this is a qemu problem. Any insight would be appreciated
lima version 0.8.2
colima version 0.3.2
QEMU emulator version 6.2.0
Mac M1
stderror log
...
The text was updated successfully, but these errors were encountered: