Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Number of VMs to run in parallel (1 by default). Count int `json:"count"` // QEMU binary name (optional). // If not specified, qemu-system-arch is used by default. Qemu string `json:"qemu"` // Additional command line arguments for the QEMU binary. // If not specified, the default value specifies machine type, cpu and usually contains -enable-kvm. // If you provide this parameter, it needs to contain the desired machine, cpu // and include -enable-kvm if necessary. // "{{INDEX}}" is replaced with 0-based index of the VM (from 0 to Count-1). // "{{TEMPLATE}}" is replaced with the path to a copy of workdir/template dir. // "{{TCP_PORT}}" is replaced with a random free TCP port // "{{FN%8}}" is replaced with PCI BDF (Function#%8) and PCI BDF Dev# += index/8 QemuArgs string `json:"qemu_args"` // Location of the kernel for injected boot (e.g. arch/x86/boot/bzImage, optional). // This is passed to QEMU as the -kernel option. Kernel string `json:"kernel"` // Additional command line options for the booting kernel, for example `root=/dev/sda1`. // Can only be specified with kernel. Cmdline string `json:"cmdline"` // Initial ramdisk, passed via -initrd QEMU flag (optional). Initrd string `json:"initrd"` // QEMU image device. // The default value "hda" is transformed to "-hda image" for QEMU. // The modern way of describing QEMU hard disks is supported, so the value // "drive index=0,media=disk,file=" is transformed to "-drive index=0,media=disk,file=image" for QEMU. ImageDevice string `json:"image_device"` // EFI images containing the EFI itself, as well as this VMs EFI variables. EfiCodeDevice string `json:"efi_code_device"` EfiVarsDevice string `json:"efi_vars_device"` // QEMU network device type to use. // If not specified, some default per-arch value will be used. // See the full list with qemu-system-x86_64 -device help. NetDev string `json:"network_device"` // Number of VM CPUs (1 by default). CPU int `json:"cpu"` // Amount of VM memory in MiB (1024 by default). Mem int `json:"mem"` // For building kernels without -snapshot for pkg/build (true by default). Snapshot bool `json:"snapshot"` // Magic key used to dongle macOS to the device. AppleSmcOsk string `json:"apple_smc_osk"` }
Click to show internal directories.
Click to hide internal directories.