Versions in this module Expand all Collapse all v0 v0.18.11 Jan 8, 2026 v0.18.10 Jan 8, 2026 v0.18.8 Jan 7, 2026 v0.18.7 Jan 7, 2026 v0.18.6 Jan 6, 2026 v0.18.5 Jan 6, 2026 Changes in this version + type BalloonConfig struct + DeflateOnOom bool + FreePageReporting bool + Size int64 + type Client struct + func NewClient(socketPath string) *Client + func (c *Client) VmAddDevice(ctx context.Context, arg *DeviceConfig) (*PciDeviceInfo, error) + func (c *Client) VmAddDisk(ctx context.Context, arg *DiskConfig) (*PciDeviceInfo, error) + func (c *Client) VmAddFs(ctx context.Context, arg *FsConfig) (*PciDeviceInfo, error) + func (c *Client) VmAddNet(ctx context.Context, arg *NetConfig) (*PciDeviceInfo, error) + func (c *Client) VmAddPmem(ctx context.Context, arg *PmemConfig) (*PciDeviceInfo, error) + func (c *Client) VmAddUserDevice(ctx context.Context, arg *VmAddUserDevice) (*PciDeviceInfo, error) + func (c *Client) VmAddVdpa(ctx context.Context, arg *VdpaConfig) (*PciDeviceInfo, error) + func (c *Client) VmAddVsock(ctx context.Context, arg *VsockConfig) (*PciDeviceInfo, error) + func (c *Client) VmBoot(ctx context.Context) error + func (c *Client) VmCoredump(ctx context.Context, arg *VmCoredumpData) error + func (c *Client) VmCounters(ctx context.Context) (*VmCounters, error) + func (c *Client) VmCreate(ctx context.Context, arg *VmConfig) error + func (c *Client) VmDelete(ctx context.Context) error + func (c *Client) VmInfo(ctx context.Context) (*VmInfo, error) + func (c *Client) VmPause(ctx context.Context) error + func (c *Client) VmPowerButton(ctx context.Context) error + func (c *Client) VmReboot(ctx context.Context) error + func (c *Client) VmReceiveMigration(ctx context.Context, arg *ReceiveMigrationData) error + func (c *Client) VmRemoveDevice(ctx context.Context, arg *VmRemoveDevice) error + func (c *Client) VmResize(ctx context.Context, arg *VmResize) error + func (c *Client) VmResizeZone(ctx context.Context, arg *VmResizeZone) error + func (c *Client) VmRestore(ctx context.Context, arg *RestoreConfig) error + func (c *Client) VmResume(ctx context.Context) error + func (c *Client) VmSendMigration(ctx context.Context, arg *SendMigrationData) error + func (c *Client) VmShutdown(ctx context.Context) error + func (c *Client) VmSnapshot(ctx context.Context, arg *VmSnapshotConfig) error + func (c *Client) VmmNmi(ctx context.Context) error + func (c *Client) VmmPing(ctx context.Context) (*VmmPingResponse, error) + func (c *Client) VmmShutdown(ctx context.Context) error + type ConsoleConfig struct + File string + Iommu bool + Mode string + Socket string + type CpuAffinity struct + HostCpus []int + Vcpu int + type CpuFeatures struct + Amx bool + type CpuTopology struct + CoresPerDie int + DiesPerPackage int + Packages int + ThreadsPerCore int + type CpusConfig struct + Affinity []*CpuAffinity + BootVcpus int + Features *CpuFeatures + KvmHyperv bool + MaxPhysBits int + MaxVcpus int + Topology *CpuTopology + type DebugConsoleConfig struct + File string + Iobase int + Mode string + type DeviceConfig struct + Id string + Iommu bool + Path string + PciSegment int16 + XNvGpudirectClique int + type DeviceNode struct + Children []string + Id string + PciBdf string + Resources []map[string]interface{} + type DiskConfig struct + Direct bool + Id string + Iommu bool + NumQueues int + Path string + PciSegment int16 + QueueAffinity []*VirtQueueAffinity + QueueSize int + RateLimitGroup string + RateLimiterConfig *RateLimiterConfig + Readonly bool + Serial string + VhostSocket string + VhostUser bool + type FsConfig struct + Id string + NumQueues int + PciSegment int16 + QueueSize int + Socket string + Tag string + type LandlockConfig struct + Access string + Path string + type MemoryConfig struct + HotplugMethod string + HotplugSize int64 + HotpluggedSize int64 + HugepageSize int64 + Hugepages bool + Mergeable bool + Prefault bool + Shared bool + Size int64 + Thp bool + Zones []*MemoryZoneConfig + type MemoryZoneConfig struct + File string + HostNumaNode int + HotplugSize int64 + HotpluggedSize int64 + HugepageSize int64 + Hugepages bool + Id string + Mergeable bool + Prefault bool + Shared bool + Size int64 + type NetConfig struct + HostMac string + Id string + Iommu bool + Ip string + Mac string + Mask string + Mtu int + NumQueues int + PciSegment int16 + QueueSize int + RateLimiterConfig *RateLimiterConfig + Tap string + VhostMode string + VhostSocket string + VhostUser bool + type NumaConfig struct + Cpus []int + Distances []*NumaDistance + GuestNumaId int + MemoryZones []string + PciSegments []int + SgxEpcSections []string + type NumaDistance struct + Destination int + Distance int + type PayloadConfig struct + Cmdline string + Firmware string + Initramfs string + Kernel string + type PciDeviceInfo struct + Bdf string + Id string + type PciSegmentConfig struct + Mmio32ApertureWeight int + Mmio64ApertureWeight int + PciSegment int16 + type PlatformConfig struct + IommuSegments []int16 + NumPciSegments int16 + OemStrings []string + SerialNumber string + Tdx bool + Uuid string + type PmemConfig struct + DiscardWrites bool + File string + Id string + Iommu bool + PciSegment int16 + Size int64 + type RateLimitGroupConfig struct + Id string + RateLimiterConfig *RateLimiterConfig + type RateLimiterConfig struct + Bandwidth *TokenBucket + Ops *TokenBucket + type ReceiveMigrationData struct + ReceiverUrl string + type RestoreConfig struct + Prefault bool + SourceUrl string + type RngConfig struct + Iommu bool + Src string + type SendMigrationData struct + DestinationUrl string + Local bool + type SgxEpcConfig struct + Id string + Prefault bool + Size int64 + type TokenBucket struct + OneTimeBurst int64 + RefillTime int64 + Size int64 + type TpmConfig struct + Socket string + type VdpaConfig struct + Id string + Iommu bool + NumQueues int + Path string + PciSegment int16 + type VirtQueueAffinity struct + HostCpus []int + QueueIndex int + type VmAddUserDevice struct + Socket string + type VmConfig struct + Balloon *BalloonConfig + Console *ConsoleConfig + Cpus *CpusConfig + DebugConsole *DebugConsoleConfig + Devices []*DeviceConfig + Disks []*DiskConfig + Fs []*FsConfig + Iommu bool + LandlockEnable bool + LandlockRules []*LandlockConfig + Memory *MemoryConfig + Net []*NetConfig + Numa []*NumaConfig + Payload *PayloadConfig + PciSegments []*PciSegmentConfig + Platform *PlatformConfig + Pmem []*PmemConfig + Pvpanic bool + RateLimitGroups []*RateLimitGroupConfig + Rng *RngConfig + Serial *ConsoleConfig + SgxEpc []*SgxEpcConfig + Tpm *TpmConfig + Vdpa []*VdpaConfig + Vsock *VsockConfig + Watchdog bool + type VmCoredumpData struct + DestinationUrl string + type VmCounters struct + type VmInfo struct + Config *VmConfig + DeviceTree map[string]*DeviceNode + MemoryActualSize int64 + State string + type VmRemoveDevice struct + Id string + type VmResize struct + DesiredBalloon int64 + DesiredRam int64 + DesiredVcpus int + type VmResizeZone struct + DesiredRam int64 + Id string + type VmSnapshotConfig struct + DestinationUrl string + type VmmPingResponse struct + BuildVersion string + Features []string + Pid int64 + Version string + type VsockConfig struct + Cid int64 + Id string + Iommu bool + PciSegment int16 + Socket string v0.18.4-DeJeune May 5, 2025 v0.18.3-DeJeune May 1, 2025 v0.18.2-DeJeune Jan 23, 2025