vm

package
v0.0.0-...-09bfeb9 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeCPUCount

func ComputeCPUCount() uint

func ComputeMemorySize

func ComputeMemorySize() uint64

func CreateAudioDeviceConfiguration

func CreateAudioDeviceConfiguration() (*vz.VirtioSoundDeviceConfiguration, error)

func CreateBlockDeviceConfiguration

func CreateBlockDeviceConfiguration(diskPath string) (*vz.VirtioBlockDeviceConfiguration, error)

func CreateFileAndWriteTo

func CreateFileAndWriteTo(data []byte, path string) error

CreateFileAndWriteTo creates a new file and write data to it.

func CreateGraphicsDeviceConfiguration

func CreateGraphicsDeviceConfiguration() (*vz.MacGraphicsDeviceConfiguration, error)

func CreateKeyboardConfiguration

func CreateKeyboardConfiguration() (*vz.USBKeyboardConfiguration, error)

func CreateNetworkDeviceConfiguration

func CreateNetworkDeviceConfiguration(networkInterface vz.BridgedNetwork) (*vz.VirtioNetworkDeviceConfiguration, error)

func CreateVMConfiguration

func CreateVMConfiguration(platformConfig vz.PlatformConfiguration, cpuCount uint, memorySize uint64, networkInterfaceIdentifier string) (*vz.VirtualMachineConfiguration, error)

func GetAuxiliaryStoragePath

func GetAuxiliaryStoragePath() string

GetAuxiliaryStoragePath gets a path for auxiliary storage.

func GetDiskImagePath

func GetDiskImagePath() string

GetDiskImagePath gets a path for disk image.

func GetHardwareModelPath

func GetHardwareModelPath() string

GetHardwareModelPath gets a path for hardware model.

func GetMachineIdentifierPath

func GetMachineIdentifierPath() string

GetMachineIdentifierPath gets a path for machine identifier.

func GetRestoreImagePath

func GetRestoreImagePath() string

GetRestoreImagePath gets a path for restore image file.

func GetVMBundlePath

func GetVMBundlePath() string

GetVMBundlePath gets macOS VM bundle path.

func SetupMacPlatformConfiguration

func SetupMacPlatformConfiguration() (*vz.MacPlatformConfiguration, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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