Cài đặt trên Powershell
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, Windows PowerShell 用 Hyper-V ...
WARNING: You must restart this server to finish the installation process.
# restart computer to apply changes
PS C:\Users\Administrator> Restart-Computer -Force
Cài đặt trên GUI
Mở Server Manager và chọn Add roles and features
![](https://cloudviet.com.vn/wp-content/uploads/2022/11/Cai_dat_hyper_V.png)
tại Before You Begin, chọn Next
![](https://cloudviet.com.vn/wp-content/uploads/2022/11/Cai_dat_hyper_V_2.png)
tại Installation Type, chọn Role-based or feature-based installation
![](https://cloudviet.com.vn/wp-content/uploads/2022/11/Cai_dat_hyper_V_3.png)
Chọn máy chủ bạn muốn thêm dịch vụ
![](https://cloudviet.com.vn/wp-content/uploads/2022/11/Cai_dat_hyper_V_4.png)
Nhấn chọn vào ô Hyper-V
![](https://cloudviet.com.vn/wp-content/uploads/2022/11/Cai_dat_hyper_V_5.png)
Để thêm các tính năng cho Hyper-v, chọn Add Features
![](https://cloudviet.com.vn/wp-content/uploads/2022/11/Cai_dat_hyper_V_6.png)
tiếp theo, chọn Next để tiếp tục
![](https://cloudviet.com.vn/wp-content/uploads/2022/11/Cai_dat_hyper_V_7.png)
Nhấn chọn Next
![](https://cloudviet.com.vn/wp-content/uploads/2022/11/Cai_dat_hyper_V_8.png)
Tiếp theo, tạo một Virtual Switches
![](https://cloudviet.com.vn/wp-content/uploads/2022/11/Cai_dat_hyper_V_9.png)
tiếp theo, tạo Migration cho máy ảo, bạn có thể để là mặc định
![](https://cloudviet.com.vn/wp-content/uploads/2022/11/Cai_dat_hyper_V_10.png)
Chọn đường dẫn để cấu hình cho hyper-v. trong ví dụ này được để mặc định.
![](https://cloudviet.com.vn/wp-content/uploads/2022/11/Cai_dat_hyper_V_11.png)
Chọn Install để bắt đầu cài đặt
![](https://cloudviet.com.vn/wp-content/uploads/2022/11/Cai_dat_hyper_V_12.png)
Sau khi cài đặt xong, chọn Close để kết thúc.
![](https://cloudviet.com.vn/wp-content/uploads/2022/11/Cai_dat_hyper_V_13.png)