runner

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildQemuArgs

func BuildQemuArgs(log *logrus.Logger, rcnf *RunConf) ([]string, error)

func RunCommand

func RunCommand() *cobra.Command

func StartQemu

func StartQemu(rcnf RunConf) error

Types

type RunConf

type RunConf struct {
	// Image filename
	Image string
	// kernel filename to boot with. (if empty no -kernel option will be passed to qemu)
	KernelFname string
	// Do not run the qemu command, just print it
	QemuPrint bool
	// Do not use KVM acceleration, even if /dev/kvm exists
	DisableKVM bool
	// Daemonize QEMU after initializing
	Daemonize bool
	// Log file for virtual console output
	ConsoleLogFile string

	// Print qemu command before running it
	Verbose bool

	// Disable the network connection to the VM
	DisableNetwork bool
	ForwardedPorts runner.PortForwards

	Logger *logrus.Logger

	HostMount string

	SerialPort int

	CPU int
	Mem string
	// Kind of CPU to use (e.g. host or kvm64)
	CPUKind string

	// RootDev is the type of device used for the root fs. Can be "hda" or "vda"
	RootDev string

	QemuMonitorPort int
}

Jump to

Keyboard shortcuts

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