pub struct PetriVmConfig {
pub name: String,
pub arch: MachineArch,
pub firmware: Firmware,
pub memory: MemoryConfig,
pub proc_topology: ProcessorTopology,
pub agent_image: Option<AgentImage>,
pub openhcl_agent_image: Option<AgentImage>,
pub guest_crash_disk: Option<Arc<TempPath>>,
pub vmgs: PetriVmgsResource,
pub boot_device_type: BootDeviceType,
pub tpm_state_persistence: bool,
}Expand description
Petri VM configuration
Fields§
§name: StringThe name of the VM
arch: MachineArchThe architecture of the VM
firmware: FirmwareFirmware and/or OS to load into the VM and associated settings
memory: MemoryConfigThe amount of memory, in bytes, to assign to the VM
proc_topology: ProcessorTopologyThe processor tology for the VM
agent_image: Option<AgentImage>Agent to run in the guest
openhcl_agent_image: Option<AgentImage>Agent to run in OpenHCL
guest_crash_disk: Option<Arc<TempPath>>Disk to use for guest crash dumps
vmgs: PetriVmgsResourceVM guest state
boot_device_type: BootDeviceTypeThe boot device type for the VM
tpm_state_persistence: boolConfigure TPM state persistence
Auto Trait Implementations§
impl Freeze for PetriVmConfig
impl RefUnwindSafe for PetriVmConfig
impl Send for PetriVmConfig
impl Sync for PetriVmConfig
impl Unpin for PetriVmConfig
impl UnwindSafe for PetriVmConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more