From a46c2ffed2ee49f67fa7c73ec49f2fd15219f8ba Mon Sep 17 00:00:00 2001 From: kgopal3-intel Date: Thu, 2 Jul 2026 22:06:43 -0700 Subject: [PATCH] Update Create-a-virtual-machine-in-Hyper-V.md to specify VP count --- .../Create-a-virtual-machine-in-Hyper-V.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/WindowsServerDocs/virtualization/hyper-v/get-started/Create-a-virtual-machine-in-Hyper-V.md b/WindowsServerDocs/virtualization/hyper-v/get-started/Create-a-virtual-machine-in-Hyper-V.md index 73470d84f2..66e45ad1db 100644 --- a/WindowsServerDocs/virtualization/hyper-v/get-started/Create-a-virtual-machine-in-Hyper-V.md +++ b/WindowsServerDocs/virtualization/hyper-v/get-started/Create-a-virtual-machine-in-Hyper-V.md @@ -75,6 +75,19 @@ To create a virtual machine in Hyper-V Manager, follow these steps: 1. After verifying your choices in the **Summary** page, select **Finish**. +Now that the virtual machine is created, you can specify the number of virtual processors by following these steps: + +1. In Hyper-V Manager, in the right pane, right-click the virtual machine and select **Settings...** to open the Settings window. + +1. In the left pane, under **Hardware**, select the **Processor** setting. In the right pane, locate the **Number of virtual processors** setting. + +1. Specify the number of virtual processors you want to allocate to the virtual machine. + + > [!NOTE] + > You cannot specify more number of virtual processors for the virtual machine than there are logical processors on the host. + > You cannot specify more number of virtual processors for the virtual machine than what is supported by the version of Windows Server running on the host. For more information regarding the maximum number of virtual processors supported by the version of Windows Server running on the host, see [Hyper-V Maximum Scale Limits](../maximum-scale-limits.md). + > Hyper-V Manager does not allow you to specify more than 1024 virtual processors, even if the host has more than 1024 logical processors and the version of Windows Server running on the host supports it. The [Set-VMProcessor](/powershell/module/hyper-v/set-vmprocessor) cmdlet in Windows Powershell does not have this limitation and can be used instead to specify more than 1024 virtual processors. + ### [PowerShell](#tab/powershell) To create a virtual machine with Windows PowerShell using [New-VM](/powershell/module/hyper-v/new-vm), follow these steps: @@ -123,6 +136,16 @@ To create a virtual machine with Windows PowerShell using [New-VM](/powershell/m - **New virtual hard disk that boots to operating system image** - To create a virtual machine with a new virtual disk that boots to an operating system image, see the PowerShell example in [Create virtual machine walkthrough for Hyper-V on Windows](/virtualization/hyper-v-on-windows/quick-start/create-virtual-machine). +1. Use the [Set-VMProcessor](/powershell/module/hyper-v/set-vmprocessor) cmdlet to specify the number of virtual processors you want to allocate to the virtual machine: + + ```powershell + Set-VMProcessor -Name -Count + ``` + + > [!NOTE] + > You cannot specify more number of virtual processors for the virtual machine than there are logical processors on the host. + > You cannot specify more number of virtual processors for the virtual machine than what is supported by the version of Windows Server running on the host. For more information regarding the maximum number of virtual processors supported by the version of Windows Server running on the host, see [Hyper-V Maximum Scale Limits](../maximum-scale-limits.md). + --- ## Start and connect to the virtual machine