在GCE上导入虚拟磁盘

时间:2018-10-08 14:14:19

标签: google-cloud-platform google-compute-engine vmdk

我已使用For instance: Before filename of word document extraction: 34324_Cat_E_My Notes.docx After filename of word document extraction: My Notes 将Ubuntu 16.04主机的VMDK磁盘转换为原始映像。一切似乎都很好,我可以挂载它并检查其内容。我按照说明将其上传到了GCS存储桶。

但是,它似乎无法启动,因此我正在遵循these官方说明来使该映像可启动。

转换作业始终失败,并显示以下消息:

qemu-img convert

有人见过这个[import-from-image.translate-disk.translate-disk.wait-for-translator]: 2018-10-08T12:42:49Z WaitForInstancesSignal: Instance "inst-translator-import-from-image-translate-disk-transla-95yyp": watching serial port 1, SuccessMatch: "TranslateSuccess:", FailureMatch: "TranslateFailed:". [import-from-image]: 2018-10-08T12:45:19Z Error running workflow: step "translate-disk" run error: step "translate-disk" run error: step "wait-for-translator" run error: WaitForInstancesSignal FailureMatch found for "inst-translator-import-from-image-translate-disk-transla-95yyp": "TranslateFailed: error: sh: E: Package 'cloud-init' has no installation candidate" [import-from-image]: 2018-10-08T12:45:19Z Workflow "import-from-image" cleaning up (this may take up to 2 minutes). [Daisy] Errors in one or more workflows: import-from-image: step "translate-disk" run error: step "translate-disk" run error: step "wait-for-translator" run error: WaitForInstancesSignal FailureMatch found for "inst-translator-import-from-image-translate-disk-transla-95yyp": "TranslateFailed: error: sh: E: Package 'cloud-init' has no installation candidate" 错误吗?

1 个答案:

答案 0 :(得分:0)

先安装cloud-init,然后再尝试进行转换-则不需要安装候选程序。

这意味着,启动vmdk,然后运行sudo apt-get cloud-init