linuxconfig

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package linuxconfig builds mechanical Linux VM configuration pieces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

Build creates a VZVirtualMachineConfiguration and applies Config devices.

Types

type Config

type Config struct {
	CPUCount uint
	MemoryGB uint64

	Display []displayx.Config
	Network Network
	Audio   *audiox.Config

	Keyboard      bool
	Pointing      bool
	Entropy       bool
	USBController bool
	MemoryBalloon bool
	Socket        bool
}

Config describes the mechanical Linux VM devices. It does not own policy such as boot selection, machine identity, or persistent state paths.

func (Config) Validate

func (c Config) Validate() error

Validate checks Config for shape errors.

type Network

type Network struct {
	Config networkx.Config
	MAC    *vz.VZMACAddress
}

Network describes the primary Virtio network device.

Jump to

Keyboard shortcuts

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