qemu

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const MinimumQemuVersion = "4.0.0"

MinimumQemuVersion is the minimum supported QEMU version

Variables

This section is empty.

Functions

func Cmdline

func Cmdline(cfg Config) (string, []string, error)

func CreateDataDisk added in v0.14.0

func CreateDataDisk(dir, format string, size int) error

func Del added in v0.16.0

func Del(cfg Config, run bool, tag string) error

func EnsureDisk

func EnsureDisk(cfg Config) error

EnsureDisk also ensures the kernel and the initrd

func FindVirtiofsd added in v0.17.0

func FindVirtiofsd(qemuExe string) (string, error)

func List added in v0.16.0

func List(cfg Config, run bool) (string, error)

List returns a space-separated list of all snapshots, with header and newlines

func Load added in v0.16.0

func Load(cfg Config, run bool, tag string) error

func Save added in v0.16.0

func Save(cfg Config, run bool, tag string) error

func VirtiofsdCmdline added in v0.17.0

func VirtiofsdCmdline(cfg Config, mountIndex int) ([]string, error)

Types

type Config

type Config struct {
	Name         string
	InstanceDir  string
	LimaYAML     *limayaml.LimaYAML
	SSHLocalPort int
}

type LimaQemuDriver added in v0.14.0

type LimaQemuDriver struct {
	*driver.BaseDriver
	// contains filtered or unexported fields
}

func New added in v0.14.0

func New(driver *driver.BaseDriver) *LimaQemuDriver

func (*LimaQemuDriver) ApplySnapshot added in v0.16.0

func (l *LimaQemuDriver) ApplySnapshot(_ context.Context, tag string) error

func (*LimaQemuDriver) ChangeDisplayPassword added in v0.15.0

func (l *LimaQemuDriver) ChangeDisplayPassword(_ context.Context, password string) error

func (*LimaQemuDriver) CreateDisk added in v0.14.0

func (l *LimaQemuDriver) CreateDisk() error

func (*LimaQemuDriver) CreateSnapshot added in v0.16.0

func (l *LimaQemuDriver) CreateSnapshot(_ context.Context, tag string) error

func (*LimaQemuDriver) DeleteSnapshot added in v0.16.0

func (l *LimaQemuDriver) DeleteSnapshot(_ context.Context, tag string) error

func (*LimaQemuDriver) GetDisplayConnection added in v0.15.0

func (l *LimaQemuDriver) GetDisplayConnection(_ context.Context) (string, error)

func (*LimaQemuDriver) ListSnapshots added in v0.16.0

func (l *LimaQemuDriver) ListSnapshots(_ context.Context) (string, error)

func (*LimaQemuDriver) Start added in v0.14.0

func (l *LimaQemuDriver) Start(ctx context.Context) (chan error, error)

func (*LimaQemuDriver) Stop added in v0.14.0

func (l *LimaQemuDriver) Stop(ctx context.Context) error

func (*LimaQemuDriver) Validate added in v0.14.0

func (l *LimaQemuDriver) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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