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

Issue creating VM instance from the machine image in desired region

Hi everyone,

This is the issue I am facing:

Description:

I am encountering an issue when attempting to create a VM instance from a machine image using the Google Cloud Platform (GCP) console in desired region. While I can successfully create the VM using the command line interface with the following command:

 

gcloud compute instances create my-demovm --zone=asia-south1-a --source-machine-image=instance-4-20240124

 

I am unable to achieve the same result through the GCP console.

Problem Details:

  • When using the GCP console, the default region is set to "us-centra1," and attempting to change the region during VM creation results in Boot Disk error  even though the machine image storage location is the same that I want to launch the instance in!
  • I need to create the VM in the "asia-south1-a" region with the original operating system specified in the machine image but not sure why I am facing such behaviour while doing it in the GCP console.

Screenshot from 2024-01-29 15-56-48.png

After changing the region:

Screenshot from 2024-01-29 15-57-23.png

Troubleshooting Steps Taken:

  • Verified permissions to ensure sufficient access for creating VM instances and accessing machine images in the desired region.
  • Reviewed available options and workflow in the GCP console to ensure correct configuration settings. I tried changing the default region to the desired region which worked but what if the storage location of some machine image is different and i want them to launch in that region rather than in the default one??

I would appreciate any insights or guidance on resolving this issue. Additionally, if there are specific steps or configurations required in the GCP console to achieve the desired outcome, please provide instructions accordingly.

0 2 969
2 REPLIES 2

Hi @sudeepgcp,

Welcome to the Google Cloud Community!

Since you were able to create the image through Cloud Shell but encountered issues in the Cloud Console, this might be a bug. Please kindly fill out the form in the Compute Engine's Issue Tracker.

You may also refer to this document for known issues about Compute Engine, where it's mentioned that using the Cloud Console can sometimes cause problems.

I hope this helps. Thank you.

Hi @lawrencenelson 

Thank you for your response. I have filled out the form as you mentioned. Hope to get some help on this soon!