Skip to content

Is guest_cid required to be unique across multiple Firecracker VMs if each has a different uds_path? #5235

Answered by bchalios
bbaterdene-gh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @bbaterdene-gh,

As you correctly say:

Given that Firecracker’s vsock implementation is userspace-based and uses UNIX domain sockets rather than the host kernel’s AF_VSOCK subsystem (like vhost-vsock does), is it safe to reuse the same guest_cid across VMs?

We are not using AF_VSOCK on the host side. In our case each microVM has its own namespace for vsock IDs, which means that two different microVMs can have the same CID.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bbaterdene-gh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants