pub fn run(
iso: PathBuf,
disk_size: String,
ram: String,
output: PathBuf,
no_graphics: bool,
vnc: bool,
cdc: bool,
) -> Result<()>Expand description
Installs an operating system from an ISO and converts it into a snapshot.
Architectural intent: Automates the multi-step workflow of creating a raw disk, running a QEMU-based installer, and feeding the resulting disk through the standard snapshot creation pipeline.
Constraints: Requires qemu-img and qemu-system-x86_64 to be
installed and in $PATH. The disk_size and ram parameters are passed
directly to QEMU tooling and must use size suffixes they understand (for
example 10G, 4G).
Side effects: Creates and deletes temporary disk images, spawns a full
virtual machine for the duration of installation, and writes the final
snapshot to output.