pub struct ConfigFile {Show 16 fields
pub boot_source: Option<RawBootSourceConfig>,
pub drives: Vec<RawDriveConfig>,
pub machine_config: Option<RawMachineConfig>,
pub cpu_config: Option<RawCpuConfig>,
pub network_interfaces: Vec<RawNetworkInterfaceConfig>,
pub vsock: Option<RawVsockConfig>,
pub mmds_config: Option<RawMmdsConfig>,
pub mmds: Option<Value>,
pub balloon: Option<RawBalloonConfig>,
pub entropy: Option<RawEntropyConfig>,
pub serial: Option<RawSerialConfig>,
pub pmem: Vec<RawPmemConfig>,
pub hotplug_memory: Option<RawHotplugMemoryConfig>,
pub logger: Option<RawLoggerConfig>,
pub metrics: Option<RawMetricsConfig>,
pub squib: SquibExtension,
}Expand description
Static-config-file envelope.
Replayed in the deterministic order documented in 20 §
6: machine-config →
cpu-config → boot-source → drives → NICs → vsock → mmds-config → mmds → balloon → entropy →
serial → pmem → hotplug-memory → logger → metrics → Action(InstanceStart) (only if --no-api
is also set).
Fields§
§boot_source: Option<RawBootSourceConfig>boot-source is the only mandatory member at the controller level. Marked
optional here so the parser can produce a precise “missing boot-source” error
rather than serde’s terser one.
drives: Vec<RawDriveConfig>drives array (max 8 — enforced at the controller).
machine_config: Option<RawMachineConfig>machine-config.
cpu_config: Option<RawCpuConfig>cpu-config.
network_interfaces: Vec<RawNetworkInterfaceConfig>network-interfaces array (max 8).
vsock: Option<RawVsockConfig>vsock.
mmds_config: Option<RawMmdsConfig>mmds-config.
mmds: Option<Value>mmds data store seed (any JSON tree).
balloon: Option<RawBalloonConfig>balloon.
entropy: Option<RawEntropyConfig>entropy.
serial: Option<RawSerialConfig>serial.
pmem: Vec<RawPmemConfig>pmem array (max 4).
hotplug_memory: Option<RawHotplugMemoryConfig>hotplug-memory.
logger: Option<RawLoggerConfig>logger.
metrics: Option<RawMetricsConfig>metrics.
squib: SquibExtensionSquib-only extension sub-object (forward-compat).
Trait Implementations§
Source§impl Clone for ConfigFile
impl Clone for ConfigFile
Source§fn clone(&self) -> ConfigFile
fn clone(&self) -> ConfigFile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more