无法将磁盘映像导入 Google Cloud Platform
Can't import disk image to Google Cloud Platform
我正在尝试将图像从 vmdk 文件导入 Google Cloud Platform:
gcloud compute images import jira-vmdk --source-file gs://r-vm/jira_0-flat.vmdk.gz --os debian-9
OS 由 import_precheck 实用程序预先验证:
import_precheck screen
但是导入时出现错误:
[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
我该如何解决?有什么想法吗?
问题已解决。
https://cloud.google.com/compute/docs/images/import-existing-image
The bootloader on the boot disk must not have quiet, rhgb, or
splashimage= kernel command line arguments. Compute Engine does not
support splash screens on boot. You can remove these values from the
GRUB config during the bootloader configuration step.
Debian 9 的步骤
在/etc/default/grub
注释掉
#GRUB_CMDLINE_LINUX_DEFAULT="quiet"
添加
GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0,38400n8d"
sudo update-grub
我正在尝试将图像从 vmdk 文件导入 Google Cloud Platform:
gcloud compute images import jira-vmdk --source-file gs://r-vm/jira_0-flat.vmdk.gz --os debian-9
OS 由 import_precheck 实用程序预先验证:
import_precheck screen
但是导入时出现错误:
[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
我该如何解决?有什么想法吗?
问题已解决。
https://cloud.google.com/compute/docs/images/import-existing-image
The bootloader on the boot disk must not have quiet, rhgb, or splashimage= kernel command line arguments. Compute Engine does not support splash screens on boot. You can remove these values from the GRUB config during the bootloader configuration step.
Debian 9 的步骤
在/etc/default/grub
注释掉
#GRUB_CMDLINE_LINUX_DEFAULT="quiet"
添加
GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0,38400n8d"
sudo update-grub