Using CPU affinity, you can assign a virtual machine to a specific processor. This allows you to restrict the assignment of virtual machines to a specific available processor in multiprocessor systems.


  1. Find the virtual machine in the vSphere Web Client inventory.
    1. To find a virtual machine, select a data center, folder, cluster, resource pool, or host.
    2. Click the Related Objects tab and click Virtual Machines.
  2. Right-click the virtual machine and click Edit Settings.
  3. Under Virtual Hardware, expand CPU.
  4. Under Scheduling Affinity, select physical processor affinity for the virtual machine.

    Use '-' for ranges and ',' to separate values.

    For example, "0, 2, 4-7" would indicate processors 0, 2, 4, 5, 6 and 7.

  5. Select the processors where you want the virtual machine to run and click OK.