How to Install Windows Server 2022 on Hyper-V VM

How to Install Windows Server 2022 on Hyper-V VM Leave a comment

Learn this information to discover ways to set up Home windows Server 2022 on a Hyper-V VM, rename the VM’s Home windows pc identify, and assign it an IP deal with.

Step 1: Create the Hyper-V VM

Learn my information, How to Create Hyper-V vSwiches, VMs, and vNICs in Windows 11 to discover ways to create VM, vSwiche, and vNICs for a Hyper-V VM.

Step 2: Set up Home windows Server 2022

Should you shouldn’t have a Home windows Server 2022 ISO picture, download it earlier than continuing.

Earlier than putting in the OS, join the vNIC on the VM to the exterior digital change by operating this command:

Get-VMNetworkAdapter -VMName IPMviSCSI | Join-VMNetworkAdapter -SwitchName HPV-vSwitch

Then, observe these steps to put in Home windows Server 2022 on the VM:

  1. Word the trail you saved the Home windows Server 2022 ISO picture
  2. Then, on the Hyper-V Host, open Hyper-V Supervisor, right-click the VM, IPMviSCSI, and choose Settings.
  3. Then, on the left pane, click on SCSI Controller, then DVD Drive > Add.

The brand new DVD Drive might be chosen.

  1. On the small print pane, choose Picture File and use the Browse button to open the Home windows Server 2022 ISO picture file – click on Apply while you end however don’t shut the VM’s Settings.
  1. Choose Firmware, then, choose DVD Drive and use the “Transfer up” button to make it the primary boot system – click on OK to use the adjustments and shut the VM’s Settings.
Finally, select Firmware, then, select DVD Drive, use the Move up button to make it the first boot device, click OK to apply the changes and close the VM's Settings

Lastly, again within the Hyper-V Supervisor, right-click the VM and choose Join; then, begin the VM and set up the OS.

Earlier than you begin the VM, be able to click on any key to start out Home windows set up. I like to connect with the VM earlier than I begin it so I’ve sufficient time to answer the immediate. Set up Home windows Server 2022 Customary (Desktop Expertise).

Finally, back in the Hyper-V Manager, right-click the VM and select Connect; then, start the VM and install the OS

While you end putting in the OS, proceed to step 2 beneath.

Step 3: Rename VM and Assign an IP Tackle

Begin the VM and sign up, then, run the next instructions to assign the VM an IP deal with, rename it, after which restart the VM:

#Assign a static IP deal with to the VM's NIC

Get-NetAdapter | New-NetIPAddress -IPAddress 192.168.0.154 -PrefixLength 24 -DefaultGateway 192.168.0.1

#Assign the DNS server to the NIC

Get-NetAdapter | Set-DnsClientServerAddress -ServerAddresses 192.168.0.80

#Change the pc identify of the VM and restart it

Rename-Pc -NewName IPMviSCSI -Restart

When the VM restarts, it could be a good suggestion to test for updates through the Home windows Replace Settings.

Conclusion

Putting in Home windows Server 2022 on a Hyper-V VM is surprisingly easier than installing Windows 11 on a Hyper-V VM. For instance, the Home windows 11 TPM necessities will not be wanted for Home windows Server 2022.

Anyway, I hope you discovered this information enlightening! Let me know by responding to the “Was this web page useful?” beneath. You might also discover extra articles in our “Associated Articles” part beneath very useful – why not test them out?

답글 남기기