What's Actually Happening
Google Cloud Compute Engine instance fails to start. The instance remains in stopped or provisioning state.
The Error You'll See
Error: The zone 'projects/my-project/zones/us-central1-a' does not have enough resources available to fulfill the request.Why This Happens
- 1.Resource availability in zone
- 2.Quota limits exceeded
- 3.Boot disk issues
- 4.Service account problems
- 5.Network configuration errors
Step 1: Check Instance Status
gcloud compute instances describe my-instance --zone=us-central1-a
gcloud compute instances list --filter="name=my-instance"Step 2: Check Serial Console
gcloud compute instances get-serial-port-output my-instance --zone=us-central1-aStep 3: Check Quotas
gcloud compute project-info describe --project=my-project
gcloud compute project-info describe --project=my-project --format="value(quotas)"Step 4: Check Boot Disk
gcloud compute disks describe my-instance --zone=us-central1-a
gcloud compute disks list --filter="name=my-instance"Step 5: Try Different Zone
gcloud compute instances move my-instance --destination-zone=us-central1-bStep 6: Resize Instance
gcloud compute instances set-machine-type my-instance --zone=us-central1-a --machine-type=n1-standard-2Step 7: Check Service Account
gcloud compute instances describe my-instance --zone=us-central1-a --format="value(serviceAccounts)"Step 8: Check Network
gcloud compute networks describe default
gcloud compute firewall-rules listStep 9: Recreate Instance
gcloud compute instances stop my-instance --zone=us-central1-a
gcloud compute instances delete my-instance --zone=us-central1-a --keep-disks=boot
# Create new from diskStep 10: Check Logs
gcloud logging read "resource.type=gce_instance AND resource.labels.instance_id=my-instance" --limit=50Related Issues
- [Fix GCP Instance SSH Failed](/articles/fix-gcp-instance-ssh-failed)
- [Fix GCP Disk Full](/articles/fix-gcp-disk-full)