GCloud导入vmdk磁盘始终失败

时间:2020-04-29 14:18:03

标签: google-compute-engine gcloud esxi

我正在尝试将一些ESXI VM上传到Google Cloud。我已经使用ESXI工具导出了所有VM,并获得了3个.vmdk文件。这些文件中的一个上传没有问题,但是其他两个则引发以下错误,然后失败:

ERROR: build step 0 "gcr.io/compute-image-tools/gce_vm_image_import:release" failed: step exited with non-zero status: 1
ERROR: (gcloud.compute.images.import) build 6683803d-6947-46c3-951e-20da0e529c07 completed with status "FAILURE"

我已按照本指南导入磁盘:https://cloud.google.com/compute/docs/import/importing-virtual-disks

它说支持CentOS 8(正在运行VM),所以我猜那里没有问题。我还没有发现任何类似的东西,所以我希望这里的人遇到这个问题,并且无法解决。

编辑

我发现它试图将图像大小设置为1024GB(我不知道为什么),这可能与它有关。它还会引发错误:

"ImportFailed: Failed to resize disk. The Compute Engine default service account needs the role: roles/compute.storageAdmin'"

它确实有作用。

0 个答案:

没有答案