Learn this information to discover ways to set up Home windows Server 2022 on a Hyper-V VM, rename the VM’s Home windows laptop title, and assign it an IP handle.
Step 1: Create the Hyper-V VM
Learn my information, Methods to Create Hyper-V vSwiches, VMs, and vNICs in Home windows 11 to discover ways to create VM, vSwiche, and vNICs for a Hyper-V VM.
Step 2: Set up Home windows Server 2022
In the event you shouldn’t have a Home windows Server 2022 ISO picture, obtain it earlier than continuing.
Earlier than putting in the OS, join the vNIC on the VM to the exterior digital change by working 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:
- Be aware the trail you saved the Home windows Server 2022 ISO picture
- Then, on the Hyper-V Host, open Hyper-V Supervisor, right-click the VM, IPMviSCSI, and choose Settings.
- Then, on the left pane, click on SCSI Controller, then DVD Drive > Add.
The brand new DVD Drive might be chosen.
- On the main points pane, choose Picture File and use the Browse button to open the Home windows Server 2022 ISO picture file – click on Apply whenever you end however don’t shut the VM’s Settings.
- 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 modifications and shut 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 hook up 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).
Once you end putting in the OS, proceed to step 2 beneath.
Step 3: Rename VM and Assign an IP Deal with
Begin the VM and register, then, run the next instructions to assign the VM an IP handle, rename it, after which restart the VM:
#Assign a static IP handle to the VM's NICGet-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 title of the VM and restart it
Rename-Pc -NewName IPMviSCSI -Restart
When the VM restarts, it might be a good suggestion to examine for updates by way of the Home windows Replace Settings.
Conclusion
Putting in Home windows Server 2022 on a Hyper-V VM is surprisingly simpler than putting in Home windows 11 on a Hyper-V VM. For instance, the Home windows 11 TPM necessities are usually not 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 may additionally discover extra articles in our “Associated Articles” part beneath very useful – why not examine them out?