Want to VM deploy OVF files to GCP
gcloud computer instances import cml2-test2\
--source-uri=gs://test0royuegej/cml2_test.ovf
--os=centos-7\
--zone=asia-northeast1-c
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
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.
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
© 2024 OneMinuteCode. All rights reserved.