-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add "plain" mode (disables mounts, port forwarding, containerd, etc.) #1840
Conversation
```bash limactl start --plain ``` When the "plain" mode is enabled: - the YAML properties for mounts, port forwarding, containerd, etc. will be ignored - guest agent will not be running - dependency packages like sshfs will not be installed into the VM User-specified provisioning scripts will be still executed. Fixes issue 1739 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@@ -240,7 +240,11 @@ func watchHostAgentEvents(ctx context.Context, inst *store.Instance, haStdoutPat | |||
return true | |||
} | |||
|
|||
logrus.Infof("READY. Run `%s` to open the shell.", LimactlShellCmd(inst.Name)) | |||
if *inst.Config.Plain { | |||
logrus.Infof("READY. Run `ssh -F %q lima-%s` to open the shell.", inst.SSHConfigFile, inst.Name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Y not use LimactlShellCmd(inst.Name) here ?? Ssh connection stays the same right evn for plan mode ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because plain mode users are less likely to prefer lima-ist commands.
The limactl shell command continue to work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think the lima
wrapper (but only that script, not the others) belongs to the "minimal" footprint.
But I suppose ssh
is even more "plain".
Or maybe: lima-ssh lima-default
This comment was marked as resolved.
This comment was marked as resolved.
Having multiple wrapper scripts is confusing, and "plain" mode users are likely to prefer plain SSH command that can be also integrated to other tools such as rsync, fabric, etc. |
When the "plain" mode is enabled:
User-specified provisioning scripts will be still executed.
Fixes:
limactl create
: add--plain
flag to disable mounts, port forwarding, containerd, etc. #1739