VirtualMachineX86_64.cpu

VirtualMachineX86_64.cpu(cpu_num)

Get a virtual CPU (vCPU).

Parameters

cpu_num (int) – The number of the vCPU to get.

Returns

An object representing the vCPU for the current architecture of the virtual machine.

Return type

object

Raises

ValueError – If the requested vCPU number does not exists.

See also

cpu_count()