1

我正在尝试将图像从 vmdk 文件导入 Google Cloud Platform:

gcloud compute images import jira-vmdk --source-file gs://r-vm/jira_0-flat.vmdk.gz --os debian-9

由 import_precheck 实用程序预先验证的操作系统:

import_precheck 屏幕

但是导入时出现错误:

[import-and-translate.translate.translate-disk.wait-for-translator]: 2018-05-08T18:29:21Z WaitForInstancesSignal: instance "inst-translator-import-and-translate-translate-translate-t0013": watching serial port 1, SuccessMatch: "TranslateSuccess:", FailureMatch: "TranslateFailed:".
[import-and-translate]: 2018-05-08T18:31:51Z Error running workflow: step "translate" run error: step "translate-disk" run error: step "wait-for-translator" run error: WaitForInstancesSignal FailureMatch found for "inst-translator-import-and-translate-translate-translate-t0013": "TranslateFailed: error: inspect_vm: no operating systems found"
[import-and-translate]: 2018-05-08T18:31:51Z Workflow "import-and-translate" cleaning up (this may take up to 2 minutes).

[Daisy] Errors in one or more workflows:
  import-and-translate: step "translate" run error: step "translate-disk" run error: step "wait-for-translator" run error: WaitForInstancesSignal FailureMatch found for "inst-translator-import-and-translate-translate-translate-t0013": "TranslateFailed: error: inspect_vm: no operating systems found"
ERROR
ERROR: build step 0 "gcr.io/compute-image-tools/daisy:release" failed: exit status 1

 我该如何解决?有任何想法吗?

4

1 回答 1

4

问题解决了。

https://cloud.google.com/compute/docs/images/import-existing-image

引导磁盘上的引导加载程序不能有 quiet、rhgb 或 splashimage= 内核命令行参数。Compute Engine 不支持启动时的初始屏幕。您可以在引导加载程序配置步骤中从 GRUB 配置中删除这些值。

Debian 9 的步骤

在 /etc/default/grub

注释掉

#GRUB_CMDLINE_LINUX_DEFAULT="quiet"

添加

GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0,38400n8d"

sudo update-grub
于 2018-05-11T08:01:22.233 回答