Skip to content

docs: document missing LIMA_CIDATA_* environment variables#4904

Open
bitalizer wants to merge 1 commit into
lima-vm:masterfrom
bitalizer:docs-cidata-env-vars
Open

docs: document missing LIMA_CIDATA_* environment variables#4904
bitalizer wants to merge 1 commit into
lima-vm:masterfrom
bitalizer:docs-cidata-env-vars

Conversation

@bitalizer
Copy link
Copy Markdown

Closes #2791.

Picks up the punch list in #2791 — and a few others that drifted out of the docs since 2023. The internals page only documented a subset of the LIMA_CIDATA_* vars that lima actually emits in pkg/cidata/cidata.TEMPLATE.d/lima.env. I diffed the env template against the docs and added an entry for every variable that was missing.

What's new

Group Variables
Additional disks LIMA_CIDATA_DISKS, LIMA_CIDATA_DISK_%d_NAME / DEVICE / FORMAT / FSTYPE / FSARGS
yq provision LIMA_CIDATA_YQ_PROVISION_%08d_FORMAT / OWNER / PATH / PERMISSIONS
Guest tooling LIMA_CIDATA_GUEST_INSTALL_PREFIX, LIMA_CIDATA_UPGRADE_PACKAGES
Rosetta LIMA_CIDATA_ROSETTA_ENABLED, LIMA_CIDATA_ROSETTA_BINFMT
Provisioning / VM LIMA_CIDATA_SKIP_DEFAULT_DEPENDENCY_RESOLUTION, LIMA_CIDATA_VMTYPE, LIMA_CIDATA_VSOCK_PORT, LIMA_CIDATA_VIRTIO_PORT
Modes LIMA_CIDATA_PLAIN, LIMA_CIDATA_NO_CLOUD_INIT

The 14 vars explicitly listed in #2791 are all covered. The extra ones (YQ_PROVISION_*, UPGRADE_PACKAGES, NO_CLOUD_INIT) were added to lima.env after the issue was filed and were never documented.

Ordering

I kept the section's existing ordering convention — entries appear in the same order as the corresponding lines in lima.env, with related vars grouped together (disks next to mounts, yq-provision next to datafile, etc.). The diff is purely additive; no existing line was touched.

Verification

  • Diff is additive only; nothing existing was reordered or reworded.
  • Each description comes from reading pkg/cidata/cidata.TEMPLATE.d/lima.env and the corresponding fields on cidata.TemplateArgs (in pkg/cidata/template.go) — not invented.
  • Local git diff --stat is 1 file changed, 20 insertions(+).

Happy to tweak wording or split this into per-group entries if any of them belong somewhere else (e.g. if the rosetta vars deserve a dedicated section).

Comment thread website/content/en/docs/dev/internals.md Outdated
Comment thread website/content/en/docs/dev/internals.md
@bitalizer
Copy link
Copy Markdown
Author

done, added the missing periods. thanks!

@unsuman unsuman requested a review from jandubois June 2, 2026 09:06
@unsuman
Copy link
Copy Markdown
Member

unsuman commented Jun 2, 2026

@bitalizer Please squash the commits

The internals page only listed a subset of the LIMA_CIDATA_* variables
that lima writes into the guest's `lima.env`. Adds entries for every
variable that was being emitted by `pkg/cidata/cidata.TEMPLATE.d/lima.env`
but not yet documented:

- additional-disk vars (DISKS, DISK_%d_NAME / DEVICE / FORMAT / FSTYPE / FSARGS)
- yq-provision vars (YQ_PROVISION_%08d_FORMAT / OWNER / PATH / PERMISSIONS)
- GUEST_INSTALL_PREFIX, UPGRADE_PACKAGES
- ROSETTA_ENABLED, ROSETTA_BINFMT
- SKIP_DEFAULT_DEPENDENCY_RESOLUTION
- VMTYPE, VSOCK_PORT, VIRTIO_PORT
- PLAIN, NO_CLOUD_INIT

The new entries are grouped next to the related existing entries
(disks near mounts, yq-provision near datafile, rosetta/vmtype/etc.
after the SLIRP/DNS block) so the section reads in the same order as
`lima.env` itself.

Closes lima-vm#2791

Signed-off-by: Bitalizer <23104115+bitalizer@users.noreply.github.com>
@bitalizer bitalizer force-pushed the docs-cidata-env-vars branch from 7269a07 to 17d1451 Compare June 2, 2026 09:21
@bitalizer
Copy link
Copy Markdown
Author

bitalizer commented Jun 2, 2026

squashed into a single commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Various LIMA_CIDATA_* variables are not documented

2 participants