Skip to content

Preserve GiB memory units when creating bootc VMs - #414

Merged
hanthor merged 1 commit into
mainfrom
fix/bootc-gib-memory
Oct 4, 2026
Merged

hanthor merged 1 commit into
mainfrom
fix/bootc-gib-memory

Conversation

@hanthor

@hanthor hanthor commented Oct 4, 2026

Copy link
Copy Markdown
Member

corral bootc create ... --mem 6Gi rendered a guest with only 6 MiB: parseMem recognized G/M but treated Gi/Mi suffixes as raw numbers. The real AWS Marlin guest then stayed in 32-bit OVMF firmware without a display or SSH.

Normalize binary memory suffixes (Gi/Mi and GiB/MiB) before converting to MiB. Preserve the existing G/M and raw-MiB forms. Add parser cases and a rendered bootc VM regression requiring 6Gi to produce guest:6144Mi.

Validation: bootc-tagged pkg/kubevirt, cmd and corral-bootc tests pass. The AWS VM was corrected to guest:6Gi and restarted on its original host-passthrough CPU; guest boot validation is in progress.

@hanthor
hanthor merged commit 3afaf81 into main Oct 4, 2026
11 checks passed
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.

1 participant