Share via


Configure Memory and Processors

Applies To: Windows Server 2008, Windows Virtualization

When you create a virtual machine, you configure the memory and processor to provide the appropriate computing resources for the workload you plan to run on the virtual machine. This workload consists of the guest operating system and all applications and services that will run at the same time on the virtual machine.

If you need to adjust the computing resources of a virtual machine, you can reconfigure the resources to meet the changing needs. You can also specify resource controls to automate how resources are allocated to virtual machines.

Configure memory or processors for a virtual machine

A virtual machine needs enough memory allocated to it to run the workload, plus a small buffer. However, each virtual machine consumes memory only when it is running or paused.

If the guest operating system is Windows Server® 2008 or the 32-bit version of Windows Server 2003, you can configure virtual processors based on the number of processors on the physical computer. For more information about determining the appropriate memory and processors for the guest operating system that will run on the virtual machine, see the deployment content for Hyper-V™ at the Windows Server 2008 TechCenter (https://go.microsoft.com/fwlink/?LinkID=108560).

Note

If the physical computer has multiple processors and uses non-uniform memory architecture (NUMA), we recommend that you do not assign more processors or memory to a virtual machine than are available on a single NUMA node. For example, do not assign 4 processors to a virtual machine if each NUMA node has only 2 processors. For more information about the processor architecture of the physical computer, see the documentation that came with the computer.

To configure memory or processors for a virtual machine

  1. Open Hyper-V Manager. Click Start, point to Administrative Tools, and then click Hyper-V Manager.

  2. In the results pane, under Virtual Machines, select the virtual machine that you want to configure.

  3. In the Action pane, under the virtual machine name, click Settings. Then, in the navigation pane, click the appropriate hardware setting as described in the following steps.

  4. To configure the memory, click Memory. On the Memory page, specify the new amount of memory.

  5. To configure the processor, click Processor. If multiple processors are supported by the guest operating system, specify the number of processors to assign to the virtual machine.

  6. Click OK.

Configure resource allocation for a virtual machine

Resource controls provide you with several ways to control the way that Hyper-V allocates resources to virtual machines. Following is a brief description of each control. For more information about using the controls, see the Hyper-V operations content at the Windows Server 2008 TechCenter (https://go.microsoft.com/fwlink/?LinkID=108561).

  • Virtual machine reserve. Of the total resources available to a virtual machine, specifies the percentage that is reserved for the virtual machine. This setting guarantees that the percentage you specify will be available to the virtual machine. This setting can also affect how many virtual machines you can run at one time.

  • Virtual machine limit. Of the total resources available to a virtual machine, specifies the maximum percentage that can be used by the virtual machine. This setting applies regardless of whether other virtual machines are running.

  • Relative weight. Specifies how Hyper-V allocates resources to this virtual machine when more than one virtual machine is running and the virtual machines compete for resources.

To configure resource allocation for a virtual machine

  1. Open Hyper-V Manager. Click Start, point to Administrative Tools, and then click Hyper-V Manager.

  2. In the results pane, under Virtual Machines, select the virtual machine that you want to configure.

  3. In the Action pane, under the virtual machine name, click Settings.

  4. In the navigation pane, click Processor.

  5. Under Resource control, specify the amount for each control you want to use.

  6. Click OK.

Additional considerations

  • By default, membership in the local Administrators group, or equivalent, is the minimum required to complete this procedure. However, an administrator can use Authorization Manager to modify the authorization policy so that a user or group of users can complete this procedure.

  • The virtual machine must be turned off before you can modify the memory or processor settings.

Additional references