qemu

package
v5.2.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	QemuCommand = "qemu-system-x86_64"
)

Functions

This section is empty.

Types

type QEMUStubber

type QEMUStubber struct {
	vmconfigs.QEMUConfig
	// Command describes the final QEMU command line
	Command command.QemuCmd
	// contains filtered or unexported fields
}

func NewStubber added in v5.2.0

func NewStubber() (*QEMUStubber, error)

func (*QEMUStubber) CreateVM

func (*QEMUStubber) Exists

func (q *QEMUStubber) Exists(name string) (bool, error)

func (*QEMUStubber) GetDisk

func (q *QEMUStubber) GetDisk(userInputPath string, dirs *define.MachineDirs, mc *vmconfigs.MachineConfig) error

func (*QEMUStubber) GetRosetta added in v5.1.0

func (q *QEMUStubber) GetRosetta(mc *vmconfigs.MachineConfig) (bool, error)

func (*QEMUStubber) MountType

func (q *QEMUStubber) MountType() vmconfigs.VolumeMountType

func (*QEMUStubber) MountVolumesToVM

func (q *QEMUStubber) MountVolumesToVM(mc *vmconfigs.MachineConfig, quiet bool) error

mountVolumesToVM iterates through the machine's volumes and mounts them to the machine TODO this should probably be temporary; mount code should probably be its own package and shared completely

func (*QEMUStubber) PostStartNetworking

func (q *QEMUStubber) PostStartNetworking(mc *vmconfigs.MachineConfig, noInfo bool) error

func (*QEMUStubber) PrepareIgnition

func (*QEMUStubber) Remove

func (q *QEMUStubber) Remove(mc *vmconfigs.MachineConfig) ([]string, func() error, error)

Remove deletes all the files associated with a machine including the image itself

func (*QEMUStubber) RemoveAndCleanMachines

func (q *QEMUStubber) RemoveAndCleanMachines(_ *define.MachineDirs) error

func (QEMUStubber) RequireExclusiveActive

func (q QEMUStubber) RequireExclusiveActive() bool

func (*QEMUStubber) SetProviderAttrs

func (q *QEMUStubber) SetProviderAttrs(mc *vmconfigs.MachineConfig, opts define.SetOptions) error

func (*QEMUStubber) StartNetworking

func (q *QEMUStubber) StartNetworking(mc *vmconfigs.MachineConfig, cmd *gvproxy.GvproxyCommand) error

func (*QEMUStubber) StartVM

func (q *QEMUStubber) StartVM(mc *vmconfigs.MachineConfig) (func() error, func() error, error)

func (*QEMUStubber) State

func (q *QEMUStubber) State(mc *vmconfigs.MachineConfig, bypass bool) (define.Status, error)

func (*QEMUStubber) StopHostNetworking

func (q *QEMUStubber) StopHostNetworking(_ *vmconfigs.MachineConfig, _ define.VMType) error

func (*QEMUStubber) StopVM

func (q *QEMUStubber) StopVM(mc *vmconfigs.MachineConfig, _ bool) error

Stop uses the qmp monitor to call a system_powerdown

func (*QEMUStubber) UpdateSSHPort

func (q *QEMUStubber) UpdateSSHPort(mc *vmconfigs.MachineConfig, port int) error

func (QEMUStubber) UseProviderNetworkSetup

func (q QEMUStubber) UseProviderNetworkSetup() bool

func (QEMUStubber) UserModeNetworkEnabled

func (q QEMUStubber) UserModeNetworkEnabled(*vmconfigs.MachineConfig) bool

func (*QEMUStubber) VMType

func (q *QEMUStubber) VMType() define.VMType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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