當前筆記本操作系統為Windows 10 教育版,CPU為i7-8750H,在BIOS內已經默認啟用了虛擬化:
需要安裝RedHat 6.4 做一些測試,使用VirtualBox進行虛擬,版本為6.1:
在VirtualBox內成功安裝了rhel,但是始終無法支持vmx。查看虛擬機設置內發現無法啟用 嵌套VT-x/AMD-V ,選項為灰色:
通過查閱資料得知需要使用VBoxManage以命令行的方式進行開啟,操作步驟如下:
Microsoft Windows [版本 10.0.17134.1902] (c) 2018 Microsoft Corporation。保留所有權利。 C:\Users\nextfriend>f: F:\>cd F:\VirtualBox F:\VirtualBox>VBoxManage.exe list vms "rhel64" {240f96d8-6535-431d-892e-b70f3dc464e8} F:\VirtualBox>VBoxManage.exe modifyvm "rhel64" --nested-hw-virt on
執行完成后可以看到選項已經被選中,而且可以自行操作了。
進入虛擬機,執行:
cat proc/cpuinfo |grep vmx
已經可以看到vmx flag。