Windows Server 2008 R2 应配置为建议的内存量Windows Server 2008 R2 should be configured with the recommended amount of memory

适用于:Windows Server 2016Applies To: Windows Server 2016

有关最佳做法和扫描的详细信息,请参阅最佳做法分析器For more information about best practices and scans, see Best Practices Analyzer.

属性Property 详细信息Details
操作系统Operating System Windows Server 2016Windows Server 2016
产品/功能Product/Feature Hyper-VHyper-V
严重性Severity 警告Warning
类别Category ConfigurationConfiguration

在以下部分中,"斜体" 指示在此问题的最佳做法分析器工具中出现的 UI 文本。In the following sections, italics indicates UI text that appears in the Best Practices Analyzer tool for this issue.

问题Issue

为运行 Windows Server 2008 R2 的虚拟机配置的 RAM 小于建议的 RAM 量(2 GB)。A virtual machine running Windows Server 2008 R2 is configured with less than the recommended amount of RAM, which is 2 GB.

影响Impact

来宾操作系统和应用程序可能无法正常运行。可能没有足够的内存可同时运行多个应用程序。这会影响以下虚拟机:The guest operating system and applications might not perform well. There might not be enough memory to run multiple applications at once. This impacts the following virtual machines:

<list of virtual machine names>

解决方法Resolution

使用 Hyper-v 管理器将分配给此虚拟机的内存至少增至 2 GB。Use Hyper-V Manager to increase the memory allocated to this virtual machine to at least 2 GB.

使用 Hyper-v 管理器增加内存To increase the memory using Hyper-V Manager

  1. 打开 Hyper-V 管理器。Open Hyper-V Manager. 单击 “开始”,指向 “管理工具”,然后单击 “Hyper-V 管理器”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. 虚拟机的状态应列为 " "。The state of the virtual machine should be listed as Off. 如果不是,请右键单击该虚拟机,然后单击 " 关闭"。If it is not, right-click the virtual machine and then click Shut Down.

  3. “操作” 窗格中的虚拟机名称下,单击 “设置”In the Action pane, under the virtual machine name, click Settings.

  4. 在导航窗格中,单击 " 内存"。In the navigation pane, click Memory.

  5. 在 " 内存 " 页上,将 " 启动 RAM " 设置为至少 2 GB,然后单击 "确定"On the Memory page, set the Startup RAM to at least 2 GB and then click OK.

使用 Windows PowerShell 增加内存Increase the memory using Windows PowerShell

  1. 打开 Windows PowerShell。Open Windows PowerShell. 从桌面 (,单击 " 开始 ",然后开始键入 Windows PowerShell。 ) (From the desktop, click Start and start typing Windows PowerShell.)

  2. 右键单击 " Windows PowerShell ",然后单击 " 以管理员身份运行"。Right-click Windows PowerShell and click Run as administrator.

  3. <MyVM>将替换为虚拟机的名称后,运行此命令:Run this command after replacing <MyVM> with the name of your virtual machine:

Set-VMMemory <MyVM> -StartupBytes 2GB

另请参阅See Also

Set-vmmemorySet-VMMemory