错误:实例和启动磁盘的 UEFI 设置必须相同。在 GCP 中编辑虚拟机实例时

Dhi*_*Saw 2 google-cloud-platform

基本上我想在 GCP 中备份虚拟机并了解快照。所以我尝试使用我创建了一个名为 Angular 的机器的快照(该机器包含 Angular 和 Node 的数据)snapshot的功能GCP,这里是快照的图像:

快照详情

现在我想使用此快照来恢复数据,并且不想创建新实例,我得到一种方法,首先您必须删除要恢复快照数据的实例的启动磁盘,然后使用该快照创建一个新磁盘,然后使用该磁盘。我尝试了这种技术,但收到此错误:

错误:

UEFI setting must be the same for the instance and the boot disk.
Run Code Online (Sandbox Code Playgroud)

我使用快照创建的磁盘映像:

迪克斯详细信息

我想要在其中使用新磁盘的 VM 实例的映像(从快照创建)

虚拟机实例

虚拟机实例

我究竟做错了什么?

Jos*_*dal 5

我认为您的实例可能与UEFI不兼容。在 Google Cloud 上,有些映像与UEFI兼容,而另一些则不兼容。您可以使用以下命令检查您的实例是否与 UEFI 兼容(输入正确的区域):

$ gcloud compute instances describe your-instance --zone=europe-west4-b | grep type:
Run Code Online (Sandbox Code Playgroud)

如果实例兼容,您将看到type: UEFI_COMPATIBLE结果。如果不兼容,您将看不到它。我认为目前无法在实例上编辑 UEFI 兼容性。但是,您可以检查哪些映像与 UEFI 兼容。这里有几个例子:

兼容的:

$ gcloud compute images describe-from-family rhel-7 --project=rhel-cloud  | grep type:
- type: UEFI_COMPATIBLE

$ gcloud compute images describe-from-family rhel-8 --project=rhel-cloud  | grep type:
- type: UEFI_COMPATIBLE
Run Code Online (Sandbox Code Playgroud)

不兼容:

$ gcloud compute images describe-from-family debian-9 --project=debian-cloud  | grep type:
- type: VIRTIO_SCSI_MULTIQUEUE
Run Code Online (Sandbox Code Playgroud)

您可以在此处查看其他图像详细信息。