如何將 EC2 Windows 執行個體的開機模式從舊式 BIOS 轉換為 UEFI 或 UEFI 安全開機?
我想要將 Amazon Elastic Compute Cloud (Amazon EC2) Windows 執行個體的開機模式從舊式 BIOS 變更為 UEFI 或 UEFI 安全開機。
解決方法
先決條件
- 將執行於 Windows Server 2019 或 2022 的 EC2 執行個體與連接的 Amazon Elastic Block Store (Amazon EBS) 磁碟區搭配使用。
- 驗證執行個體類型是否支援 UEFI。
- 檢閱執行個體類型預設開機模式的考量。
- 作業系統的開機模式必須為舊式。若要驗證,請使用 Windows 遠端桌面通訊協定 (RDP) 連線至執行個體。然後,檢查系統資訊中的 BIOS 模式。
**注意:**現有的執行個體或根磁碟區在轉換後無法使用。在執行這些解決步驟之前,最佳實務是建立資料的備份。您可建立 AMI 或快照,藉此來建立備份。
將開機模式從舊式 BIOS 轉換為 UEFI
步驟 1、將執行個體根磁碟區變更為 GPT 分區:
**注意:**使用 mbr2gpt 工具來完成此步驟。Windows 2019 和 2022 提供此工具。若要將 Windows Server 2016 或 2012 或 2012 R2 作業系統轉換為 UEFI 開機,中斷連結根磁碟區。然後,連接根磁碟區至執行於 Windows Server 2019 或 2022 的救援執行個體。
1. 登入或使用 RDP 連線至現有的 Windows 2019 或 2022 執行個體。或者,啟動新的執行個體。
2. 執行 diskpart 命令,以識別磁碟編號:
在命令提示字元中,輸入 diskpart,然後按 Enter 鍵。
在 diskpart 提示字元中,輸入 list disk,然後按 Enter 鍵。
使用產生的清單來識別根磁碟區。
注意:磁碟 0 預設會做為根磁碟區連接至現有的執行個體。針對 Windows Server 2016、2012 和 2012 R2,磁碟編號與磁碟 0 不同,具體取決於磁碟機映射。
3. 以管理員權限執行命令提示字元。
4. 執行以下命令來驗證磁碟:
C:\Users\Administrator> mbr2gpt /validate /disk:0 /allowFullOS
下面是預期輸出的範例:
MBR2GPT: Attempting to validate disk 0 MBR2GPT: Retrieving layout of disk MBR2GPT: Validating layout, disk sector size is: 512 bytes MBR2GPT: Validation completed successfully
5. 執行以下命令,將 MBR 分區轉換為 GPT:
C:\Users\Administrator> mbr2gpt /convert /disk:0 /allowFullOS
下面是預期輸出的範例:
MBR2GPT will now attempt to convert disk 0. If conversion is successful the disk can only be booted in GPT mode. These changes cannot be undone! MBR2GPT: Attempting to convert disk 0 MBR2GPT: Retrieving layout of disk MBR2GPT: Validating layout, disk sector size is: 512 bytes MBR2GPT: Trying to shrink the system partition MBR2GPT: Creating the EFI system partition MBR2GPT: Installing the new boot files MBR2GPT: Performing the layout conversion MBR2GPT: Migrating default boot entry MBR2GPT: Adding recovery boot entry MBR2GPT: Fixing drive letter mapping MBR2GPT: Conversion completed successfully MBR2GPT: Before the new system can boot properly you need to switch the firmware to boot to UEFI mode!
6. 從主控台或執行個體內,關閉執行個體。
步驟 2、建立根磁碟區的快照
Amazon EC2 主控台
如需詳細資訊,請參閱建立快照。
AWS Command Line Interface (AWS CLI)
**注意:**如果您在執行 AWS CLI 命令時收到錯誤訊息,請確定您使用的是最新版本的 AWS CLI。或者,您可以使用 AWS CloudShell 執行命令。
在以下範例命令中,使用適用於您的使用案例的適當值來取代 region、volume-id 和 description。請確定正確輸入 volume-id 和 description,如以下範例所示。
aws ec2 create-snapshot --region <region> --volume-id <vol-0xxxxxxxxxxxxx> --description <add text>
監控快照程序,直至快照建立完成。然後,請注意 snapshot-id。
aws ec2 describe-snapshots --region <region> --snapshot-ids <snap-xx>
步驟 3、從快照建立 AMI
Amazon EC2 主控台
1. 開啟 EC2 主控台。
2. 在彈性區塊存放區下,選取快照。
3. 選擇您的快照,然後依次選擇動作、建立映像。
4. 在從 EBS 快照建立映像對話方塊中,填寫以下欄位:
**名稱和描述:**輸入您選擇的名稱和描述。
**架構︰**x86_64
**虛擬化類型:**硬體輔助虛擬化 (HVM)
根裝置名稱:/dev/sda1
**核心 ID︰**使用預設的核心 ID。
**RAM 磁碟 ID:**使用預設的 RAM 磁碟 ID。
**開機模式:**UEFI
5. 選取建立。
AWS CLI
執行下列命令。在以下範例命令中,使用適用於您的使用案例的適當值來取代 region、description、name 和 snapshotID。
aws ec2 register-image --region <region> --description <description> --name <ami-new_ami_xxx> --block-device-mappings "DeviceName=/dev/sda1,Ebs={SnapshotId=snap-0xxxxxxxx,DeleteOnTermination=true}" --architecture x86_64 --root-device-name /dev/sda1 --virtualization-type hvm --ena-support --boot-mode uefi
下面是預期輸出的範例:
{ "ImageId": "ami-new_ami_xxx" }
步驟 4、驗證新 AMI 的開機模式是否為 UEFI
如需詳細資訊,請參閱確定 AMI 的開機模式參數。
步驟 5、使用新 AMI 啟動新的執行個體
如需詳細資訊,請參閱如何從自訂 AMI 啟動 EC2 執行個體?從此 AMI 啟動的所有新的執行個體都會繼承相同的開機模式。
步驟 6、驗證執行個體的開機模式是否為 UEFI
使用 RDP 連線至新的執行個體,然後驗證開機模式。如需詳細資訊,請參閱確定作業系統的開機模式。
**注意:**終止現有的執行個體,或者刪除您在其上執行 mbr2gpt 命令的根磁碟區。轉換後將無法使用現有的執行個體。
將執行個體的開機模式,從舊式 Bios 轉換為 UEFI 安全開機
**注意:**您可以在 AMI 建立期間,自訂 UEFI 安全開機變數。如需詳細資訊,請參閱如何建立 AWS 二進位 Blob。
1. 將執行個體的根磁碟區修改為 GPT 分區,如步驟 1、將執行個體根磁碟區變更為 GPT 分區所示。
2. 建立根磁碟區的快照。
3. 從快照建立 AMI。在 AMI 建立期間,指定 uefi-data 字串,以開啟 UEFI 安全開機。
執行以下 AWS CLI 命令,以在沒有 TPM 支援的情況下開啟 UEFI 安全開機:
在以下範例命令中,使用適用於您的使用案例的適當值來取代 region、description、name 和 snapshotID。
aws ec2 register-image --region <region> --description <description> --name <ami-new_ami_xxx> --block-device-mappings "DeviceName=/dev/sda1,Ebs={SnapshotId=snap-0xxxxxxxx,DeleteOnTermination=true}" --architecture x86_64 --root-device-name /dev/sda1 --virtualization-type hvm --ena-support --boot-mode uefi --uefi-data QU1aTlVFRkmbIrz8AAAAAHj5a7fZ9+2cZVRc3ZaucXd3J8EDBJIAgQCB4B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LIayBJ6iA/YW+sX9PJjqBwbzdts89gjy1lKrZQ5C3lqEmP620rw+fvoPyhpLMj+ZVLvlzr6BMpk5MyTt1c1px2hmuVjZl67VzmpL/1s4az6MhoxISk/88/a/gv/QCQAw==
執行以下 AWS CLI 命令,以開啟 TPM 支援以及 UEFI 安全開機:
aws ec2 register-image --region <region> --description <description> --name <ami-new_ami_xxx> --block-device-mappings "DeviceName=/dev/sda1,Ebs={SnapshotId=snap-0xxxxxxxx,DeleteOnTermination=true}" --architecture x86_64 --root-device-name /dev/sda1 --virtualization-type hvm --ena-support --boot-mode uefi --tpm-support v2.0 --uefi-data QU1aTlVFRkmbIrz8AAAAAHj5a7fZ9+2cZVRc3ZaucXd3J8EDBJIAgQCB4BYgOCR4cPfgTkio4BCCFRY8eOHuTrAQ3N1D0O7T93yj++59zh33jvP17e5xqn7Vj2fU2FBrr7nmO59dqP/BofjL639lb3+J3qTt3hjbmP0xMUMEDk/REf4YUCMgqCpw/fUd8P/OBfj4//gC/lH3/wbD8H9pEP8xNVSQVvjjq/4zl8C/n7//+Y5pf++a/0HN7n8rIvAZ0H/VDOif7biFiAAP4/+5w/g/s+z8UQBNjf+SAyH890x9/u4O/p/qfv65l/qPPUcDLjhwueP/j9zxfyo4/+2VUkCp+Tuf/Q9KzndPeKStT1vW2GpnaT9G/sCcoupWxHpkbvV+l3oKJSafghyaWrcszv/IraNVt6t5FaVlm2y8qN3ywLjop4aNKq927o7PbVye8ofTXZ9QZ622l4zOAron2ZGvelBm0TH3LqJWhk59P5QcnmNHYlw966V18lOv3WkyWVwR5TMrC1g7Lhokg6aL5pentkmOxAQbadDeRWzDaGVi7MuclSXSxdON1jI5vhFCnCMZ2Q6H5p2FjMQK9V/vLiAT5I9jbp2eJ4RU+6mFm8tQRmeVEYkGcFiiutdDFI29q1vRu2FeYQLIeArGXslbfddD8o97uaFaPjS3onO1+LqXkx0VSCFIwtsVM3arbxkfzweMnrtSolqMx2oZslML9exzLw2uSjvrjYwNeRWSUQa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mU7Km20lLnrhkO63oXs4n+EmJj4Bu/DoQJUnysfWbNyj4gX+pZLm76mrol6Z2MTCkdRJ7pPeok09Ascg303IHkdsMC6OoNsMFdPbirB3f14K4e3NWDu3pwVw/u6sFdPbirB3f14K4e3NWDu3pwVw/u6sFdPbirB3f14K4e3NWDu3pwVw/u6sFdPbirB3f14K4e3NWDu3pwVw/u6sFdPbirB3f14K4e3NWDu3pwV+/PdPVA59tJQ3IlmXF3rkq+bZ1UmFutBfZlDkFAhFbCcx6e8xf0QJ4O8pEcy9NaAZsEoT51dkNvaTjUQZ8bv+cqbaQT0TpWBJRHjfiLsarObMQEpixVXZDKDKReraeqBThY7lbN1ntFgPodNgn1jRH5dApffdHmJe97TsUPGkcpj713PeLIayBJ6iA/YW+sX9PJjqBwbzdts89gjy1lKrZQ5C3lqEmP620rw+fvoPyhpLMj+ZVLvlzr6BMpk5MyTt1c1px2hmuVjZl67VzmpL/1s4az6MhoxISk/88/a/gv/QCQAw==
4. 執行以下命令,以驗證新 AMI 的開機模式:
aws ec2 describe-images --image-id ami-077eabcxxxxaxdfx --query "Images[*].{BootMode:BootMode,TpmSupport:TpmSupport}"
如果 AMI 已開啟 UEFI 安全開機和 TPM 支援,則會如以下範例所示顯示輸出:
[ { "BootMode": "uefi", "TpmSupport": "v2.0" } ]
如果 AMI 已開啟 UEFI 安全開機,則會如下所示顯示輸出:
[ { "BootMode": "uefi", "TpmSupport": "null" } ]
5. 從新 AMI 啟動執行個體。請確定您使用支援 UEFI 和 TPM 的執行個體類型。
6. 若要驗證安全開機和 TPM 狀態,請使用 RDP 連線至執行個體。然後,在 AWS PowerShell 管理員模式下執行以下命令。
如果執行個體支援 UEFI 安全開機,並且已開啟安全開機,則以下 cmdlet 會傳回 $True。否則,回應為 $False。
PS> Confirm-SecureBootUEFI
執行下列命令,以檢查 TpmPresent 屬性。如果執行個體上存在 TPM,則回應為 $True。否則,回應為 $False。
PS> Get-Tpm
注意:
- NitroTPM 和 UEFI 安全開機為獨立功能,可在 AMI 建立時獨立開啟。
- 為 AMI 啟用 TPM 之後,無法將其停用。
- UEFI 支援安全開機。NitroTPM 提供測量開機。
相關內容
- 已提問 2 個月前lg...
- 已提問 1 年前lg...
- 已提問 2 年前lg...
- 已提問 1 年前lg...
- 已提問 2 年前lg...
- AWS 官方已更新 24 天前
- AWS 官方已更新 1 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前