- 自行下載安裝virtualbox和vagrant
- 在vagrant官方鏡像倉庫(https://app.vagrantup.com/boxes/search)搜索centos8.
#初始化Vagrantfile
vagrant init generic/centos8
#下載 安裝 系統(tǒng)
vagrant up
- generic/centos8 是鏡像名稱
- vagrant up 如果報錯
Stderr: VBoxManage.exe: error: The native API dll was not found (C:\Windows\system32\WinHvPlatform.dll) (VERR_NEM_NOT_AVAILABLE).VBoxManage.exe: error: VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED)VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole# 需要管理員身份啟動cmd窗口bcdedit
#因?yàn)闀cvirtualbox虛擬化沖突
bcdedit /set hypervisorlaunchtype off
再次vagrant up即可完成安裝