Keith Rockhold
Keith Rockhold

Reputation: 124

Cannot create GCP VM, public images are empty

When attempting to create a new GCP VM on a new account, the list of public images is empty. If I try to launch an image from the public marketplace, the boot device will not be attached.

What am I doing wrong here?

Boot Disk screen showing no images

Upvotes: 1

Views: 743

Answers (2)

Yev Guyduy
Yev Guyduy

Reputation: 1539

  1. open cloud shell as per my comment (right upper corner square with ">" sign)

  1. list images using gcloud compute images list

Output will look like this:
enter image description here


  1. try to create your VM with desired image via opened cloud shell using for example the following

gcloud compute instances create test --image-family ubuntu-1804-lts --image-project ubuntu-os-cloud

Output should look something like this: enter image description here

If so, you will find your instance running under compute engine.


PS.

Dont forget to turn these VMs off when you are done.

If you want to select another image make sure to use image project and image family from output from step 2.

Either way at least this should give you some errors to resolve

Upvotes: 1

Keith Rockhold
Keith Rockhold

Reputation: 124

Turns out the problem was caused by the security group in my organization which set a public image constraint and neglected to ensure my team was aware of it.

https://cloud.google.com/compute/docs/images/restricting-image-access

Upvotes: 1

Related Questions