Windows 2025
Sponsored Link

Hyper-V : Install2024/12/12

 

Install Hyper-V to build Virtualization Environment.

[1] On CUI installation, Run PowerShell with Admin Privilege and Install Hyper-V.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

# install Hyper-V with admin tools
PS C:\Users\Administrator> Install-WindowsFeature Hyper-V -IncludeManagementTools 

Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
True    Yes            SuccessRest... {Hyper-V, Hyper-V Module for Windows Power...
WARNING: You must restart this server to finish the installation process.

# restart computer to apply changes
PS C:\Users\Administrator> Restart-Computer -Force 

# after restarting, create a virtual switch for virtual machines network connection
# confirm network adaptor name
PS C:\Users\Administrator> Get-NetAdapter 

Name                      InterfaceDescription                    ifIndex Status       MacAddress             LinkSpeed
----                      --------------------                    ------- ------       ----------             ---------
Ethernet Instance 0       Red Hat VirtIO Ethernet Adapter               4 Up           52-54-00-65-D1-5C        10 Gbps

# create a virtual switch
PS C:\Users\Administrator> New-VMSwitch -Name "Bridge01" -AllowManagementOS $True -NetAdapterName "Ethernet Instance 0" 

# confirm
PS C:\Users\Administrator> Get-VMSwitch 

Name     SwitchType NetAdapterInterfaceDescription
----     ---------- ------------------------------
Bridge01 External   Red Hat VirtIO Ethernet Adapter
Hyper-V : Install (GUI)
 

On GUI installation, set like follows.

[2] Run [Server Manager] and click [Add roles and features].
[3] Click [Next] button.
[4] Select [Role-based or feature-based installation].
[5] Select a Host which you'd like to add services.
[6] Check a box [Hyper-V].
[7] Addtional features are required to add Hyper-V. Click [Add Features] button and proceed to Next.
[8] Click [Next] button.
[9] Click [Next] button.
[10] This is the section to create Virtual Switches. Select a Network adapter for it.
[11] This is the section for Migration for Virtual Machines. On this example, keep default and proceed Next.
[12] This is the section to specify the location of Virtual Machines' configuration. On this example, keep default and proceed Next.
[13] Click [Install] button to begin installation.
[14] After finishing installation, Click [Close] button and restart Computer.
Matched Content