Enable the Compute Engine API. Create a Linux VM instance. In the Google Cloud console, go to the Create an instance page. Go to Create an instance. In the Boot disk section, click Change to begin configuring your boot disk. On the Public images tab, choose Ubuntu from the Operating system list.
https://cloud.google.com/compute/docs/create-linux-vm-instance