https://rancher.com/ logo
#lima
Title
a

adamant-truck-16816

07/14/2022, 3:31 AM
I am having the famous waiting for the essential requirement of ssh as follows
Copy code
limactl start --name odb odb_lima.yaml
? Creating an instance "odb" Proceed with the current configuration
INFO[0001] Attempting to download the image from "<https://cloud-images.ubuntu.com/releases/22.04/release-20220712/ubuntu-22.04-server-cloudimg-amd64.img>"  digest=
600.38 MiB / 600.38 MiB [----------------------------------] 100.00% 18.66 MiB/s
INFO[0034] Downloaded the image from "<https://cloud-images.ubuntu.com/releases/22.04/release-20220712/ubuntu-22.04-server-cloudimg-amd64.img>"
INFO[0034] Attempting to download the nerdctl archive from "<https://github.com/containerd/nerdctl/releases/download/v0.21.0/nerdctl-full-0.21.0-linux-amd64.tar.gz>"  digest="sha256:728f9b543374b1b1733f759608e156dbe578d7b140a081084a1f4bfb4f2b3fbf"
INFO[0034] Using cache "/Users/jaimegarza/Library/Caches/lima/download/by-url-sha256/dd4613292b3a598687b9e5f97a294845661491c61e554435a27c6f6c691f8dd4/data"
INFO[0035] [hostagent] Starting QEMU (hint: to watch the boot progress, see "/Users/jaimegarza/.lima/odb/serial.log")
INFO[0035] SSH Local Port: 49615
INFO[0035] [hostagent] Waiting for the essential requirement 1 of 3: "ssh"
and more lines like this
Let me know if I should upload the serial.log. The workspace is giving me a warning about the 5GB limit it has
b

best-accountant-68201

07/14/2022, 1:52 PM
Could you copy paste the last few lines of the log
a

adamant-truck-16816

07/14/2022, 5:05 PM
Copy code
tail -n 50 serial.log
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Finished Remove Stale Onli…ext4 Metadata Check Snapshots.
[  OK  ] Started LSB: automatic crash report generation.
[  OK  ] Finished GRUB failed boot detection.
[  OK  ] Started User Login Management.
[  OK  ] Started Unattended Upgrades Shutdown.
[  OK  ] Started Modem Manager.
[  OK  ] Started Disk Manager.
[  OK  ] Started Dispatcher daemon for systemd-networkd.
[  OK  ] Finished Pollinate to seed…seudo random number generator.
         Starting OpenBSD Secure Shell server...
[  OK  ] Started OpenBSD Secure Shell server.

Ubuntu 22.04 LTS lima-odb ttyS0

lima-odb login: [  OK  ] Listening on Socket unix for snap application lxd.daemon.
[  OK  ] Listening on Socket unix f…p application lxd.user-daemon.
         Starting Service for snap application lxd.activate...
[  OK  ] Finished Service for snap application lxd.activate.
[  OK  ] Started snap.lxd.hook.conf…-42a1-b96f-5eac8d644ec8.scope.
         Starting Time & Date Service...
[  OK  ] Started Time & Date Service.
[  OK  ] Finished Wait until snapd is fully seeded.
         Starting Apply the settings specified in cloud-config...
[   57.800689] cloud-init[1321]: Cloud-init v. 22.2-0ubuntu1~22.04.3 running 'modules:config' at Thu, 14 Jul 2022 03:25:25 +0000. Up 57.43 seconds.
[  OK  ] Finished Apply the settings specified in cloud-config.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Execute cloud user/final scripts...
         Starting Record Runlevel Change in UTMP...
[  OK  ] Finished Record Runlevel Change in UTMP.
[   62.105404] cloud-init[1339]: Cloud-init v. 22.2-0ubuntu1~22.04.3 running 'modules:final' at Thu, 14 Jul 2022 03:25:29 +0000. Up 61.75 seconds.
ci-info: no authorized SSH keys fingerprints found for user ubuntu.
<14>Jul 14 03:25:30 cloud-init: #############################################################
<14>Jul 14 03:25:30 cloud-init: -----BEGIN SSH HOST KEY FINGERPRINTS-----
<14>Jul 14 03:25:30 cloud-init: 1024 SHA256:6RaRoYGNImftfRphNSXxpfT2WLsMRIGFPwGNJGPj+x4 root@lima-odb (DSA)
<14>Jul 14 03:25:30 cloud-init: 256 SHA256:FfnXcKtYw3cOWyyWKtMe7pFp7lEL4wZI3xG3pvuDZyk root@lima-odb (ECDSA)
<14>Jul 14 03:25:30 cloud-init: 256 SHA256:/blyMEawOVz03V3budFahUeBFVBx1LFa2Q6ZrL0dJ0M root@lima-odb (ED25519)
<14>Jul 14 03:25:30 cloud-init: 3072 SHA256:BlLRzrZuABbmo0KXXEpNJFi+W8YB/9CyzGglGh/SbtI root@lima-odb (RSA)
<14>Jul 14 03:25:30 cloud-init: -----END SSH HOST KEY FINGERPRINTS-----
<14>Jul 14 03:25:30 cloud-init: #############################################################
-----BEGIN SSH HOST KEY KEYS-----
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFjiuA07M20SAEnW9+RqUvt2KElOne5JbfE2PxuiGaxa2Uydi4U7USQPWEHWgRClusCkyoEQpo/IXdr8DTD0p1w= root@lima-odb
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG3m5wtcCo1COM3jiNcvYXmA2QOt/8eUpdr1RKA1Izb2 root@lima-odb
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCn1VmlnKwFF2CkDEJ+IjAOK1MbSzN807OjK2e0D4We3aTRCymc5U07NM0Wc9OaUre1w94PqPSemsmP7flUsC6OagNpaUy17YFTlhroZQE80laEPbxRIQkLfGlhjTAQLl7GunHuXbJz/hqZFW+5BTIFhh24Gc4TW2OGlwSpIFCLOvO8YlolA9UGfYTa1KnxMBodI3klsMHOYViEJlFMv+KlS0qzG0VGdwH8AsBUa4YCOLsVNLJ3J1PMLbm0f8PB2w51UhyHfvcXM6U/utL37hW8WSFFwxXTYZzxHGz5dnAqMfuOURZXFvOSj92xyf25v8wZrZzPVKnY+EBypyycH4BVcvlYoiVb5SaV0dtscPQm4yPfNKGfw9bXOpCKMIZZBxTMQDd+Od11fEp2D7SdQu+3NrRBfPc9+qQAuJ+Ao3Ewn25a1DfZv7m1cq52YEMPPnND0n4SxF5FXXmoB87uOwfqlOwFE3ziC9GzFx5pgcKPmht2ML+qLN7dGLv/8+lUtKs= root@lima-odb
-----END SSH HOST KEY KEYS-----
[   63.124032] cloud-init[1339]: Cloud-init v. 22.2-0ubuntu1~22.04.3 finished at Thu, 14 Jul 2022 03:25:30 +0000. Datasource DataSourceNoCloud [seed=/dev/sr0][dsmode=net].  Up 63.08 seconds
[  OK  ] Finished Execute cloud user/final scripts.
[  OK  ] Reached target Cloud-init target.
At the top there are no errors
h

hundreds-crowd-93261

07/15/2022, 1:23 AM
i wonder if lima could setup access via serial console to make debugging this kind of issue easier
although i suppose it’s not entirely clear if this reached a point where the tty is even available yet.
a

adamant-truck-16816

07/15/2022, 6:35 PM
If I set the port to 60022 and ssh, it seems to find it. I do not know the credentials so it fails then
h

hundreds-crowd-93261

07/15/2022, 6:37 PM
limactl show-ssh <name>
a

adamant-truck-16816

07/15/2022, 9:55 PM
OK, I had 4 keys in my
~/.ssh
and it boiled down to removing id_dsa, id_dsa.pub. Is there a restriction on the use of DSA keys? The key is 10 years old
h

hundreds-crowd-93261

07/15/2022, 9:56 PM
hmm odd. maybe? i would have guessed it was maybe too many keys, but 4 isnt that many
a

adamant-truck-16816

07/15/2022, 10:00 PM
I had it to only the dsa key, removing the rest, and it fails
h

hundreds-crowd-93261

07/15/2022, 10:01 PM
ah
a

adamant-truck-16816

07/15/2022, 10:09 PM
nope, it s not dsa... I created a new dsa key and it works
845 Views