Overview
VMInfo is a Pydantic model that provides comprehensive runtime information about a VM. It includes the current lifecycle state, configuration, networking details, and process identifiers.
Model Definition
Fields
The VM identifier. This is the unique ID assigned when the VM was created.
Current lifecycle state of the VM. Possible values:
VMState.CREATED: VM has been created but not startedVMState.RUNNING: VM is currently runningVMState.STOPPED: VM has been stoppedVMState.ERROR: VM encountered an error
The VM configuration used to create this VM. Contains all settings including CPU count, memory, kernel path, rootfs path, boot args, and environment variables.
Network configuration for the VM. Contains guest IP, gateway, TAP device name, MAC address, and optional SSH port forwarding.
None if the VM has not been configured with networking.Process ID of the Firecracker/QEMU process running the VM.
None if the VM is not currently running.Path to the Firecracker API socket for this VM.
None if the socket has not been created or the VM is not running.