vcpucount
Displays the number of virtual CPUs associated with a virtual server.
Syntax
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 CPUsExample
# virsh vcpucount vserv1
maximum config 5
maximum live 5
current config 3
current live 3