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

Startup script doesn't run without external IP

When I set external IP to None in the network interface of GCE instance the configured startup script is detected but it doesn't run. The startup script runs when I update the VM and set an external IP. I didn't find any documentation regarding this. 
All the VM instances are part of an instance group which is the backend of an internal load balancer, so I don't need an external IP on them. 

Solved Solved
0 5 408
1 ACCEPTED SOLUTION

It seems that you don't have a Cloud NAT provisioned, without this none of the servers from a private network will be able to connect to internet and pull the packages.

If you don't have that just go ahead and create a Cloud Router + Cloud NAT, attach that your private network and you should be good to go.

View solution in original post