Stuck on ssh requirement #715
-
Hi there :; limactl rm -f default
:; limactl prune
:; limactl start default Each time just changing :; limactl start --debug default --tty=false
DEBU[0000] interpreting argument "default" as an instance name "default"
INFO[0000] Using the existing instance "default"
DEBU[0000] Make sure "shared" network is stopped
DEBU[0000] Make sure "bridged" network is stopped
DEBU[0000] Make sure "host" network is stopped
INFO[0000] Attempting to download the nerdctl archive from "https://github.com/containerd/nerdctl/releases/download/v0.17.0/nerdctl-full-0.17.0-linux-arm64.tar.gz" digest="sha256:b0ae2fc89d362afa18afcc35798d4da613096613d06cae07181b777cd66002e8"
DEBU[0000] file "" is cached as "/Users/mohammad/Library/Caches/lima/download/by-url-sha256/3608cc4895528e6aebc3f8d47fca30005906e44f8bcaed5b7781738808526341/data"
DEBU[0000] Comparing digest "sha256:b0ae2fc89d362afa18afcc35798d4da613096613d06cae07181b777cd66002e8" with the cached digest file "/Users/mohammad/Library/Caches/lima/download/by-url-sha256/3608cc4895528e6aebc3f8d47fca30005906e44f8bcaed5b7781738808526341/sha256.digest", not computing the actual digest of "/Users/mohammad/Library/Caches/lima/download/by-url-sha256/3608cc4895528e6aebc3f8d47fca30005906e44f8bcaed5b7781738808526341/data"
INFO[0000] Using cache "/Users/mohammad/Library/Caches/lima/download/by-url-sha256/3608cc4895528e6aebc3f8d47fca30005906e44f8bcaed5b7781738808526341/data"
DEBU[0000] [hostagent] firmware candidates = [/opt/homebrew/share/qemu/edk2-aarch64-code.fd /usr/share/AAVMF/AAVMF_CODE.fd /usr/share/qemu-efi-aarch64/QEMU_EFI.fd]
DEBU[0000] [hostagent] OpenSSH version 8.6.1 detected
DEBU[0000] [hostagent] AES accelerator seems available, prioritizing aes128-gcm@openssh.com and aes256-gcm@openssh.com
INFO[0000] [hostagent] Starting QEMU (hint: to watch the boot progress, see "/Users/mohammad/.lima/default/serial.log")
DEBU[0000] [hostagent] qCmd.Args: [/opt/homebrew/bin/qemu-system-aarch64 -cpu host -machine virt,accel=hvf,highmem=off -smp 4,sockets=1,cores=4,threads=1 -m 4096 -drive if=pflash,format=raw,readonly=on,file=/opt/homebrew/share/qemu/edk2-aarch64-code.fd -boot order=c,splash-time=0,menu=on -drive file=/Users/mohammad/.lima/default/diffdisk,if=virtio -cdrom /Users/mohammad/.lima/default/cidata.iso -netdev user,id=net0,net=192.168.5.0/24,dhcpstart=192.168.5.15,hostfwd=tcp:127.0.0.1:60022-:22 -device virtio-net-pci,netdev=net0,mac=52:55:55:11:d8:36 -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/mohammad/.lima/default/serial.sock,server=on,wait=off,logfile=/Users/mohammad/.lima/default/serial.log -serial chardev:char-serial -chardev socket,id=char-qmp,path=/Users/mohammad/.lima/default/qmp.sock,server=on,wait=off -qmp chardev:char-qmp -name lima-default -pidfile /Users/mohammad/.lima/default/qemu.pid]
DEBU[0000] received an event event="{2022-03-10 19:44:48.580443 +0330 +0330 {false false false [] 60022}}"
INFO[0000] SSH Local Port: 60022
INFO[0000] [hostagent] Waiting for the essential requirement 1 of 5: "ssh"
DEBU[0000] [hostagent] executing script "ssh"
DEBU[0000] [hostagent] executing ssh for script "ssh": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile="/Users/mohammad/.lima/_config/user" -o IdentityFile="/Users/mohammad/.ssh/id_ed25519" -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="^aes128-gcm@openssh.com,aes256-gcm@openssh.com" -o User=mohammad -o ControlMaster=auto -o ControlPath="/Users/mohammad/.lima/default/ssh.sock" -o ControlPersist=5m -p 60022 127.0.0.1 -- /bin/bash]
DEBU[0076] [hostagent] stdout="", stderr="kex_exchange_identification: read: Connection reset by peer\r\nConnection reset by 127.0.0.1 port 60022\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 60022\r\n": exit status 255 The ssh step keeps trying a few times, and then it says it's running, but it's clearly not, because :; limactl shell --debug default
DEBU[0000] changeDirCmd="cd \"/Users/mohammad\" || cd \"/Users/mohammad\""
DEBU[0000] OpenSSH version 8.6.1 detected
DEBU[0000] AES accelerator seems available, prioritizing aes128-gcm@openssh.com and aes256-gcm@openssh.com
DEBU[0000] executing ssh (may take a long)): [/usr/bin/ssh -F /dev/null -o IdentityFile="/Users/mohammad/.lima/_config/user" -o IdentityFile="/Users/mohammad/.ssh/id_ed25519" -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="^aes128-gcm@openssh.com,aes256-gcm@openssh.com" -o User=mohammad -o ControlMaster=auto -o ControlPath="/Users/mohammad/.lima/default/ssh.sock" -o ControlPersist=5m -t -o SendEnv="COLORTERM" -q -p 60022 127.0.0.1 -- cd "/Users/mohammad" || cd "/Users/mohammad" ; exec bash --login]
:; echo $?
255 This is a log of :; tail -f /Users/mohammad/.lima/default/serial.log
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services and installing virtual address map...
SetUefiImageMemoryAttributes - 0x000000013F500000 - 0x0000000000040000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000013C190000 - 0x0000000000040000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000013C140000 - 0x0000000000040000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000013F4C0000 - 0x0000000000030000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000013C0F0000 - 0x0000000000040000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000013BCB0000 - 0x0000000000040000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000013BB00000 - 0x0000000000030000 (0x0000000000000008)
SetUefiImageMemoryAttributes - 0x000000013BAC0000 - 0x0000000000030000 (0x0000000000000008) I tried to reinstall default image, with and without vpn, it didn't help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
edit 2: changing the image location to this worked: "https://cloud-images.ubuntu.com/impish/20220204/impish-server-cloudimg-arm64.img"
|
Beta Was this translation helpful? Give feedback.
edit 2: changing the image location to this worked: "https://cloud-images.ubuntu.com/impish/20220204/impish-server-cloudimg-arm64.img"
edit: just saw this issue which I'm sure is the problem: #712
Same issue on an M1 pro. From my brief googling I think it might be unrelated, but the previous two lines include a firmware error.