应至少为 Windows Server 2012 R2 配置最小内存量Windows Server 2012 R2 should be configured with at least the minimum amount of memory

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

有关最佳做法和扫描的详细信息,请参阅运行最佳做法分析器扫描并管理扫描结果For more information about best practices and scans, see Run Best Practices Analyzer Scans and Manage Scan Results.

属性Property 详细信息Details
操作系统Operating System Windows Server 2016Windows Server 2016
产品/功能Product/Feature Hyper-VHyper-V
严重性Severity 错误Error
类别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 2012 R2 的虚拟机配置为小于最小 RAM 量,即 512 MB。A virtual machine running Windows Server 2012 R2 is configured with less than the minimum amount of RAM, which is 512 MB.

影响Impact

以下虚拟机上的来宾操作系统可能无法运行或可能运行 unreliably:The guest operating system on the following virtual machines might not run or might run unreliably:

<list of virtual machines>

解决方法Resolution

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

使用 Hyper-v 管理器增加内存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 " 设置为至少 512 MB,然后单击 "确定"On the Memory page, set the Startup RAM to at least 512 MB 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 512MB

另请参阅See Also

Set-vmmemorySet-VMMemory