Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
14.13.5. Configuring Virtual CPU Affinity
To configure the affinity of virtual CPUs with physical CPUs:
# virsh vcpupin domain-id vcpu cpulist
The
domain-id
parameter is the guest virtual machine's ID number or name.
The
vcpu
parameter denotes the number of virtualized CPUs allocated to the guest virtual machine.The vcpu
parameter must be provided.
The
cpulist
parameter is a list of physical CPU identifier numbers separated by commas. The cpulist
parameter determines which physical CPUs the VCPUs can run on.
Additional parameters such as
--config
affect the next boot, whereas --live
affects the running domain, and --current
affects the current domain.