# 如何解決 VMWare AMD V / RVI 不支援該平台問題
大家好,我是 LukeTseng,近期將桌機轉到筆電時,在筆電安裝 VMWare,啟動虛擬機時遇到了一些問題,因此撰寫本篇文章來解決這個問題。
那麼這個問題就是,開啟虛擬機後,會跳出:
> Virtualized AMD-V/RVI is not supported on this platform.
> Continue without virtualized AMD-V/RVI?
這問題是因為 Windows 11 預設啟用 Virtualization-based Security(VBS),這個功能使用 Hyper-V 作為底層技術,會佔用硬體虛擬化資源,導致 VMware Workstation 無法使用 AMD-V/RVI 進行虛擬化。
然後接下來就讓我來一步一步告訴各位怎麼做吧。
## 第一步:關閉【記憶體完整性】
首先對 Windows Defender 的 tray icon 按下滑鼠左鍵一下。

進入介面後,在左側邊欄選擇【裝置安全性】。

再來於【核心隔離】的下方點擊【核心隔離詳細資料】。

然後確保【記憶體完整性】是關閉的,如果關的話就 OK。

## 第二步:關閉 Windows hypervisor
先以系統管理員身分執行 cmd:

接下來我們在 cmd 視窗中輸入以下指令:
```
bcdedit /set hypervisorlaunchtype off
```

出現操作順利完成即可。
## 第三步:關閉 Windows 功能
在搜尋欄中搜尋 【開啟或關閉 Windows 功能】,並打開。

開啟後,確定以下功能都是關閉的(沒有勾勾):
* Hyper-V
* Windows Hypervisor Platform
* Virtual Machine Platform
* Windows 沙箱

## 第四步:調登錄檔編輯器
使用快捷鍵 【Win + R】 開啟執行,並輸入 regedit。

在上方路徑欄位貼上以下路徑,然後按下 Enter:
```
\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard
```


然後看到 HyperVVirtualizationBasedSecurityOptout,點兩下,將裡面的數值修改成 0:

## 第五步:重新啟動
重新啟動電腦後,開啟系統資訊(按 Win + R,輸入 msinfo32),確認 Virtualization-based security(虛擬化型安全性)顯示為未啟用。


## 開大絕:如果上述這些步驟都不行
那麼就請出我們的微軟老大哥了,在網路上搜尋 Device Guard and Credential Guard hardware readiness tool,或是直接透過這個網址:https://www.microsoft.com/en-us/download/details.aspx?id=53337

將工具下載完並解壓縮:

接下來我們透過上方目錄欄位,按一下滑鼠左鍵,並複製下來:

接下來透過系統管理員身分開啟【Windows Powershell】:

然後輸入以下指令:
```
cd (你的目錄)
.\DG_Readiness_Tool_v3.6.ps1
R
```

執行完畢後,重新開機,注意可能會提示你是否要關閉一些東西,就按下 F3 關閉即可。
## 參考資料
[Virtualized AMD-V/RVI is not supported on this platform. : r/vmware](https://www.reddit.com/r/vmware/comments/1if4jyo/virtualized_amdvrvi_is_not_supported_on_this/)
[How to Disable Virtualization-Based Security (VBS) in Windows 11 | Beebom](https://beebom.com/how-disable-virtualization-based-security-vbs-windows-11/)
[How to Disable VBS and Speed Up Windows 11 or 10 | Tom's Hardware](https://www.tomshardware.com/how-to/disable-vbs-windows-11)
[Virtualized AMD-V/RVI is not supported on this platform. | VMware Workstation](https://community.broadcom.com/vmware-cloud-foundation/discussion/virtualized-amd-vrvi-is-not-supported-on-this-platform)
[Virtualized AMD-V/RVI is not supported on this platform. AGAIN! : r/vmware](https://www.reddit.com/r/vmware/comments/1hgd5tl/virtualized_amdvrvi_is_not_supported_on_this/)