Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Create an image from VMDK

FS
Bronze 1
Bronze 1

Hi Team 

I tried to create an image from VMDK file but i had the issue below. any help is more than welcome 

 

Created [https://cloudbuild.googleapis.com/v1/projects/fs-lab-377113/builds/81ea9b18-829c-44c1-9631-1c0b898b6...].
Logs are available at [https://console.cloud.google.com/cloud-build/builds/81ea9b18-829c-44c1-9631-1c0b898b6023?project=779...].
starting build "81ea9b18-829c-44c1-9631-1c0b898b6023"
[import-image]: 2023-03-30T12:19:22Z Inspecting the image file...
[import-image]: 2023-03-30T12:23:24Z Inspecting disk for OS and bootloader
[import-image]: 2023-03-30T12:24:56Z Inspection result=os_release:{cli_formatted:"centos-7" distro:"centos" major_version:"7" minor_version:"2" architecture:X64 distro_id:CENTOS} elapsed_time_ms:91463 os_count:1
[import-image]: 2023-03-30T12:24:58Z Failed to clone disk: operation failed &{ClientOperationId: CreationTimestamp: Description: EndTime:2023-03-30T05:24:57.187-07:00 Error:0xc000203b80 HttpErrorMessage:FORBIDDEN HttpErrorStatusCode:403 Id:634575803296301431 InsertTime:2023-03-30T05:24:56.936-07:00 Kind:compute#operation Name:operation-1680179096692-5f81d2e37a6c8-2e3b8473-9e4c4aa2 OperationGroupId: OperationType:insert Progress:100 Region: SelfLink:https://www.googleapis.com/compute/v1/projects/fs-lab-377113/zones/europe-west9-a/operations/operati... StartTime:2023-03-30T05:24:56.941-07:00 Status:DONE StatusMessage: TargetId:1439581046844211575 TargetLink:https://www.googleapis.com/compute/v1/projects/fs-lab-377113/zones/europe-west9-a/disks/disk-4m5dh-1 User:779259270134@cloudbuild.gserviceaccount.com Warnings:[] Zone:https://www.googleapis.com/compute/v1/projects/fs-lab-377113/zones/europe-west9-a ServerResponse:{HTTPStatusCode:200 Header:map[Cache-Control:[private] Content-Type:[application/json; charset=UTF-8] Date:[Thu, 30 Mar 2023 12:24:57 GMT] Etag:[EmzLktfbnjcvssscf5o7KMkRDWQ=/QbL8F8yE_hXaeAxwdmfBr0YxvIY=] Server:[ESF] Vary:[Origin X-Origin Referer] X-Content-Type-Options:[nosniff] X-Frame-Options:[SAMEORIGIN] X-Xss-Protection:[0]]} ForceSendFields:[] NullFields:[]}: Code: QUOTA_EXCEEDED; Message: Quota 'SSD_TOTAL_GB' exceeded. Limit: 500.0 in region europe-west9.
ERROR
ERROR: build step 0 "gcr.io/compute-image-tools/gce_vm_image_import:release" failed: step exited with non-zero status: 1
ERROR: (gcloud.compute.images.import) build 81ea9b18-829c-44c1-9631-1c0b898b6023 completed with status "FAILURE"

0 1 585
1 REPLY 1

During image import Cloud Build utilizes resources on your GCP account to perform this operation. In the logs you provided there is a quota error for SSD usage in europe-west9.


Code: QUOTA_EXCEEDED; Message: Quota 'SSD_TOTAL_GB' exceeded. Limit: 500.0 in region europe-west9.

You can either increase your quota for SSD_TOTAL_GB in europe-west9, or image import can be given a zone to run in where there is available quota.

To run image import in a different zone you can use the optional flag zone when calling gcloud compute image import.