Documentation ¶
Index ¶
- func GetProxyVariables() map[string]string
- type Monitor
- type QemuCmd
- func (q *QemuCmd) Build() []string
- func (q *QemuCmd) SetBootableImage(image string)
- func (q *QemuCmd) SetCPUs(c uint64)
- func (q *QemuCmd) SetDisplay(display string)
- func (q *QemuCmd) SetIgnitionFile(file define.VMFile)
- func (q *QemuCmd) SetMemory(m uint64)
- func (q *QemuCmd) SetNetwork()
- func (q *QemuCmd) SetPropagatedHostEnvs()
- func (q *QemuCmd) SetQmpMonitor(monitor Monitor)
- func (q *QemuCmd) SetSerialPort(readySocket, vmPidFile define.VMFile, name string)
- func (q *QemuCmd) SetUSBHostPassthrough(usbs []USBConfig)
- func (q *QemuCmd) SetVirtfsMount(source, tag, securityModel string, readonly bool)
- type USBConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProxyVariables ¶
Types ¶
type Monitor ¶
type QemuCmd ¶
type QemuCmd []string
QemuCmd is an alias around a string slice to prevent the need to migrate the MachineVM struct due to changes
func NewQemuBuilder ¶
NewQemuBuilder creates a new QemuCmd object that we will build on top of, starting with the qemu binary, architecture specific options, and propagated proxy and SSL settings
func PropagateHostEnv ¶
PropagateHostEnv is here for providing the ability to propagate proxy and SSL settings (e.g. HTTP_PROXY and others) on a start and avoid a need of re-creating/re-initiating a VM
func (*QemuCmd) SetBootableImage ¶
SetBootableImage specifies the image the machine will use to boot
func (*QemuCmd) SetDisplay ¶
SetDisplay specifies whether the machine will have a display
func (*QemuCmd) SetIgnitionFile ¶
SetIgnitionFile specifies the machine's ignition file
func (*QemuCmd) SetNetwork ¶
func (q *QemuCmd) SetNetwork()
SetNetwork adds a network device to the machine
func (*QemuCmd) SetPropagatedHostEnvs ¶
func (q *QemuCmd) SetPropagatedHostEnvs()
SetPropagatedHostEnvs adds options that propagate SSL and proxy settings
func (*QemuCmd) SetQmpMonitor ¶
SetQmpMonitor specifies the machine's qmp socket
func (*QemuCmd) SetSerialPort ¶
SetSerialPort adds a serial port to the machine for readiness
func (*QemuCmd) SetUSBHostPassthrough ¶
SetNetwork adds a network device to the machine
func (*QemuCmd) SetVirtfsMount ¶
SetVirtfsMount adds a virtfs mount to the machine