Documentation ¶
Overview ¶
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
View Source
const (
KernelFile = "bzImage"
)
View Source
const VsockConfigPort uint32 = 9999
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { QemuBinPath string `env:"BIN_PATH" envDefault:"qemu-system-x86_64"` UseSudo bool `env:"USE_SUDO" envDefault:"false"` EnableSEV bool `env:"ENABLE_SEV" envDefault:"false"` EnableSEVSNP bool `env:"ENABLE_SEV_SNP" envDefault:"true"` EnableKVM bool `env:"ENABLE_KVM" envDefault:"true"` // machine, CPU, RAM Machine string `env:"MACHINE" envDefault:"q35"` CPU string `env:"CPU" envDefault:"EPYC"` SMPCount int `env:"SMP_COUNT" envDefault:"4"` MaxCPUs int `env:"SMP_MAXCPUS" envDefault:"64"` MemID string `env:"MEM_ID" envDefault:"ram1"` MemoryConfig // Kernel hash KernelHash bool `env:"KERNEL_HASH" envDefault:"false"` // OVMF OVMFCodeConfig OVMFVarsConfig // network NetDevConfig VirtioNetPciConfig // Vsock VSockConfig // disk DiskImgConfig // SEV SevConfig // display NoGraphic bool `env:"NO_GRAPHIC" envDefault:"true"` Monitor string `env:"MONITOR" envDefault:"pty"` // ports HostFwdRange string `env:"HOST_FWD_RANGE" envDefault:"6100-6200"` }
func (Config) ConstructQemuArgs ¶ added in v0.2.0
type DiskImgConfig ¶
type MemoryConfig ¶
type NetDevConfig ¶
type OVMFCodeConfig ¶
type OVMFCodeConfig struct { If string `env:"OVMF_CODE_IF" envDefault:"pflash"` Format string `env:"OVMF_CODE_FORMAT" envDefault:"raw"` Unit int `env:"OVMF_CODE_UNIT" envDefault:"0"` File string `env:"OVMF_CODE_FILE" envDefault:"/usr/share/OVMF/OVMF_CODE.fd"` ReadOnly string `env:"OVMF_CODE_READONLY" envDefault:"on"` }
type OVMFVarsConfig ¶
type VSockConfig ¶ added in v0.0.2
type VirtioNetPciConfig ¶
Click to show internal directories.
Click to hide internal directories.