lima icon indicating copy to clipboard operation
lima copied to clipboard

Support adding kernel commandline options

Open jandubois opened this issue 2 years ago • 5 comments

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:

cmdline: "vsyscall=emulate"

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

jandubois avatar May 13 '22 22:05 jandubois

Not a huge fan of adding the cmdline as a global attribute.

Wondering if we could rather specify this as an EFI var inside the firmware: section. I don't know how we could pass the EFI var into the kernel, but I believe it is possible.

AkihiroSuda avatar May 14 '22 11:05 AkihiroSuda

Hi Team is there any update on this ?

ripun avatar Sep 07 '22 12:09 ripun

Hi Team, Any updates on this or how to enable vsyscall=emulate for Mac running Lima?

jerindjoy avatar Dec 14 '22 11:12 jerindjoy