'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



Solution 1:[1]

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

Solution 2:[2]

  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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Keith Rockhold
Solution 2