Có 2 loại ảo hóa: type 1 và type 2. Type 1 chạy trên bare metal, truy cập trực tiếp hardware (VMware ESXi, Hyper-V, XenServer...). Type 2 chạy trên OS. Các platform type 2 phổ biến: Hyper-V Client, VMware Workstation, Oracle VirtualBox... Đã có nhiều bài về Hyper-V. Bài này và các bài tới nói về Oracle VirtualBox, type 2 open-source. Oracle VM VirtualBox là hosted hypervisor miễn phí, open-source cho x86 virtualization, phát triển bởi Oracle Corporation.
Để cài Oracle VirtualBox, cần đáp ứng yêu cầu:
- CPU hỗ trợ ảo hóa (Intel/AMD). Khuyên CPU >4 cores cho môi trường ổn định. Dự định deploy 1 VM nên không cần nhiều resource.
- RAM tối thiểu 8 GB, khuyên 16 GB. Yêu cầu cho host + 1 guest.
- Disk tối thiểu 80 GB, khuyên SSD min 120 GB.
- Network card kết nối internal network hoặc Internet
- Windows 8, 8.1 hoặc Windows 10. Cài trên Windows 10 Professional.
- Khác: tùy scenario
Cấu hình máy cài VirtualBox:
- CPU AMD Ryzen 3900 12 cores 24 threads
- RAM 32 GB DDR4
- SSD 512 GB NVMe
- Windows 10 Professional
Tham khảo, Oracle VM VirtualBox cài được trên:
Windows hosts (64-bit):
- Windows 8.1
- Windows 10 RTM (1507 / 2015 LTSB) build 10240
- Windows 10 Anniversary Update (1607 / 2016 LTSB) build 14393
- Windows 10 Fall Creators Update (1709) build 16299
- Windows 10 April 2018 Update (1803) build 17134
- Windows 10 October 2018 Update (1809 / 2019 LTSC) build 17763
- Windows 10 May 2019 Update (19H1 / 1903) build 18362
- Windows 10 November 2019 Update (19H2 / 1909) build 18363
- Windows Server 2012
- Windows Server 2012 R2
- Windows Server 2016
- Windows Server 2019
Mac OS X hosts (64-bit):
- 13 (High Sierra)
- 14 (Mojave)
- 15 (Catalina)
Linux hosts (64-bit):
- Ubuntu 18.04 LTS, 19.03, 19.10
- Debian GNU/Linux 9 (Stretch), 10 (Buster)
- Oracle Linux 6, 7, 8
- Red Hat Enterprise Linux 6, 7, 8
- Fedora 30, 31
- Gentoo Linux
- SUSE Linux Enterprise server 12, 15
- openSUSE Leap 15.1
Bắt đầu cài đặt.
- Đăng nhập Windows 10
- Mở trình duyệt (Chrome, Firefox, Edge...)
- Mở trang VirtualBox, nhấp Download

- Cửa sổ sau nhấp Windows hosts dưới VirtualBox 6.1.2 platform packages. Tải file VirtualBox-6.1.2-135663-Win ~108 MB

- Mở installer VirtualBox-6.1.2-135663-Win
- Welcome to the Oracle VM VirtualBox, 6.1.2 Setup Wizard nhấp Next

- Custom Setup giữ mặc định settings/location, nhấp Next

- Custom Setup nhấp Next.

- Warning: Network Interfaces nhấp Yes. Cài networking feature VirtualBox 6.2.1 sẽ reset network connection, tạm ngắt kết nối. Tạo virtual network adapter trong Network Connections.

- Ready to Install nhấp Install

- Nhấp Yes xác nhận cài Oracle
- Would you like to install the device software, chọn Always trust software from "Oracle Corporation" nhấp Install

- Đợi cài đặt xong.
- Nhấp Finish khởi động Oracle VM VirtualBox 6.1.2

- Chúc mừng. Đã cài thành công Oracle VM VirtualBox

Các bài sau sẽ giải thích cấu hình VirtualBox và tạo VM đầu tiên.