-
Notifications
You must be signed in to change notification settings - Fork 211
Description
follow the quickstart docoument,
https://github.com/firecracker-microvm/firecracker-containerd/blob/main/docs/quickstart.md
while i try to start up the vm with below command:
firecracker-ctr --address /run/firecracker-containerd/containerd.sock run --snapshotter devmapper --runtime aws.firecracker --rm --tty --net-host docker.io/library/busybox:latest busybox-test
meet the issue:
ctr: failed to start shim: start failed: aws.firecracker: unexpected error from CreateVM: rpc error: code = Unknown desc = failed to create VM: failed to dial the VM over vsock: non-temporary vsock dial failure: failed to dial "firecracker.vsock" within 100ms: dial unix firecracker.vsock: connect: connection refused: exit status 1: unknown
image from:
https://github.com/firecracker-microvm/firecracker/blob/main/docs/getting-started.md
but success with InstanceStart with this:
curl --unix-socket /tmp/firecracker.socket -i \
-X PUT 'http://localhost/actions' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"action_type": "InstanceStart"
}'
[root@localhost chenshi]# /usr/local/bin/firecracker --version
Firecracker v1.12.0
2025-06-16T09:14:04.034095739 [anonymous-instance:main] Firecracker exiting successfully. exit_code=0
[root@localhost chenshi]# firecracker-containerd --version
containerd github.com/containerd/containerd 1.7.27+unknown e6c7a36c34f827a4229d4c898f9b406e9742d7a5
[root@localhost chenshi]# firecracker-ctr --version
ctr github.com/containerd/containerd 1.7.27+unknown
/etc/firecracker-containerd/config.toml:
[root@localhost containerd]# cat /etc/firecracker-containerd/config.toml
version = 2
disabled_plugins = ["io.containerd.grpc.v1.cri"]
root = "/var/lib/firecracker-containerd/containerd"
state = "/run/firecracker-containerd"
[grpc]
address = "/run/firecracker-containerd/containerd.sock"
[plugins]
[plugins."io.containerd.snapshotter.v1.devmapper"]
pool_name = "fc-dev-thinpool"
base_image_size = "10GB"
root_path = "/var/lib/firecracker-containerd/snapshotter/devmapper"
[debug]
level = "debug"
[root@localhost containerd]# cat /etc/containerd/firecracker-runtime.json
{
"firecracker_binary_path": "/usr/local/bin/firecracker",
"kernel_image_path": "/var/lib/firecracker-containerd/runtime/hello-vmlinux.bin",
"kernel_args": "console=ttyS0 noapic reboot=k panic=1 pci=off nomodules rw",
"root_drive": "/var/lib/firecracker-containerd/runtime/default-rootfs.img",
"cpu_template": "T2",
"log_fifo": "fc-logs.fifo",
"log_levels": ["debug"],
"metrics_fifo": "fc-metrics.fifo"
}