Skip to content
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

Merged
merged 1 commit into from
Oct 8, 2023

Conversation

AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda commented Sep 26, 2023

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:

```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)
Copy link
Member

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 ?

Copy link
Member Author

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.

Copy link
Member

@afbjorklund afbjorklund Sep 28, 2023

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

@AkihiroSuda AkihiroSuda requested a review from a team September 28, 2023 17:01
@afbjorklund

This comment was marked as resolved.

@AkihiroSuda
Copy link
Member Author

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.

@AkihiroSuda AkihiroSuda merged commit 1b38ad1 into lima-vm:master Oct 8, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request impact/changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

limactl create: add --plain flag to disable mounts, port forwarding, containerd, etc.
3 participants