qemu

package
v2.0.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accel

func Accel(arch limatype.Arch) string

func Cmdline

func Cmdline(ctx context.Context, cfg Config) (exe string, args []string, err error)

func Del

func Del(ctx context.Context, cfg Config, run bool, tag string) error

func EnsureDisk

func EnsureDisk(ctx context.Context, cfg Config) error

EnsureDisk also ensures the kernel and the initrd.

func Exe

func Exe(arch limatype.Arch) (exe string, args []string, err error)

func FindVirtiofsd

func FindVirtiofsd(ctx context.Context, qemuExe string) (string, error)

func List

func List(ctx context.Context, cfg Config, run bool) (string, error)

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

func Load

func Load(ctx context.Context, cfg Config, run bool, tag string) error

func Save

func Save(ctx context.Context, cfg Config, run bool, tag string) error

func VirtiofsdCmdline

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

Types

type Config

type Config struct {
	Name         string
	InstanceDir  string
	LimaYAML     *limatype.LimaYAML
	SSHLocalPort int
	SSHAddress   string
	VirtioGA     bool
}

type LimaQemuDriver

type LimaQemuDriver struct {
	Instance     *limatype.Instance
	SSHLocalPort int
	// contains filtered or unexported fields
}

func New

func New() *LimaQemuDriver

func (*LimaQemuDriver) ApplySnapshot

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

func (*LimaQemuDriver) BootScripts

func (l *LimaQemuDriver) BootScripts() (map[string][]byte, error)

func (*LimaQemuDriver) ChangeDisplayPassword

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

func (*LimaQemuDriver) Configure

func (*LimaQemuDriver) Create

func (l *LimaQemuDriver) Create(_ context.Context) error

func (*LimaQemuDriver) CreateDisk

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

func (*LimaQemuDriver) CreateSnapshot

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

func (*LimaQemuDriver) Delete

func (l *LimaQemuDriver) Delete(_ context.Context) error

func (*LimaQemuDriver) DeleteSnapshot

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

func (*LimaQemuDriver) DisplayConnection

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

func (*LimaQemuDriver) FillConfig

func (l *LimaQemuDriver) FillConfig(ctx context.Context, cfg *limatype.LimaYAML, filePath string) error

func (*LimaQemuDriver) ForwardGuestAgent

func (l *LimaQemuDriver) ForwardGuestAgent() bool

func (*LimaQemuDriver) GuestAgentConn

func (l *LimaQemuDriver) GuestAgentConn(ctx context.Context) (net.Conn, string, error)

func (*LimaQemuDriver) Info

func (l *LimaQemuDriver) Info() driver.Info

func (*LimaQemuDriver) InspectStatus

func (l *LimaQemuDriver) InspectStatus(_ context.Context, _ *limatype.Instance) string

func (*LimaQemuDriver) ListSnapshots

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

func (*LimaQemuDriver) Register

func (l *LimaQemuDriver) Register(_ context.Context) error

func (*LimaQemuDriver) RunGUI

func (l *LimaQemuDriver) RunGUI() error

func (*LimaQemuDriver) SSHAddress

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

func (*LimaQemuDriver) Start

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

func (*LimaQemuDriver) Stop

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

func (*LimaQemuDriver) Unregister

func (l *LimaQemuDriver) Unregister(_ context.Context) error

func (*LimaQemuDriver) Validate

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

Directories

Path Synopsis
Package entitlementutil provides a workaround for https://github.com/lima-vm/lima/issues/1742
Package entitlementutil provides a workaround for https://github.com/lima-vm/lima/issues/1742

Jump to

Keyboard shortcuts

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