How do I convert the boot mode of an EC2 Windows instance from Legacy BIOS to UEFI or UEFI Secure Boot?
I want to change the boot mode of my Amazon Elastic Compute Cloud (Amazon EC2) Windows instance from Legacy Bios to UEFI or UEFI Secure boot.
Resolution
Pre-requisites
- A working EC2 instance running Windows Server 2019 or 2022 with an attached Amazon Elastic Block Store (Amazon EBS) volume.
- Verify that your instance type supports UEFI.
- Review the considerations for instance type default boot modes.
- The boot mode of the OS must be Legacy. To verify, connect to the instance using Windows Remote Desktop Protocol (RDP). Then, check the BIOS Mode in System Information.
Note: The existing instance or the root volume are unusable post conversion. It's a best practice to create backup of your data before performing these resolution steps. You can create backups by creating an AMI or a snapshot.
Convert boot mode from Legacy Bios to UEFI
Step 1. Change the instance root volume to GPT partition:
Note: The mbr2gpt tool is used to complete this step. This tool is available on Windows 2019 and 2022. To convert Windows Server 2016 or 2012 or 2012 R2 OS to UEFI boot, detach the root volume. Then, attach the root volume to a rescue instance that's running Windows Server 2019 or 2022.
1. Log in or use RDP to connect to the existing Windows 2019 or 2022 instance. Or, launch a new instance.
2. Run the diskpart command to identify the disk number:
From the command prompt, enter diskpart and then press Enter.
From the diskpart prompt, enter list disk and then press Enter.
Use the resulting list to identify the root volume.
Note: By default, Disk 0 is attached as the root volume to the existing instance. For Windows Server 2016, 2012, and 2012 R2, the disk number differs from Disk 0, depending on the drive mapping.
3. Run the command prompt with administrator privileges.
4. Run the following command to validate the disk:
C:\Users\Administrator> mbr2gpt /validate /disk:0 /allowFullOS
The following is an example of the expected output:
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. Run the following command to convert the MBR partition to GPT:
C:\Users\Administrator> mbr2gpt /convert /disk:0 /allowFullOS
The following is an example of the expected output:
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. Shut down the instance from the console or from within the instance.
Step 2. Create a snapshot of the root volume
Amazon EC2 console
For more information, see Create a snapshot.
AWS Command Line Interface (AWS CLI)
Note: If you receive errors when running AWS CLI commands, make sure that you're using the most recent version of the AWS CLI. Or, you can run the commands using AWS CloudShell.
In the following example command, replace region, volume-id, and description with the correct values for your use case. Make sure that you input the volume-id and description correctly, as shown in the following example.
aws ec2 create-snapshot --region <region> --volume-id <vol-0xxxxxxxxxxxxx> --description <add text>
Monitor the snapshot process until snapshot creation completes. Then, note the snapshot-id.
aws ec2 describe-snapshots --region <region> --snapshot-ids <snap-xx>
Step 3. Create an AMI from the snapshot
Amazon EC2 console
1. Open the EC2 console.
2. Under Elastic Block Store, select Snapshots.
3. Choose your snapshot, and then choose Actions, Create image.
4. In the Create image from EBS snapshot dialog box, complete the following fields:
Name and Description: Enter a name and description of your choice.
Architecture: x86_64
Virtualization type: Hardware Assisted Virtualization (HVM)
Root device name: /dev/sda1
Kernel ID: Use the default kernel ID.
RAM disk ID: Use the default RAM disk ID.
Boot Mode: UEFI
5. Select Create.
AWS CLI
Run the following command. In the following example command, replace region, description, name, and snapshotID with the appropriate values for your use case.
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
The following is an example of the expected output:
{ "ImageId": "ami-new_ami_xxx" }
Step 4. Verify that the boot mode of the new AMI is UEFI
For more information, see Determine the boot mode parameter of an AMI.
Step 5. Launch a new instance using the new AMI
For more information, see How do I launch an EC2 instance from a custom AMI? All new instances launched from this AMI inherit the same boot mode.
Step 6. Verify that the boot mode of the instance is UEFI
Connect to your new instance using RDP, and then verify the boot mode. For more information, see Determine the boot mode of the operating system.
Note: Terminate the existing instance or delete the root volume that you ran the mbr2gpt commands on. The existing instance isn't usable after conversion.
Convert an instance's boot mode from Legacy Bios to UEFI Secure Boot
Note: You can customize the UEFI Secure Boot variables during AMI creation. For more information, see How the AWS binary blob is created.
1. Modify the instance's root volume to GPT partition as shown in Step 1. Change the instance root volume to GPT partition.
2. Create a snapshot of the root volume.
3. Create an AMI from the snapshot. During AMI creation, specify the uefi-data string to turn on UEFI Secure Boot.
Run the following AWS CLI command to turn on UEFI Secure Boot without TPM support:
In the following example command, replace region, description, name, and snapshotID with the appropriate values for your use case.
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+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/IraNVt6t5FaVlm2y8qN3ywLjop4aNKq927o7PbVye8ofTXZ9QZ622l4zOAron2Z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5y4bHaSfx62csTpUqORgP0vFwof6HakldliQ1qHrIpy9A9dHv5BrvjqG5teU1tPlVuCHdjWb+1tBTI9m3UopFd8Wg+Yvi7MonLDWuz6gcUfKwmISEVCzExGoSZDpF05zppH5M0H6oF3H0lUUwQ5Ri5hvyqF/lFfTiDN3m6Hft5EztPSYmQdC8HsFPMZ5Ii7icCFOM0VyMm3mlteTzatU8rnZW4kPmR1nToPPD61nMV1SLuMPlbml2H4ItLTO3UjTK5XNGLNPZxIe6QHmU7Km20lLnrhkO63oXs4n+EmJj4Bu/DoQJUnysfWbNyj4gX+pZLm76mrol6Z2MTCkdRJ7pPeok09Ascg303IHkdsMC6OoNsMFdPbirB3f14K4e3NWDu3pwVw/u6sFdPbirB3f14K4e3NWDu3pwVw/u6sFdPbirB3f14K4e3NWDu3pwVw/u6sFdPbirB3f14K4e3NWDu3pwVw/u6sFdPbirB3f14K4e3NWDu3pwV+/PdPVA59tJQ3IlmXF3rkq+bZ1UmFutBfZlDkFAhFbCcx6e8xf0QJ4O8pEcy9NaAZsEoT51dkNvaTjUQZ8bv+cqbaQT0TpWBJRHjfiLsarObMQEpixVXZDKDKReraeqBThY7lbN1ntFgPodNgn1jRH5dApffdHmJe97TsUPGkcpj713PeLIayBJ6iA/YW+sX9PJjqBwbzdts89gjy1lKrZQ5C3lqEmP620rw+fvoPyhpLMj+ZVLvlzr6BMpk5MyTt1c1px2hmuVjZl67VzmpL/1s4az6MhoxISk/88/a/gv/QCQAw==
Run the following AWS CLI command to turn on TPM Support along with UEFI Secure Boot:
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+2cZVRc3ZaucXd3J8EDBJIAgQCB4BYgOCR4cPfgT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W+sX9PJjqBwbzdts89gjy1lKrZQ5C3lqEmP620rw+fvoPyhpLMj+ZVLvlzr6BMpk5MyTt1c1px2hmuVjZl67VzmpL/1s4az6MhoxISk/88/a/gv/QCQAw==
4. Run the following command to verify the boot mode of the new AMI:
aws ec2 describe-images --image-id ami-077eabcxxxxaxdfx --query "Images[*].{BootMode:BootMode,TpmSupport:TpmSupport}"
If the AMI has UEFI Secure Boot and TPM Support turned on, then the output appears as shown in the following example:
[ { "BootMode": "uefi", "TpmSupport": "v2.0" } ]
If the AMI has UEFI Secure Boot turn on, the output appears as follows:
[ { "BootMode": "uefi", "TpmSupport": "null" } ]
5. Launch an instance from the new AMI. Make sure that you use an instance type that supports UEFI and TPM.
6. To verify the secure boot and TPM state, connect to the instance using RDP. Then, run the following commands in AWS PowerShell administrator mode.
If the instance supports UEFI Secure Boot and Secure Boot is turned on, the following cmdlet returns $True. Otherwise, the response is $False.
PS> Confirm-SecureBootUEFI
Run the following command to check for the TpmPresent attribute. If TPM is present on the instance, then the response is $True. Otherwise, the response is $False.
PS> Get-Tpm
Note:
- NitroTPM and UEFI Secure Boot are independent features that can be turned on independently at AMI creation.
- After a TPM is activated for an AMI, it can't be deactivated.
- UEFI supports Secure Boot.NitroTPM provides measured boot.
Relevant content
- asked 6 months agolg...
- asked 3 years agolg...
- asked 2 years agolg...
- asked 3 years agolg...
- Accepted Answerasked 2 years agolg...
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago