About Importing the ovf File to GCP

Asked 2 years ago, Updated 2 years ago, 93 views

What do you want to do

Want to VM deploy OVF files to GCP

Commands entered into Google could shell

gcloud computer instances import cml2-test2\
--source-uri=gs://test0royuegej/cml2_test.ovf
--os=centos-7\
--zone=asia-northeast1-c

Error Output

ERROR
ERROR:build step0"gcr.io/compute-image-tools/gce_ovf_import:release" failed:step expired with non-zero status:1
ERROR: (gcloud.compute.instances.import)build dcf305d5-f13f-49ec-9d89-6c8489881b53 completed with status "FAILURE"
-bash:-os=centos-7:command not found

About Errors

Regarding the os error, I don't think other blogs and stackoverflows are wrong about the designation, but the above error will be printed.
I would appreciate it if you could tell me the cause of the error and how to resolve it.
Thank you for your cooperation.

google-cloud

2022-09-30 19:12

1 Answers

The error " --os=centos-7 command not found" indicates that another command was executed from here.
If you look closely, I think the reason is that \ is not enough at the end of the line that specifies the --source-uri parameter.

Modified Example:

gcloud computer instances import cml2-test2\
--source-uri=gs://test0royuegej/cml2_test.ovf\
--os=centos-7\
--zone=asia-northeast1-c


2022-09-30 19:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.