Configuring the number of virtual CPUs
Configure the number of virtual CPUs for a virtual server.
Procedure
Example
This example configures 5 virtual CPUs, which are all available at
startup:
<domain type="kvm">
...
<vcpu>5</vcpu>
...
</domain>This example configures a maximum of 5 available virtual CPUs for the
virtual server. When the virtual server is started, only 2 virtual CPUs are available. You
can modify the number of virtual CPUs that are available for the running virtual server using the virsh setvcpus command
.
<domain type="kvm">
...
<vcpu current="2">5</vcpu>
...
</domain>