Comments (5)
The start-at-login
feature generates a plist
file to autostart lima vm; it doesn't propagate variables or set up any docker-related things. ddev uses colima and colima uses lima under the hood.
I guess is something going wrong with the VM itself at startup.
You can try to debug ddev docker with command:
# Output contextual details for the Docker provider
ddev debug dockercheck
from lima.
There are logs files under ~/.lima/default/launchd.stderr.log
and ~/.lima/default/launchd.stdout.log
could you provide those logs?
from lima.
it wasn't a ddev related problem, as i've shown in the second example in the issue summary i've also tried to directly run a docker command and no docker provider was available there neither:
$> docker ps
Cannot connect to the Docker daemon at unix:///Users/rkoller/.lima/default/sock/docker.sock. Is the docker daemon running?
and ddev isn't requiring colima, it is just still the recommended provider for macos. i've moved to using lima a few months ago instead of colima (since as you say colima is using lima under the hood anyway).
yesterday after the startup as well as after the shutdown and restart docker was not available (as illustrated in the issue summary). but the real odd thing is today is the first day docker was available right after i was starting my computer. nothing changed to before. taking a look at the two log files you've mentioned now, launchd.stderr.log
lists
time="2024-03-17T16:05:47+01:00" level=info msg="Using the existing instance \"default\""
time="2024-03-17T16:05:47+01:00" level=info msg="Starting the instance \"default\" with VM driver \"vz\""
time="2024-03-17T16:05:47+01:00" level=info msg="Running the host agent in the foreground"
time="2024-03-17T16:50:10+01:00" level=info msg="Using the existing instance \"default\""
time="2024-03-17T16:50:10+01:00" level=info msg="Starting the instance \"default\" with VM driver \"vz\""
time="2024-03-17T16:50:10+01:00" level=info msg="Running the host agent in the foreground"
time="2024-03-18T11:10:08+01:00" level=info msg="Using the existing instance \"default\""
time="2024-03-18T11:10:08+01:00" level=info msg="Starting the instance \"default\" with VM driver \"vz\""
time="2024-03-18T11:10:08+01:00" level=info msg="Running the host agent in the foreground"
while launchd.stdout.log
is empty
According to launchd.stderr.log
the instance was started properly every time. which is in line with the output for limactl list
where the vm 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
but yesterday on first start after setting up the login item as well as after shutting down and restarting aside the vm running docker was not available (not available when trying to run a ddev command as well as trying to run a docker command). and without changing anything docker is available after todays autostart.
from lima.
i "think" i know now what the problem was/is. today i've got the following output right after i've logged in starting up the computer:
$> limactl list
NAME STATUS SSH VMTYPE ARCH CPUS MEMORY DISK DIR
default Stopped 127.0.0.1:0 vz aarch64 4 8GiB 100GiB ~/.lima/default
that was odd and unexpected. so i went brushing my teeth to give it some more time, and after returning about 5 to 10 minutes later i ran the command another time:
$> 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
now lima is shown as running and also docker was available. so it looks like and i "suppose" also on my previous attemps lima was actually properly started. but i "assume" like today it was just not completely ready yet finishing the startup process. might be the only problem that by creating a login item you have no feedback if lima has already completely successfully started up since the usual output on limactl start
is not output as a login item. i will observe the behavior over the next few days.
from lima.
Yes Lima takes a little while to start up so I suggest to fuggedaboutit.
Look at the log whatever log that is, I ams sure there is one.
When you find it why not write.a script to email you the log and then wherever you are and whatever you are doing after you finish brushing your teeth you will surely receive it!
from lima.
Related Issues (20)
- AES detection is broken on linux/arm64 and issues a warning HOT 1
- ORAS and bootable containers - downloading images from registry HOT 3
- IPFS for downloading images, using decentralized peer-to-peer HOT 2
- Cannot Create OpenSUSE Tumbleweed Instance HOT 3
- Domains fail to resolve in "vz" VMs when TLD exists in hostResolver
- Simplify syntax for selecting images, with locations and digests HOT 4
- Simplify syntax for default mounts, read-only home + read-write tmp
- Compress the lima-guestagent in the installation directory HOT 9
- Rename config files and machine files HOT 5
- Unreliable permissions for lima with vz and writable virtiofs home directory mount HOT 1
- The QEMU-based VM registered with `limactl start-at-login` in `launchd` does not start. HOT 1
- chmod failed when `mountInotify` is enabled HOT 1
- chmod failed when `mountInotify` is enabled HOT 5
- lima examples missing image HOT 1
- [hostagent] Driver stopped due to error: \"usernet unable to resolve IP for SSH forwarding\"
- Provide standard values "default" and "none" for most options HOT 1
- Cross-compiler for building "darwin" target HOT 5
- Failed to start VM when I want to modify PATH env var from env section in yaml template HOT 1
- Error: msg="did not receive an event with the \"running\" status" HOT 2
- Lima VM will randomly lose network connectivity HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lima.