qemu

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func MakeDiskTemplate added in v0.6.0

func MakeDiskTemplate(inputPath, outputPath string) (result error)

Copy input image to output and specialize output for running kola tests. This is not mandatory; the tests will do their best without it.

func NewCluster

func NewCluster(opts *Options, rconf *platform.RuntimeConfig) (platform.Cluster, error)

NewCluster creates a Cluster instance, suitable for running virtual machines in QEMU.

Types

type Cluster

type Cluster struct {
	*local.LocalCluster
	// 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) NewMachine

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

func (*Cluster) NewMachineWithOptions added in v0.8.0

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

type Disk added in v0.8.0

type Disk struct {
	Size   string // disk image size in bytes, optional suffixes "K", "M", "G", "T" allowed
	Serial string // serial number to be passed to qemu via `serial=`. Disks show up under /dev/disk/by-id/virtio-<serial>
}

type MachineOptions added in v0.8.0

type MachineOptions struct {
	AdditionalDisks []Disk
}

type Options

type Options struct {
	// DiskImage is the full path to the disk image to boot in QEMU.
	DiskImage string
	Board     string

	// BIOSImage is name of the BIOS file to pass to QEMU.
	// It can be a plain name, or a full path.
	BIOSImage string

	*platform.Options
}

Options contains QEMU-specific options for the cluster.

Jump to

Keyboard shortcuts

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