本文原為中英夾雜文檔
現以 GPT-4 的翻譯作參考並重新編排
如發現有任何問題或有任何意見,請留言提出
Get ready 準備
Difficulty 難度:***
Requirements 需要知識:
- Can find and download the corresponding Windows ISO file
能找到並下載對應的 Windows ISO 檔 - Modify the powershell script
簡單的修改腳本 - Run the script with PowerShell and cmd
以 PowerShell 及 cmd 執行腳本
Before you start 事前準備
Before you started to create a VM, please make sure the followings are enabled on your PC:
在您開始創建虛擬機器(VM)之前,請確保您的電腦已啟用以下功能:
- You can follow this tutorial to open “Windows feature”
你可以參考這個教學來打開「Windows 功能」
[Windows 11] 啟用或關閉 Windows 功能?開啟或關閉 Windows 功能、更多 Windows 功能 @ 香腸炒章魚 :: 痞客邦 :: (pixnet.net)
and enable all the Hyper-V services on Windows
並啟用Windows上的所有Hyper-V服務 - Enable VT-x for intel CPU platform / SVM for AMD platform
為Intel CPU平台啟用VT-x / 為AMD平台啟用SVM
Reference: 如何啟用 Intel VT-x 和 AMD SVM? | QNAP - Create external network switch (If need to use “Parsec”)
創建外部網絡交換機(如果需要使用”Parsec”)- 按下 Windows 鍵,搜尋並打開「Hyper-V 管理員」
- 點擊「動作」->「虛擬交換器管理員」
- 點擊建立虛擬外部交換器
- 設置好名稱後點確定 (建議名稱為
External
)
Steps 建立步驟
You can manually build your VM step by step or use automatic scripts for automatic operations.
Personally, I highly recommend using scripts because it can save you a lot of time and keep you out of trouble.
However, if you want to challenge yourself, manual operation is also not a bad idea.
你可以手動的一步一步建立你的VM或是使用自動腳本進行自動操作
個人是非常建議使用腳本的,因為可以省掉很多麻煩和時間
不過你是想要排戰一下的話,手動操作也不嘗不可
Create Manually 手動建立
Please follow the steps in this video start from 09:30
請按照此影片中從09:30開始的步驟操作。
Create via script 自動建立
- Download Windows ISO file from Microsoft website, search
Windows XX iso
. Replace XX by the version you want and you should get the webpage you want. Note that, please DON’T download the ISO file via the microsoft media creation tool, the ISO file is not compatible with the script.
從Microsoft網站下載Windows ISO文件,在 Google 搜索Windows XX iso
應該就能找到了。要注意的是,千萬不要使用Microsoft media creation tool 取得 ISO 檔,以這個方法取得的 ISO 檔跟之後的步驟並不相容。 - Download the script from GitHub
從GitHub下載腳本。
GitHub – jamesstringerparsec/Easy-GPU-PV: A Project dedicated to making GPU Partitioning on Windows easier! - Unzip the zip file you downloaded from GitHub
解壓從GitHub下載的zip文件。 - Please refer to the official document below to update the config values in file
CopyFilesToVM.ps1
.
請參考下面的官方文檔並在CopyFilesToVM.ps1
文件中更新配置值。
GitHub – jamesstringerparsec/Easy-GPU-PV: A Project dedicated to making GPU Partitioning on Windows easier!- For the field
Edition
, please get the number you want by the following steps
在Edition
這一項中,請以以下步驟找到相應的數值- Open the Windows ISO file you downloaded
打開你剛剛下載的 Windows ISO 檔 - Run the following command via
cmd
and replace<Virtual CD drive letter>
with the drive letter of your loaded ISO
以cmd
運行以下指令並把<Virtual CD drive letter>
更改為剛剛載入的 ISO 檔的磁碟機代號dism /Get-WimInfo /WimFile:<Virtual CD drive letter>\sources\install.wim
- The index of the Windows version is the number you need to input
不同 Windows 版本的索引編號就是你要填入Edition
的數字了
In this example, you need to assign3
to the fieldEdition
if you want to installWindows 11 專業版
以下圖為例,如果你想要安裝的是Windows 11 專業版
,那就要在Edition
輸入3
- Open the Windows ISO file you downloaded
- Fill the field
NetworkSwitch
with the name of the newly created virtual network switch (if any)
把你剛剛新建的虛擬交換機的名字填入NetworkSwitch
(如果有的話) - Please make sure your input suit the following requirements before you run the script
請在你運行腳本之前確保你輸入的數值符合以下要求
ERROR: Username cannot be the same as VMName.
ERROR: Username cannot contain special characters.
ERROR: VMName cannot contain special characters, or be more than 15 characters long
- For the field
- Run the script
CopyFilesToVM.ps1
via PowerShell with adminstrator permission
以管理員身份打開 PowerShell 並運行腳本CopyFilesToVM.ps1
- Wait till the process done
等待程序完成運行
Reference 參考資料
For any problem, find the following reference or search online
如果你發現有任何問題,請參考以下網站或到網上查找更多的資料
發佈留言