vcpucount

Displays the number of virtual CPUs associated with a virtual server.

Syntax


1  vcpucount!  --domain <VS>
2.1  --maximum
2.1  --active
2.1  --config
2.1  --live
2.1  --current
where
<VS>
Is the name, ID, or UUID of the virtual server.

Selected options

--active
Displays the number of virtual CPUs being used by the virtual server.
--config
Displays the number of virtual CPUs available to an inactive virtual server the next time it is restarted.
--current
Displays the number of virtual CPUs for the current virtual server.
--domain
Specifies the virtual server.
--live
Displays the number of CPUs for the active virtual server.
--maximum
Displays information on the maximum cap of virtual CPUs that a virtual server can add.

Usage

Modifying the number of virtual CPUs

Example

# virsh vcpucount vserv1
maximum      config         5
maximum      live           5
current      config         3
current      live           3