qemu

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Platform platform.Name = "qemu"
)

Variables

This section is empty.

Functions

func NewFlight

func NewFlight(opts *Options) (platform.Flight, error)

Types

type Cluster

type Cluster struct {
	*platform.BaseCluster
	// contains filtered or unexported fields
}

Cluster is a local cluster of QEMU-based virtual machines.

XXX: must be exported so that certain QEMU tests can access struct members through type assertions.

func (*Cluster) Destroy

func (qc *Cluster) Destroy()

func (*Cluster) NewMachine

func (qc *Cluster) NewMachine(userdata *conf.UserData) (platform.Machine, error)

func (*Cluster) NewMachineWithOptions

func (qc *Cluster) NewMachineWithOptions(userdata *conf.UserData, options platform.MachineOptions) (platform.Machine, error)

func (*Cluster) NewMachineWithQemuOptions

func (qc *Cluster) NewMachineWithQemuOptions(userdata *conf.UserData, options platform.QemuMachineOptions) (platform.Machine, error)

type Options

type Options struct {
	// DiskImage is the full path to the disk image to boot in QEMU.
	DiskImage string
	// DiskSize if non-empty will expand the disk
	DiskSize string
	// DriveOpts is arbitrary comma-separated list of options
	DriveOpts string
	// Firmware will be passed to qemu
	Firmware string
	Memory   string
	Arch     string

	NbdDisk       bool
	MultiPathDisk bool
	Native4k      bool
	Nvme          bool

	//Option to create a temporary software TPM - true by default
	Swtpm bool

	// Array of $hostpath
	BindRO []string

	//IBM Secure Execution
	SecureExecution               bool
	SecureExecutionIgnitionPubKey string
	SecureExecutionHostKey        string

	*platform.Options
}

Options contains QEMU-specific options for the flight.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL