diff --git a/%E7%9F%A5%E8%AD%98%E5%BA%AB.md b/%E7%9F%A5%E8%AD%98%E5%BA%AB.md index 73bdd1a..10658cb 100644 --- a/%E7%9F%A5%E8%AD%98%E5%BA%AB.md +++ b/%E7%9F%A5%E8%AD%98%E5%BA%AB.md @@ -1,9 +1,33 @@ # Windows +## Hyper V + +### 啟用 KVM + +```powershell +Set-VMProcessor -VMName "" -ExposeVirtualizationExtensions $true +``` + +### 偽裝 MAC 地址 for PVE + +因為虛擬機共用同一張網路卡,為了防止流量進到 PVE 後,不再往虛擬機送,因此需要偽裝 MAC 地址 + +```powershell +Get-VMNetworkAdapter -VMName "" | Set-VMNetworkAdapter -MacAddressSpoofing On +``` + +### 限制虛擬硬碟的讀寫速度(IOPS) + +一個 IOPS 為 8KB / s,如果要限制虛擬硬碟只能使用 100MB / s 的速度,則 IOPS 應該設定為 12800 (100 * 1024 / 8) + # Windows 11 ## 使用舊的右鍵選項 ```powershell reg add “HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32” /f /ve -``` \ No newline at end of file +``` + +# 參考資料紀錄 + +- [開啟巢狀虛擬化在 Hyper-V 內安裝 Proxmox VE](https://medium.com/@nicholasyau/%E9%96%8B%E5%95%9F%E5%B7%A2%E7%8B%80%E8%99%9B%E6%93%AC%E5%8C%96%E5%9C%A8-hyper-v-%E5%85%A7%E5%AE%89%E8%A3%9D-proxmox-ve-edd48a4cf499) \ No newline at end of file