pub struct LaunchConfig {
pub rvf_path: PathBuf,
pub memory_mb: u32,
pub vcpus: u32,
pub api_port: u16,
pub ssh_port: Option<u16>,
pub enable_kvm: bool,
pub qemu_binary: Option<PathBuf>,
pub extra_args: Vec<String>,
pub kernel_path: Option<PathBuf>,
pub initramfs_path: Option<PathBuf>,
}Expand description
Configuration for launching an RVF microVM.
Fields§
§rvf_path: PathBufPath to the RVF store file.
memory_mb: u32Memory allocation in MiB.
vcpus: u32Number of virtual CPUs.
api_port: u16Host port to forward to the VM’s API port (guest :8080).
ssh_port: Option<u16>Optional host port to forward to the VM’s SSH port (guest :2222).
enable_kvm: boolWhether to enable KVM acceleration (falls back to TCG if unavailable unless the kernel requires KVM).
qemu_binary: Option<PathBuf>Override the QEMU binary path.
extra_args: Vec<String>Extra arguments to pass to QEMU.
kernel_path: Option<PathBuf>Override the kernel image path (skip extraction from RVF).
initramfs_path: Option<PathBuf>Override the initramfs path.
Trait Implementations§
Source§impl Clone for LaunchConfig
impl Clone for LaunchConfig
Source§fn clone(&self) -> LaunchConfig
fn clone(&self) -> LaunchConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LaunchConfig
impl Debug for LaunchConfig
Auto Trait Implementations§
impl Freeze for LaunchConfig
impl RefUnwindSafe for LaunchConfig
impl Send for LaunchConfig
impl Sync for LaunchConfig
impl Unpin for LaunchConfig
impl UnwindSafe for LaunchConfig
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