Opened 3 weeks ago

Closed 10 days ago

#72567 closed defect (fixed)

Colima & Lima on Mac Monterey

Reported by: iap (Iko) Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: halostatue (Austin Ziegler)
Port: lima, colima

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I have an issue when running Colima on Mac Monterey with warn message, and I guest there no lima-additional-guestagents package:

WARN[0000] Failed to resolve the guest agent binary for "aarch64"  error="guest agent binary could not be found for Linux-aarch64 (Hint: try installing `lima-additional-guestagents` package)"
WARN[0000] Failed to resolve the guest agent binary for "armv7l"  error="guest agent binary could not be found for Linux-armv7l (Hint: try installing `lima-additional-guestagents` package)"
WARN[0000] Failed to resolve the guest agent binary for "ppc64le"  error="guest agent binary could not be found for Linux-ppc64le (Hint: try installing `lima-additional-guestagents` package)"
WARN[0000] Failed to resolve the guest agent binary for "riscv64"  error="guest agent binary could not be found for Linux-riscv64 (Hint: try installing `lima-additional-guestagents` package)"
WARN[0000] Failed to resolve the guest agent binary for "s390x"  error="guest agent binary could not be found for Linux-s390x (Hint: try installing `lima-additional-guestagents` package)"
INFO[0000] starting colima                              
INFO[0000] runtime: docker                              
INFO[0003] creating and starting ...                     context=vm
> [hostagent] Waiting for the essential requirement 1 of 2: "ssh"
> [hostagent] Waiting for the essential requirement 1 of 2: "ssh"
> [hostagent] Waiting for the essential requirement 1 of 2: "ssh"
> [hostagent] QEMU did not exit in 3m0s, forcibly killing QEMU
> "[hostagent] QEMU has exited, after killing forcibly" error="signal: killed"
> exiting, status={Running:false Degraded:false Exiting:true Errors:[] SSHLocalPort:0} (hint: see "/Users/i/.colima/_lima/colima/ha.stderr.log")
FATA[0306] error starting vm: error at 'creating and starting': exit status 1

Change History (5)

comment:1 Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)

Cc: halostatue added
Description: modified (diff)
Keywords: colima lima lima-additional-guestagents removed
Owner: set to herbygillot
Port: colima added
Status: newassigned

comment:2 Changed 3 weeks ago by halostatue (Austin Ziegler)

We don't have a separate package, but we do have lima variant +additional_guestagents. This variant also forces a dependency on qemu because most of the guest agents mentioned in the message aren't supported natively or via Rosetta 2.

This will take a little bit of time because the message needs to be overridden in Lima and I'm won't have time until the weekend.

I'm not sure if it is possible to build both lima and lima+additional_guestagents with a build bot, because the additional guest agents double the build time.

comment:3 Changed 3 weeks ago by iap (Iko)

No worries,

I try sudo port install lima +additional_guestagents the (WARN[0000] Failed to resolve the guest agent binary for "aarch64") solve. But it keep looping on [hostagent] Waiting for the essential requirement 1 of 2: "ssh".

Im using Mac Air 2017 with macOS Monterey Intel chip.

Thank you for your time. Much appreciate it.

Last edited 3 weeks ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 in reply to:  3 Changed 11 days ago by halostatue (Austin Ziegler)

I can't produce this with colima anymore, but

❯ limactl create --arch=x86_64 template://debian

? Creating an instance "debian" Proceed with the current configuration
FATA[0004] guest agent binary could not be found for Linux-x86_64: file does not exist: attempted [/opt/local/share/lima/lima-guestagent.Linux-x86_64.gz /opt/local/share/lima/lima-guestagent.Linux-x86_64] (Hint: try installing variant `+additional_guestagents`)

Replying to iap:

No worries,

I try sudo port install lima +additional_guestagents the (WARN[0000] Failed to resolve the guest agent binary for "aarch64") solve. But it keep looping on [hostagent] Waiting for the essential requirement 1 of 2: "ssh".

Im using Mac Air 2017 with macOS Monterey Intel chip.

I believe that if there's an issue with the ssh server not working correctly, you should look through colima issues first — I have seen this in the past and it is possible that there's an issue with SSH configuration detritus in ~/.colima.

Last edited 11 days ago by halostatue (Austin Ziegler) (previous) (diff)

comment:5 Changed 10 days ago by halostatue (Austin Ziegler)

Resolution: fixed
Status: assignedclosed

In 48f8ef76ef6d3de146bc4564649f48a0f1d3e767/macports-ports (master):

lima: Improve additional guest agents message

Lima contains a message for installing lima-additional-guestagents
package when agents can't be found. This does not work for MacPorts
because we have a variant (+additional_guestagents). Added a patch to
update the message to refer to this variant instead of a package that
does not exist.

Closes: #72567

Note: See TracTickets for help on using tickets.