-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shell connections are bounced ~30 seconds into debian boot cycle subsequent to first boot/provision #1941
Comments
Also, the lima guest agent socket removal past first provisioning would be removing the already started lima/pkg/cidata/cidata.TEMPLATE.d/boot/07-etc-environment.sh Lines 20 to 21 in b5aa0dd
Additionally the path to the file is
|
This seems from: @jandubois Could you take a look? |
The disconnect seems to be highlighted due to my use case of not using The vm also has a slightly longer systemd startup time, waiting for all the containers to be running before lima's cloud init steps run. |
Sure. In general I would say that this is expected if you connect to an instance before all the "requirements" have been completed that are part of the regular However, I think we should implement the change proposed by @mhio that the user session is not bounced when @mhio Let me know if you want to create a PR, or if I should do it based on your suggestion above? |
It looks like the cidata iso is all built in process, I don't have a build environment to test it right now but commits are there if needed. |
I see the commits in your fork, and I was tempted to create the PR on your behalf, to start the code review process. But then I noticed that you haven't signed the commits with a I think it is better if you create the PR yourself anyways, so waiting for this to happen. I see that you are removing the |
for lima-vm#1941 Signed-off-by: mhio <[email protected]>
for lima-vm#1941 Signed-off-by: mhio <[email protected]>
PR created The socket removal can left behind if needed, I kept it in a second commit as it was just clean up and doesn't affect this issue. |
for lima-vm#1941 Signed-off-by: mhio <[email protected]>
for lima-vm#1941 Signed-off-by: mhio <[email protected]>
Description
After the first boot/provision process has completed on a debian12 vm. Creating a new lima shell early in any subsequent boot process, the shell is bounced after about the same time as the initial
limactl start
creation command takes.limactl version 0.18.0
Watching the systemd journal before the shell session is bounced, it always exits here
Looking through the journal around then, I believe the
boot.sh
script output isn't flushed before termination so it's a bit later the session is terminated:Which led me to
lima/pkg/cidata/cidata.TEMPLATE.d/boot/07-etc-environment.sh
Line 17 in b5aa0dd
I believe the purpose here is to inject environment before the lima provisioning starts. I assume some config changes might also need to be reflected here after first provision/boot?
Could the
login-ctl terminate-user
be guarded on the content of/etc/environment
changing? Something likelima.yaml
The text was updated successfully, but these errors were encountered: