How to Create a Windows Virtual Machine on Hyper-V Server. Virtualization technologies like Hyper-V from Microsoft help you virtualize operating systems and hardware. As a result, you save costs and increase IT agility, scalability, and flexibility.
First of all, Hyper-V Server is a free VM management platform by Microsoft that works with the company’s confusingly named hypervisor – Hyper V. Well, it is worth noting that these are different products.
Above all, Hyper-V Server is a special operating system that has Windows Server Core installed and the Hyper-V role preconfigured. Whilst the operating system is available for free, you still need to pay license fees for your Windows VMs. Fortunately, Hyper-V Server allows you to run Linux VMs.
In essence, Hyper-V Server is a lightweight version of Windows Server, that’s optimized to act solely as a Hyper-V host. According to Microsoft, Hyper-V Server provides enterprise class virtualization for the hybrid cloud and data centers. Additionally, the tool comes with a rich set of features that allow you to deliver and scale the performance of mission critical workloads.
Create a Windows Virtual Machine on Hyper-V Server Using PowerShell
Basically, Hyper-V Server doesn’t come with a graphical user interface. As a result, PowerShell is one of the easiest ways to create and manage a Hyper-V VM. Here’s how to go about it:
Step 1: On Hyper-V server, open the command line by typing 14 into the Sconfig window. This is the Exit to Command Line command in Hyper-V Server 2019.
Running this command creates a new Generation 2 VM called MyNewVM. Here’s a description of the parameters we’ve used:
New-VM – a cmdlet that creates a new virtual machine.
Name – the name of the VM you’re creating.
MemoryStartupBytes – the amount of memory assigned to the VM during startup.
Path – a directory path of your virtual machine.
NewVHDPath – specifies the location of your VM’s virtual disk. If you want to connect to an existing VHD, use the -VHDPath parameter instead. You can create a new VM without a VHD using -NoVHD.
NewVHDSizeBytes – this is the size of the VHD.
Generation – generation of the VM. You can choose between a Generation 1 and Generation 2 VM.
Up next with How to Create a Windows Virtual Machine on Hyper-V Server but remotely.
Besides using PowerShell, you can also create VMs on Hyper-V Server from the graphic interface using Windows Admin Centre and Hyper-V Manager. Steps to follow are below:
Configure Hyper-V Server (Host) for Remote Access
First, before you can create a VM remotely, you need to configure your VM server for remote access. Let’s break it down below:
Step 1: Start Hyper-V Server and open command prompt by typing 14 into the Scofig window.
Concurrently, to connect and manage Hyper-Server remotely access, you’ll need a PC running a Windows 10/11 Pro/Enterprise (64-bit). After all, I will show you how to access Hyper-V Server from your local PC.
Step 1: Use Windows Features to enable Hyper-V by following the process below:
Press Win+R to open Run.
Type “Control” into the textbox and hit Enter to open the Control Panel.
Go to Programs and then navigate to Programs and Features.
Navigate to the left pane and click on the Turn Windows features on or off option.
Next, select Hyper-V in the Windows Features dialog. Make sure to select both Hyper-V platforms and Hyper-V Management in the expanded menu.
Click OK. The computer will restart after you enable Hyper-V.
Open PowerShell
Step 2: Open PowerShell in administrator mode.
Step 3: Check your network profile by entering the following command and hitting enter.
Get-NetConnectionProfile
Step 4: If your network category is set to private, change it to public using the following command.
Use Hyper-V Manager to Create a Windows Virtual Machine on Hyper-V Server
Consequently, Hyper-V Manager is a VM management tool that allows users to create, manage, and delete VMs. Equally, here’s how to use Hyper-V Manager to create VMs remotely.
Step 1: Open Hyper-V Manager by typing Hyper-V Manager into the Windows search box.
Step 2: On the left menu, right-click on Hyper-V server and select Connect to Server on the left menu.
Step 3: In the new window, enter the server name in the Another Computer field. Click OK to proceed. You’re now connected to the Hyper-V server remotely.
Step 4: Click Action and select New > Virtual Machine to launch the New Virtual Machine wizard.
Step 5: Click Next to navigate to the Specify Name and Location window. Enter the name of the virtual machine and select where to save it. Click Next.
Step 6: On the Specify Generations page, choose between Generation 1 and Generation 2 VMs. Especially, read through the descriptions provided on the page so you can choose the right generation. Recommendation from us is Generation. After that, click Next.
Step 7: On the Assign Memory page, select the amount of memory to assign to the VM. The Use dynamic memory for this virtual machine option allows memory to be allocated to Hyper-V VMs dynamically. Leave this option checked if you’re running several VMs. Then Click Next.
Step 8: On the Configure Networking page, leave the default selection and click Next.
Step 9: On the Create Virtual Hard Disk page select a location and size of the virtual hard disk and click Next.
Step 10: Under Installation Options, select Install an operating system from a bootable image file. Following on that, choose a Windows 10/11 .iso file and click Later, create a Windows virtual machine on Hyper-V Server. Once done Click Next.
Use Windows Admin Center to Create a Windows Virtual Machine on Hyper-V Server
Well, Windows Admin Center is a locally-deployed, browser based tool that allows you to manage Windows Servers. In addition, it gives you control over every aspect of your server infrastructure and is particularly useful if you have virtual servers running on a private network.
Particularly, with Windows Admin Center is available for free and is free to use in production. So, here’s how to use it to create a Windows VM:
Step 2: Open Windows Admin Center. It should open on your default browser.
Step 3: Click Add and proceed toclick Add under the Server menu item.
Step 4: Enter your Hyper-V Server name to connect. Now you can manage your Hyper-V server remotely from Windows Admin Center.
Step 5: Go to the Windows Admin Center home screen, go to All Connections and select the server you just added.
Step 6: Under tools, select Virtual Machines. Here, select the inventory tab and then Add > New.
Step 7: Give a name to your new virtual machine and Select Generation 2.
Step 8: Under Host, the tool will provide a host recommendation for you.
Step 9: Choose a path for storing the VM files.
Step 10: Choose the number of virtual processors and whether you want to enable nested virtualization. You’ll also configure network adapters, memory settings, and virtual hard disks.
Step 11: To install an OS, select an .iso image file. Select Create to finish creating the VM. The new VM should appear in the list of virtual machines on the Windows Admin Center home page.
Thank you for reading How to Create a Windows Virtual Machine on Hyper-V Server. We shall conclude.
How to Create a Windows Virtual Machine on Hyper-V Server Conclusion
To summarize, Hyper-V Server is the perfect operating system for running Linux VMs and VDI (virtual desktop infrastructure) workloads. Also, it’s a great tool for learning and running a home lab environment since it’s available for free.
However, Hyper-V Server does have its limitations in terms of features, roles, and licenses. It’s purpose built for running virtualized workloads and nothing else, so you shouldn’t expect to install other features and roles once Hyper-V Server is up and running. Also, Hyper-V Server 2019 is the end of the road for free Hyper-V Server installations. Even then, support from Microsoft will be available until 2029.
Please check out more Hyper-V content in our blog.
The world’s biggest problems can be solved by progressively solving the little ones. I write to help people solve the “little” tech problems they face.
00votes
Article Rating
Subscribe
Login and comment with
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
DisagreeAgree
Login and comment with
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.