You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vm: Expose memory, CPU topology, host affinity, and HA settings
Closes#2
Get-XoVm now returns these additional friendly properties:
- AffinityHost: preferred host UUID for VM placement
- MemorySize: memory allocation in bytes (from memory.size)
- CoresPerSocket: CPU topology (cores per socket)
- AutoPoweron: whether the VM auto-starts on host boot
- HA: high availability restart priority
Set-XoVm now accepts these new parameters:
- -AffinityHost: set the preferred host (with UUID validation)
- -Memory: set memory size in bytes
- -CPUs: set vCPU count
- -CoresPerSocket: set cores per socket (CPU topology)
- -AutoPoweron: set auto power-on behavior
- -HA: set HA priority ("", "restart", "best-effort")
The fields affinityHost, coresPerSocket, and high_availability are
added to the API query so they are fetched from Xen Orchestra.
Example — set each running VM's affinity to its current host:
Get-XoVm -PowerState Running | ForEach-Object {
Set-XoVm -VmUuid $_.VmUuid -AffinityHost $_.HostUuid
}
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments