Export a custom image to Cloud Storage

When I export a custom image to cloud storage, I get this error.

[image-export]: 2024-02-25T11:41:06Z Validation of network "projects/qwiklabs-gcp-04-835ff6f0963f/global/networks/default" failed: googleapi: Error 404: The resource 'projects/qwiklabs-gcp-04-835ff6f0963f/global/networks/default' was not found, notFound
ERROR
ERROR: build step 0 "europe-west1-docker.pkg.dev/compute-image-import/wrappers/gce_vm_image_export:release" failed: step exited with non-zero status: 1
ERROR: (gcloud.compute.images.export) build a48a2959-e848-4597-99bd-cd1ade12ee4e completed with status "FAILURE"

The strange thing is that I deleted the default network and I have my own personalized network, why is it referencing the default network when it does not exist?

0 3 112
3 REPLIES 3

Hi, joalmici,

I think you need to check yaml or Docker (or related) files orchestrating the image building. They most probably demand that reference to the default network for the image building to be completed. And as you mentioned you have already deleted the default network. So the image cannot be built.

Best,

MC

Hi, MikaCloud

In my case is export an image that uses a shared VPC.

Export an image using Shared VPC 

So by following the documentation I was able to perform the task.

Best regards.

JM.

I am glad for you 🙂

Top Labels in this Space