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

Support for Disk/Memory Units Other Than GiB for --memory and --disk flags #976

Open
ngshiheng opened this issue Feb 4, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@ngshiheng
Copy link

Description

Currently, the --memory or --disk flags allow users to specify the amount of memory allocated to the VM in Gibibyte (GiB).

Are there plans for Colima to support other units for CPU/Disk/MEM allocation, specifically Mebibyte (MiB)?

Suggestion 1

colima start --memory 2GiB
colima start --memory 512MiB

This change would provide flexibility to the users and make it easier to manage memory resources.

Suggestion 2

Alternatively, Colima can also support float (instead of only int) values for memory allocation. This would allow users to specify the exact amount of memory they want to allocate while keeping the unit as GiB.

Here is an example of how this could look:

colima start --memory 0.5 --disk 0.5 # GiB
@abiosoft abiosoft added the enhancement New feature or request label Feb 4, 2024
@abiosoft
Copy link
Owner

abiosoft commented Feb 4, 2024

The second suggestion is preferred as it would be backward compatible and not introduce breaking changes.

@MrCee
Copy link

MrCee commented Feb 15, 2024

I have found myself requiring the exact same thing.
Running the smallest vm simply for a twingate connector would be a use case.

@abiosoft
Copy link
Owner

abiosoft commented Dec 4, 2024

The support for specifying memory in decimals has been implemented in #1206.

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

No branches or pull requests

3 participants