qemu

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accel

func Accel(arch limayaml.Arch) string

func Cmdline

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

func Del

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

func EnsureDisk

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

EnsureDisk also ensures the kernel and the initrd.

func Exe

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

func FindVirtiofsd

func FindVirtiofsd(qemuExe string) (string, error)

func List

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

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

func Load

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

func Save

func Save(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     *limayaml.LimaYAML
	SSHLocalPort int
	SSHAddress   string
	VirtioGA     bool
}

type LimaQemuDriver

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

func New

func New(inst *store.Instance, sshLocalPort int) *LimaQemuDriver

func (*LimaQemuDriver) ApplySnapshot

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

func (*LimaQemuDriver) CanRunGUI

func (l *LimaQemuDriver) CanRunGUI() bool

func (*LimaQemuDriver) ChangeDisplayPassword

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

func (*LimaQemuDriver) CreateDisk

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

func (*LimaQemuDriver) CreateSnapshot

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

func (*LimaQemuDriver) DeleteSnapshot

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

func (*LimaQemuDriver) ForwardGuestAgent

func (l *LimaQemuDriver) ForwardGuestAgent() bool

func (*LimaQemuDriver) GetDisplayConnection

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

func (*LimaQemuDriver) GuestAgentConn

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

func (*LimaQemuDriver) Initialize

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

func (*LimaQemuDriver) ListSnapshots

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

func (*LimaQemuDriver) Register

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

func (*LimaQemuDriver) RunGUI

func (l *LimaQemuDriver) RunGUI() error

func (*LimaQemuDriver) Start

func (l *LimaQemuDriver) Start(ctx 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) VSockPort

func (l *LimaQemuDriver) VSockPort() int

func (*LimaQemuDriver) Validate

func (l *LimaQemuDriver) Validate() error

func (*LimaQemuDriver) VirtioPort

func (l *LimaQemuDriver) VirtioPort() string

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