lima-vm / lima-vm/lima

Support adding kernel commandline options

Open
#857 5 comments 2 reactions 0 assignees View on GitHub
enhancement expert
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

### Description

#827 added a mechanism to specify additional kernel parameters for a specific image.

Unfortunately this does not allow providing additional parameters via an `override.yaml` or `default.yaml` file because `image` lists are simply concatenated; there is no way to modify attributes of an existing entry like we do for `mounts` and `networks`. There is also no obvious way how this can be made to work for images.

I would like to add a top-level attribute `cmdline` that will be appended in addition to any `cmdline` setting specified for a particular image. That would allow setting things globally, like:

```yaml
cmdline: "vsyscall=emulate"
```

References:
https://github.com/microsoft/WSL/issues/4694
https://gitlab.alpinelinux.org/alpine/aports/-/issues/6927#note_31075

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.