Closed I-m2310 closed 4 years ago
Are you using the latest Firecracker version? We changed the vsock implementation and there are some changes required on Kata side as well.
Thank you for the quick response.
That's right, I was using the latest version, 0.18.0.
I downgraded to firecracker 0.17.0 and I overcame this error but now I got a new one.
The new error ->
Failed create pod sandbox: rpc error: code = Unknown desc = failed to create containerd task: [PUT /vsocks/{id}][400] putGuestVsockByIdBadRequest &{FaultMessage:Invalid request method and/or path: PUT /vsocks/root}: unknown
Kernel modules ->
alias char_major_10_238 vhost_net
alias char_major_10_241 vhost_vsock
alias devname:vhost_net vhost_net
alias devname:vhost_vsock vhost_vsock
alias tcm_vhost vhost_scsi
alias symbol:vhost_add_used vhost
alias symbol:vhost_add_used_and_signal vhost
alias symbol:vhost_add_used_and_signal_n vhost
alias symbol:vhost_add_used_n vhost
.....
And
QEMU: Checking for hardware virtualization : PASS
QEMU: Checking if device /dev/kvm exists : PASS
QEMU: Checking if device /dev/kvm is accessible : PASS
QEMU: Checking if device /dev/vhost-net exists : PASS
QEMU: Checking if device /dev/net/tun exists : PASS
.....
@I-m2310 Judging by the error you are getting ("Invalid request and/or path"), it looks like the Firecracker binary you are using was built without experimental vsock support. In Firecracker versions prior to 0.18.0, vsock was included as an experimental, compile-time feature that was not enabled by default. In order to use vsock, Firecracker needed to be built with --feature vsock
(i.e. devtool build --release -- --feature vsock
).
Thank you !
Building firecracker with --feature vsock
, fixed the error.
Kata containers and Qemu run on the same cluster without problem, but not firecracker.
The config file ->
The firecracker pod has been stuck at the "ContainerCreating" status. It returns the following error:
Failed create pod sandbox: rpc error: code = Unknown desc = failed to create containerd task: [PUT /vsocks/{id}][400] putGuestVsockByIdBadRequest &{FaultMessage:unknown field
id, expected one of
vsock_id,
guest_cid,
uds_pathat line 1 column 28}: unknown