Skip to main content

Crate windows_headless

Crate windows_headless 

Source

Re-exports§

pub use ipc::MON_SOCK_NAME;
pub use ipc::QMP_SOCK_NAME;
pub use ipc::SERIAL_LOG_NAME;
pub use media::MediaSpec;
pub use media::build_installer_media;
pub use media::extract_iso_file_to_disk;
pub use media::extract_virtio_netkvm;
pub use media::split_wim;
pub use qemu::Display;
pub use qemu::HeadlessVm;
pub use qemu::HeadlessVmBuilder;
pub use qemu::PROVEN_SSH_HOST;
pub use qemu::PROVEN_SSH_PORT;
pub use qemu::PROVEN_VNC_DISPLAY;
pub use qemu::PROVEN_VNC_PASSWORD;
pub use qemu::WindowsVersion;
pub use qemu::machine_for;
pub use qemu::qmp_alive;
pub use qemu::vnc_url;
pub use qemu_portable::PortableQemu;
pub use qemu_portable::PortableWimlib;
pub use storage::DiskManager;
pub use unattend::Architecture;
pub use unattend::VmConfig;
pub use unattend::auto_detect_platform;
pub use unattend::kvm_available;
pub use unattend::resolve_accel;

Modules§

cache
Single shared cache-root resolution for every cache group.
commands
Command implementations behind the thin CLI in main.rs.
downloader
ISO download helpers (feature downloader).
ipc
Cross-platform IPC to QEMU’s monitor (HMP) and QMP endpoints.
media
Bootable USB installer media, built with pure Rust (no host tools).
paths
Single source of truth for every well-known file and cache-group name: installer artifacts, per-VM state files, portable-tree layout, cache groups. Renaming means editing here — a literal for one of these names anywhere else silently splits old/new state (a renamed file the code can’t find, a cache group that orphans gigabytes).
pins
Single source of truth for every external version pin and release identity. Bumping a dependency means editing here — not hunting format! strings across modules.
provenance
Build provenance sidecar: build-media writes <out>.json next to the installer image, capturing everything needed to reproduce or audit the build — source ISO identity, host specs, portable dependency pins, and answer-file parameters (never secrets: no passwords, keys, or tokens).
qemu
qemu_portable
Portable QEMU provisioning from jzombie/lab-qemu-portable releases (feature downloader).
qmp
screen_knn
k-NN screen classifier: normalized-pixel embeddings + cosine similarity.
sizes
Docker-style size strings for VM sizing flags (--memory, --disk-size).
ssh
storage
timeouts
Single source of truth for every time budget in the crate. Bumping a timeout means editing here — not hunting Duration::from_secs(…) literals across modules (they were spread over seven files, and the user-facing messages duplicated the numbers a second time: “up to 10 min”, “after 50 s”, “waiting 60 s …”).
unattend
vision
Guest-screen vision: capture, classify, motion, cadence. Everything between pixels and verdicts lives here; commands orchestrates (run flows, SSH waits, reporting composition) and never touches a frame directly.