-
Notifications
You must be signed in to change notification settings - Fork 2.4k
[Feature Request] Support changing the vsock CID on snapshot restore #3344
Copy link
Copy link
Closed
Labels
Priority: MediumIndicates than an issue or pull request should be resolved ahead of issues or pull requests labelledIndicates than an issue or pull request should be resolved ahead of issues or pull requests labelledStatus: ParkedIndicates that an issues or pull request will be revisited laterIndicates that an issues or pull request will be revisited laterType: EnhancementIndicates new feature requestsIndicates new feature requests
Metadata
Metadata
Assignees
Labels
Priority: MediumIndicates than an issue or pull request should be resolved ahead of issues or pull requests labelledIndicates than an issue or pull request should be resolved ahead of issues or pull requests labelledStatus: ParkedIndicates that an issues or pull request will be revisited laterIndicates that an issues or pull request will be revisited laterType: EnhancementIndicates new feature requestsIndicates new feature requests
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Shipped
Feature Request
I'm aware of the vsock device limitations described in snapshot-support.md.
However there's no mentioning of how to support multiple clones of a snapshot with a configured vsock on the same host (they'll all share the same CID). For network interfaces, Network Connectivity for Clones describes pretty nicely how multiple clones can be run on the same host by using network namespaces. But to my knowledge, there's no network namespace support available for vsock sockets (I only found "vsock: support network namespace" which doesn't seem to have been finished yet).
I tried to configure a different vsock CID/path before restoring a snapshot, but in that case restoring fails with:
Describe the desired solution
The vsock man page mentions the following about "live migrations":
I wonder if it wouldn't be possible to implement the vsock support in Firecracker such that the CID/socket path can be changed for a snapshot at restore time?
In addition to allowing multiple clones with configured vsockets, such a change would also make it possible to use the vsock device for obtaining a simple SysGenID (see #2546).
Please let me know if there's anything obvious that I'm missing?
Checks