14.13.4. Displaying Information about the Virtual CPU Counts of a Domain

virsh vcpucount requires a domain name or a domain ID. For example:
# virsh vcpucount rhel6
maximum      config         2
maximum      live           2
current      config         2
current      live           2
The vcpucount can take the following options:
  • --maximum displays the maximum number of vCPUs available
  • --active displays the number of currently active vCPUs
  • --live displays the value from the running domain
  • --config displays the value to be configured on guest virtual machine's next boot
  • --current displays the value according to current domain state
  • --guest displays the count that is returned is from the perspective of the guest