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

How to set vm.memory with firecracker-ctr ? #497

Open
windniw opened this issue Apr 20, 2021 · 2 comments
Open

How to set vm.memory with firecracker-ctr ? #497

windniw opened this issue Apr 20, 2021 · 2 comments
Labels
kind/enhancement New feature or request

Comments

@windniw
Copy link

windniw commented Apr 20, 2021

# start a container with command 
firecracker-ctr run --rm --tty --net-host --memory-limit 1073741824 docker.io/amd64/ubuntu c1 bash

root@microvm:/# free -m
             total       used       free     shared    buffers     cached
Mem:           112         88         23          0         17         46

CreateVM ignore any paramaters and I want to know how to enlarge my container's memory, looks like which control by MemSizeMib insteadof memory-limit

_, err = fcControlClient.CreateVM(shimCtx, &proto.CreateVMRequest{
VMID: s.vmID,
ExitAfterAllTasksDeleted: exitAfterAllTasksDeleted,
ContainerCount: int32(containerCount),
})

@kzys
Copy link
Contributor

kzys commented Apr 22, 2021

Yeah. Right now firecracker-ctr is just ctr. We have that to make sure firecracker-containerd is having compatible ctr.

Providing a new CLI that can pass firecracker-containerd specific commands/parameters is worth to consider, I think.

@kzys kzys added the kind/enhancement New feature or request label Apr 22, 2021
@RamyAllam
Copy link

Heey everyone 👋
Would you please advise if there is a manual way to increase the memory or other limits such as the CPU on the created microVM until the new CLI is released? Thank you,

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

No branches or pull requests

3 participants