ProtectedbuildBuilds the command line arguments array for the Firecracker binary based on firecrackerInitParams. This follows the same logic as the Rust ArgParser in the Firecracker source.
Stops the Firecracker microVM and cleans up resources. This kills the Firecracker process, removes the socket file and closes the API client connection.
After calling this method, the instance is no longer usable. Any subsequent method calls will throw an error.
Returns general information about the running instance.
The instance information
Gets the machine configuration of the VM.
The machine configuration
Updates the properties of a drive. This can be used to change the backing file or rate limiter of a drive post-boot.
The drive properties to update
StaticcreateCreates and boots a new Firecracker microVM.
This method:
Firecracker process initialization parameters
Whether to clean up an existing socket file before starting the VM (default: true)
A running FirecrackerMicroVM instance
Represents a running Firecracker microVM instance.
Use the static
create()method to spawn and boot a microVM. This class only exposes post-boot methods.