When create container using firecracker-ctr directly, we always use default vcpu/mem setting (i.e., 1C 128MB) for firecracker vm at present. Allowing users to specify desired vcpu count and memory size via oci annotation is probably a simple way to fix the issue.
fctr run \
--snapshotter devmapper \
--runtime aws.firecracker \
--cpu-quota 20000 \
--cpu-period 100000 \
--memory-limit 536870912 \
--annotation aws.firecracker.vm.vcpu-count=2 \
--annotation aws.firecracker.vm.mem-size-mib=1024 \
--net-host \
-d \
docker.io/library/nginx:1.25 \
$CONTAINER_NAME
I can create a PR to support this use case if you think it makes sense.
When create container using firecracker-ctr directly, we always use default vcpu/mem setting (i.e., 1C 128MB) for firecracker vm at present. Allowing users to specify desired vcpu count and memory size via oci annotation is probably a simple way to fix the issue.
I can create a PR to support this use case if you think it makes sense.