Questions tagged [google-compute-engine]

Google Compute Engine offers scalable and flexible virtual machine computing capabilities in the cloud.

Google Compute Engine (GCE) is the Infrastructure as a Service (IaaS) component of Google Cloud Platform which is built on the global infrastructure that runs Google's search engine, Gmail, YouTube and other services. Google Compute Engine enables users to launch virtual machines (VMs) on demand. VMs can be launched from the standard images or custom images created by users. GCE users must authenticate based on OAuth 2.0 before launching the VMs. Google Compute Engine can be accessed via the Developer Console, RESTful API or command-line interface (CLI).

Useful links

1463 questions
5
votes
1 answer

How can I install Stackdriver's monitoring agent on Ubuntu 18.04LTS?

I'm trying to use Stackdriver Monitoring on an Ubuntu 18.04 VM on Google Compute Engine. It looks like 18.04 isn't supported yet, even though it's an LTS release. I tried editing the install script to install the 16.04 version but it looks like…
5
votes
1 answer

GCP: Invalid resource usage: 'UEFI feature is not available for this project.'

I created an image using the --guest-os-features="UEFI_COMPATIBLE" option as described in the documentation but when trying to instantiate an VM Instance (using the Console and gcloud) I get the following error: ERROR:…
5
votes
2 answers

Why might an External IP change on a Google Cloud Platform VM instance?

I realized that the external IP of my VM instance changed to an IP that I don't know. Also, next to the external IP it says "(ephemeral)". What could cause this to change? How do I prevent that in the future?
jenmos
  • 81
  • 1
  • 3
5
votes
1 answer

Random failed_to_connect_to_backend errors on GCE LB

I made a simple setup with two GCE instances behind a load balancer. But in the balancer logs, I can see random 502 responses with the following error: "failed_to_connect_to_backend" Al thought the last health check was fine with 200 response, and…
5
votes
1 answer

How to apply label to instances of Managed Instance Group?

Is there a way to automatically apply Labels to instances that are launched by a GCE Managed Instance Group (aka. Instance Group Manager)? I see that you can add Network Tags in the Instance Template (properties.tags), but I don’t see a way to add…
yonran
  • 797
  • 2
  • 11
  • 22
5
votes
2 answers

Why does Google Cloud Platform recommend using HTTPS behind a load balancer?

According to this guide for setting up an HTTP(S) load balancer in GCP: The client SSL session terminates at the load balancer. Sessions between the load balancer and the instance can either be HTTPS (recommended) or HTTP. If HTTPS, each instance…
5
votes
1 answer

How do I avoid an overbooked GCE zone?

Apparently if too many people use a zone, you won't be able to start instances back up. Starting VM instance Error: The zone does not have enough resources available to fulfill the request As I'll need to move the instance to a new zone, how do…
Ray Foss
  • 249
  • 2
  • 12
5
votes
1 answer

How do I remove internet access from a Google Instance?

One of the cloud instances I manage got hacked. It is powered down at the moment, but I want to bring it up disconnected from the internet. So I can examine and analyze it with it continuing to do it's harm. What do I need to do to make that happen?
Frank Barcenas
  • 605
  • 6
  • 18
5
votes
2 answers

How to connect networks from different projects, VPC peering analogue

Google recommend to use different projects to control access to resources - ok, it seems reasonable I plan to create one "shared" project with some infrastructure services and then several projects with resources which should have access to "shared"…
Dmitry
  • 125
  • 1
  • 6
5
votes
1 answer

Why are Google Cloud Compute Engine WAN speeds less than what Google has documented?

I have a google compute engine instance in us-central1-b running Centos 7 with 1vCPU and 3.75GB RAM. According to the section "Egress throughput caps" on https://cloud.google.com/compute/docs/networks-and-firewalls my internet speed should be…
Jeff
  • 309
  • 3
  • 13
5
votes
1 answer

How to show which image a GCE VM was created from?

I need to figure out which image was used to create a virtual machine in my organization's Google Cloud / Compute Engine project. I don't see this information on the Virtual Machine overview page (within…
user247175
5
votes
3 answers

How do you modify the existing access scope of a Google Cloud Platform service account?

I have a service account, which is asssigned to my GCE instances and is listed as active, which I can verify by running gcloud auth list on any one of the instances. The service account currently has Google Cloud API access to a few services. What…
hsatterwhite
  • 332
  • 2
  • 5
  • 14
5
votes
2 answers

Google compute engine - shrinking disks

I have a 5TB HD and I want to shrink it to 2TB. I use Google Compute Engine PaaS. How can I do that? Can you suggest any tools to perform this manually if this cannot be solved by Google's tools?
Eran Betzalel
  • 367
  • 1
  • 3
  • 11
5
votes
2 answers

Why is my VM created in GCE asia-east1 is getting a US IP address?

I provisioned a custom-sized VM in GCE zone asia-east1-a and I chose that zone for a reason. Why is it that when checking my IP location I see that the location is in Mountain View, CA? Is this because the IP is registered to that location or is it…
5
votes
3 answers

Resize kubernetes cluster with a different machine type?

I want to add a new node in existing kubernetes cluster, but with a different machine type. For the new node I will add label for it so that only some application will run on it. I tried the following command gcloud compute instance-groups managed…