简体   繁体   English

在GCE上导入虚拟磁盘

[英]Importing virtual disk on GCE

I have transformed a VMDK disk of a Ubuntu 16.04 host into a raw image using qemu-img convert . 我已经使用qemu-img convert Ubuntu 16.04主机的VMDK磁盘转换为原始映像。 Everything seems fine, I can mount it and check its contents. 一切似乎都很好,我可以挂载它并检查其内容。 I uploaded it to a GCS bucket, following the instructions. 我按照说明将其上传到了GCS存储桶。

However, it doesn't seem to boot, so I'm following these official instructions to make that image bootable. 但是,它似乎无法启动,因此我正在按照这些官方说明进行操作,以使该映像可启动。

The conversion job always fails with this message: 转换作业始终失败,并显示以下消息:

[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"

Has anyone seen this Package 'cloud-init' has no installation candidate error? 有人看到过这个Package 'cloud-init' has no installation candidate错误吗?

install cloud-init before trying to convert - then it won't need installation candidates. 在尝试进行转换之前先安装cloud-init-然后就不需要安装候选程序了。

this means, boot the vmdk and then run sudo apt-get cloud-init . 这意味着,启动vmdk ,然后运行sudo apt-get cloud-init

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM