lima-vm / lima-vm/lima

Default instance with a launchagent created by `start-at-login` isn't available after startup

Open
#2,252 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

### Description

Yesterday I've tried the new start at login feature that got in with `0.21.0`. Before i've shut down my computer yesterday I've used:

`$> limactl start-at-login default
INFO[0000] The autostart file "/Users/rkoller/Library/LaunchAgents/io.lima-vm.autostart.default.plist" has been created or updated

When I've started my computer today and I tried to directly start a project in DDEV a framework for local development environments in docker i got:

```
$> ddev config
ERRO[0000] app.FindContainerByType(web) failed
ERRO[0000] app.FindContainerByType(web) failed
Could not connect to a Docker provider. Please start or install a Docker provider.
For install help go to: https://ddev.readthedocs.io/en/stable/users/install/docker-installation/
```

When I checked if the lima instance is running:

```
$> limactl list
NAME STATUS SSH VMTYPE ARCH CPUS MEMORY DISK DIR
default Running 127.0.0.1:60022 vz aarch64 4 8GiB 100GiB ~/.lima/default
```
My default instance was shown as running. I then did a `limactl stop` directly followed by a `limactl start` and now docker was available to ddev. And if go into the macos system settings the lima login item is listed:

![Screenshot 2024-03-17 at 16 40 29](https://github.com/lima-vm/lima/assets/1665422/0464362b-8833-4a5c-99ee-0ef4b42eca18)

When clicking the `ì` icon that opens up a finder window:

![Screenshot 2024-03-17 at 16 46 32](https://github.com/lima-vm/lima/assets/1665422/c8ea1012-88a0-4872-818a-335d6673618c)

I've then retested, shut down my computer another time and started it up again. After that instead of trying to run a ddev command i tested with a plain docker command:

```
$> docker ps
Cannot connect to the Docker daemon at unix:///Users/rkoller/.lima/default/sock/docker.sock. Is the docker daemon running?
```
and again with `limactl list`the instance was shown as running

```
$> limactl list
NAME STATUS SSH VMTYPE ARCH CPUS MEMORY DISK DIR
default Running 127.0.0.1:60022 vz aarch64 4 8GiB 100GiB ~/.lima/default
```

For the context i am on a M1pro running macOS Sonoma 14.4 and limactl version 0.21.0 (using the docker template with vz and virtiofs). if you need more informations please let me know.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.