vcpucount

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

Syntax

Read syntax diagramSkip visual syntax diagram vcpucount  --domain <VS>  --maximum --active  --config --live --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