Nếu theo dõi bài viết, chắc đã thấy nhiều bài về Hyper-V 2019. Sau khi hiểu ảo hóa, bước tiếp theo trang bị máy vật lý làm hypervisor tương thích Windows Server 2019 hoặc Hyper-V 2019 Core Server. Có 2 cách cài Hyper-V 2019 trên máy vật lý: cài Hyper-V Core Server (đã có bài) hoặc cài sebagai role trong Windows Server 2019. Để cho thấy toàn cảnh, bài này hướng dẫn cài Hyper-V role trong Windows Server 2019.
Luôn tạo السيناريو để dễ hiểu. Có Dell Desktop Workstation host Windows Server 2019. Windows Server đã cài sẵn driver. Trước khi cài Hyper-V, bắt buộc bật virtualization trong BIOS/UEFI. Xem bài trên web hoặc tài liệu vendor.
Bước tiếp: mở Server Manager (tool quản trị Windows Server) cài Hyper-V. Bắt đầu.
- Đăng nhập Windows Server 2019
- Chuột trái Start Menu gõ Server Manager
- Mở Server Manager
- Configure this local server nhấp Add roles and features

- Before you begin nhấp Next

- Select Installation type chọn Role-based or feature-based installation nhấp Next

- Select destination server chọn server cài Hyper-V role, nhấp Next. Server đích tên w2k19.

- Select server roles chọn Hyper-V nhấp Add Features phê duyệt cài management tools cho Hyper-V. Sẽ cài Hyper-V Module for Windows PowerShell và Hyper-V GUI Management Tools.

- Select server roles nhấp Next
- Select features nhấp Next. Không cần feature thêm.

- Hyper-V nhấp Next.

- Create Virtual Switches chọn physical network adapter cung cấp virtual switch kết nối physical server, nhấp Next. Có thể add/remove/modify virtual switches sau bằng Virtual Switch Manager. Chọn physical adapter D-Link DFE-538TX 10/100.

- Virtual Machine Migration giữ mặc định, nhấp Next

- Default Stores giữ mặc định hoặc đổi theo nhu cầu, nhấp Next. Giữ default location cho virtual hard disk và config files.

- Confirm installation selections chọn Restart the destination server automatically if required.
- Cửa sổ sau nhấp Yes xác nhận restart tự động, nhấp Install

- Đợi Windows Server cài Hyper-V role. Sau xong, server restart tự động.

- Chúc mừng. Đã cài thành công Hyper-V role trong Windows Server 2019.
- Đăng nhập Windows Server 2019
- Chuột trái Start Menu gõ Hyper-V Manager
- Mở Hyper-V Manager
Tạo VM đầu tiên và cấu hình server theo các bài sau:
- Hyper-V 2019 Core Remote Management
- Create Your First Virtual Machine in Hyper-V 2019
- How to export and import virtual machine in Hyper-V 2019