macosconfig

package
v0.6.12 Latest Latest
Warning

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

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

Documentation

Overview

Package macosconfig builds mechanical macOS 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 macOS VM devices. It does not own policy such as identity, restore, boot mode, or suspend state.

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