balloon

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package balloon provides memory balloon helpers for running virtual machines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDevice

func AddDevice(config vz.VZVirtualMachineConfiguration)

AddDevice adds a Virtio traditional memory balloon device to config.

func SetTarget

func SetTarget(queue *vm.Queue, machine vz.VZVirtualMachine, sizeGB float64) error

SetTarget sets the balloon target size in gigabytes.

Types

type Info

type Info struct {
	HasBalloon     bool
	TargetGB       float64
	MinimumAllowMB uint64
}

Info contains memory balloon device information.

func GetInfo

func GetInfo(queue *vm.Queue, machine vz.VZVirtualMachine) (Info, error)

GetInfo retrieves memory balloon information from a running VM.

Jump to

Keyboard shortcuts

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