确定 AMI 的启动模式参数 - Amazon Elastic Compute Cloud
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

确定 AMI 的启动模式参数

AMI 启动模式参数是可选项。AMI 可以具有以下任一启动模式参数值:uefilegacy-biosuefi-preferred

某些 AMI 没有启动模式参数。如果 AMI 没有启动模式参数,从 AMI 启动的实例将使用实例类型的默认值,在 Graviton 上使用 uefi,并在 Intel 和 AMD 实例类型上使用 legacy-bios

Console
确定 AMI 的启动模式参数(控制台)
  1. 通过以下网址打开 Amazon EC2 控制台:https://console.aws.amazon.com/ec2/

  2. 在导航窗格中,选择 AMI,然后选择 AMI。

  3. 检查启动模式字段。

    • uefi 表示 AMI 支持 UEFI。

    • uefi-preferred 表示 AMI 同时支持 UEFI 和传统 BIOS。

    • 如果没有值,从 AMI 启动的实例将使用实例类型的默认值。

在启动实例时确定 AMI 的启动模式参数(控制台)

使用启动实例向导启动实例时,请在选择 AMI 的步骤中检查启动模式字段。有关更多信息,请参阅应用程序和操作系统镜像 (Amazon Machine Image)

Amazon CLI
确定 AMI 的启动模式参数 (Amazon CLI)

使用 describe-images 操作确定 AMI 的启动模式。

C:\> aws ec2 describe-images --region us-east-1 --image-id ami-0abcdef1234567890 { "Images": [ { ... ], "EnaSupport": true, "Hypervisor": "xen", "ImageOwnerAlias": "amazon", "Name": "UEFI_Boot_Mode_Enabled-Windows_Server-2016-English-Full-Base-2020.09.30", "RootDeviceName": "/dev/sda1", "RootDeviceType": "ebs", "SriovNetSupport": "simple", "VirtualizationType": "hvm", "BootMode": "uefi" } ] }

输出中的 BootMode 字段表示 AMI 的启动模式。值 uefi 表示 AMI 支持 UEFI。值 uefi-preferred 表示 AMI 同时支持 UEFI 和传统 BIOS。如果没有值,从 AMI 启动的实例将使用实例类型的默认值。

PowerShell
确定 AMI 的启动模式参数(Tools for PowerShell)

使用 Get-EC2Image Cmdlet 确定 AMI 的启动模式。

PS C:\> Get-EC2Image -Region us-east-1 -ImageId ami-0abcdef1234567890 | Format-List Name, BootMode, TpmSupport Name : TPM-Windows_Server-2016-English-Full-Base-2023.05.10 BootMode : uefi TpmSupport : v2.0

输出中的 BootMode 字段表示 AMI 的启动模式。值 uefi 表示 AMI 支持 UEFI。值 uefi-preferred 表示 AMI 同时支持 UEFI 和传统 BIOS。如果没有值,从 AMI 启动的实例将使用实例类型的默认值。