Documentation ¶
Overview ¶
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"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { TmpFileLoc string `env:"TMP_FILE_LOC" envDefault:"tmp"` UseSudo bool `env:"USE_SUDO" envDefault:"false"` EnableSEV bool `env:"ENABLE_SEV" 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"` MemoryConfig // 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"` }
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.