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

Plain mode: support port forwarding (opt-in) #2962

Open
AkihiroSuda opened this issue Dec 2, 2024 · 1 comment
Open

Plain mode: support port forwarding (opt-in) #2962

AkihiroSuda opened this issue Dec 2, 2024 · 1 comment
Labels
area/portfwd enhancement New feature or request

Comments

@AkihiroSuda
Copy link
Member

limactl create --plain is useful to disable Lima's opinionated extensions, but it still makes sense to allow port forwarding as an opt-in feature.

In the case of plain mode, the port list should be obtained from the explicit list in YAML/CLI, not from the guest agent (which shouldn't be running at all in the case of plain mode).

Workaround

The current workaround is to run ssh -L manually:

ssh -q -f -N -L 6443:127.0.0.1:6443 -F ~/.lima/host0/ssh.config lima-host0
@AkihiroSuda AkihiroSuda added enhancement New feature or request area/portfwd labels Dec 2, 2024
@Ranjandas
Copy link

On the same note, it would be great if the environment variables (/mnt/lima-cidata/etc_environment)were also fed to the scripts that are run with provision.mode: user. Currently, in plain mode, looks like the user script don't see these variables and we are forced to run everything with provision.mode: system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/portfwd enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants