Skip to main content

Crate krun_vmm

Crate krun_vmm 

Source
Expand description

Virtual Machine Monitor that leverages the Linux Kernel-based Virtual Machine (KVM), and other virtualization features to run a single lightweight micro-virtual machine (microVM).

Modules§

builder
Handles setup and initialization a Vmm object. Enables pre-boot setup, instantiation and booting of a Firecracker VMM.
resources
Resource store for configured microVM resources.
signal_handler
Signal handling utilities.
vmm_config
Wrappers over structures used to configure the VMM.
worker

Structs§

Vmm
Contains the state and associated methods required for the Firecracker VMM.

Enums§

Error
Errors associated with the VMM internal logic. These errors cannot be generated by direct user input, but can result from bad configuration of the host (for example if Firecracker doesn’t have permissions to open the KVM fd).

Constants§

FC_EXIT_CODE_ARG_PARSING
Command line arguments parsing error.
FC_EXIT_CODE_BAD_CONFIGURATION
Bad configuration for microvm’s resources, when using a single json.
FC_EXIT_CODE_BAD_SYSCALL
Firecracker was shut down after intercepting a restricted system call.
FC_EXIT_CODE_GENERIC_ERROR
Generic error exit code.
FC_EXIT_CODE_OK
Success exit code.
FC_EXIT_CODE_SIGBUS
Firecracker was shut down after intercepting SIGBUS.
FC_EXIT_CODE_SIGSEGV
Firecracker was shut down after intercepting SIGSEGV.
FC_EXIT_CODE_UNEXPECTED_ERROR
Generic exit code for an error considered not possible to occur if the program logic is sound.

Traits§

VmmEventsObserver
Trait for objects that need custom initialization and teardown during the Vmm lifetime.

Type Aliases§

Result
Shorthand result type for internal VMM commands.