@edgible-team/sdk
    Preparing search index...

    Interface QemuConfig

    Platform-specific QEMU invocation pieces, assembled into a full argument vector by buildQemuArgs. Obtain via getQemuConfig.

    interface QemuConfig {
        accel: string[];
        binary: string;
        bios: string[];
        cpu: string[];
        machine: string[];
        driveArgs(imagePath: string): string[];
        netSocketArgs(
            role: "connect" | "listen",
            portOrAddr: string | number,
        ): string[];
        netUserArgs(sshPort: number): string[];
    }
    Index

    Properties

    accel: string[]

    Accelerator args: KVM (Linux), HVF (macOS), or TCG software emulation.

    binary: string

    QEMU system binary (qemu-system-x86_64 / qemu-system-aarch64).

    bios: string[]

    Firmware args (-bios <UEFI> on ARM when found; empty otherwise).

    cpu: string[]

    CPU model args (-cpu host when hardware acceleration is available).

    machine: string[]

    Machine-type args (-M virt on ARM; empty on x86_64).

    Methods

    • Disk attachment args for the given qcow2 image.

      Parameters

      • imagePath: string

      Returns string[]

    • Socket-netdev args for VM-to-VM networking (listen port or connect addr).

      Parameters

      • role: "connect" | "listen"
      • portOrAddr: string | number

      Returns string[]

    • User-mode net args forwarding host sshPort to guest port 22.

      Parameters

      • sshPort: number

      Returns string[]