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
6
votes
4 answers

How do you securely retrieve the ssh host keys from a google compute engine instance?

I want to update my ~/.ssh/known_hosts with the host key information for a newly created GCE instance. But I'm not sure how to securely retrieve that information. I thought something like gcloud compute ssh @ --command='ssh-keyscan…
jhfrontz
  • 293
  • 3
  • 13
6
votes
1 answer

How to debug internal 400 errors in Google Cloud

We have a system that we are migrating from AWS to Google Cloud. The servers are containerized and deployed through Kubernetes. We have the frontend making api calls to the backend. A lot of the time these api calls succeed. Intermittently, we see…
Danack
  • 1,216
  • 1
  • 16
  • 27
6
votes
3 answers

default ssh is not working from GCP Console and browser crashes or hang

After creating an instance in Google Cloud Platform(GCP), I was able to click on SSH and open the browser based SSH console to access the instance. (Auto key copying and connect from console itself without a local ssh client) But I noticed this is…
6
votes
1 answer

Open 443 on Google Compute Instance?

For some reason I can't open port 443 on my google compute instance. I have HTTPS server enabled on the instance, and using gcloud compute firewall-rules list returns the rules below: NAME NETWORK DIRECTION PRIORITY ALLOW …
cclloyd
  • 593
  • 2
  • 14
  • 29
6
votes
2 answers

Error: bad command `​nospoof on' in /etc/host.conf file

Iam using a Ubuntu 17.10 VM in GCP. To prevent my server's IP from being spoofed, I did the below changes in my /etc/host.conf file: Changed from: # The "order" line is only used by old versions of the C library. order hosts,bind multi on To # The…
Abhi1988
  • 71
  • 1
  • 1
  • 3
6
votes
2 answers

Intermittent DNS failures in Google Container Engine

[Question rewritten with details of findings.] I am running a Google Container Engine cluster with about 100 containers which perform about 100,000 API calls a day. Some of the pods started getting 50% failure in DNS resolution. I dug into this and…
6
votes
2 answers

Stackdriver Extractor fails

I'm trying to get stackdriver working with GCE. I went through the standard instructions to install (executing stack-install.sh --write-gcm), however it doesn't seem to work at all. When I add monitoring alerts to watch processes, I get: Process…
woot
  • 211
  • 2
  • 7
6
votes
1 answer

Google Cloud Storage Fuse vs GlusterFS, pros, cons and costs

I'm setting up some web servers on Google Cloud Compute and I need a directory synced between all the servers to keep the web sites in sync. I'd also like to use the autoscaling feature to provision new servers when needed. I realise GlusterFS…
6
votes
2 answers

Is it safe to execute "sudo reboot" on a Google Compute Engine instance?

I’ve been using Google Compute Engine for 2 months now, I have a bunch of stuff installed on it. Just installed a new kernel, so a reboot is required. I'd like to know if sudo reboot is safe. Meaning a reboot will not wipe out everything installed…
Jason Gu
  • 63
  • 1
  • 1
  • 3
6
votes
3 answers

How to migrate to Google managed certificates without downtime?

I'm moving example.com from an external (non-Google) hosting provider into GCP. When setting up the load balancer, I noticed that I have to point example.com to the load balancer in order for the Google managed certificate to validate. I'm supposed…
6
votes
2 answers

Google Cloud disk multiple snapshot schedules

Is it possible to have multiple snapshot schedules assigned to a single disk in Google Cloud Compute Engine? My goal is to have a daily snapshot schedule with a certain retention policy and a weekly snapshot schedule with a different retention…
Jeff
  • 309
  • 3
  • 13
5
votes
4 answers

Why can't I access Metadata Server of GCP Instance?

I am getting Could not resolve host metadata.google.internal or Could not resolve host metadata error when I try to access Metadata Server. Although I use my own VPC with custom firewall, I don't think this is the issue of firewall because according…
user71823
  • 161
  • 1
  • 1
  • 9
5
votes
1 answer

Google Cloud frequently doesn't have enough resources

This is a Canonical Question about a temporary shortage of available resources in Google Cloud services. I'm a Brazilian user of Google Cloud's Compute Engine for a while and I managed to use it fine for quite some months. Unfortunately, in the…
Momergil
  • 151
  • 2
  • 7
5
votes
2 answers

No space left on device even after adding a Persistence Storage on gcloud

I am new to Google Cloud. I was downloaded a few text files into the VM instance. I then suddenly started getting messages like bash: cannot create temp file for here-document: No space left on device I ran the df -h and found that my disk was…
Aman Mathur
  • 153
  • 1
  • 1
  • 5
5
votes
2 answers

Google compute - SSH - port 22 blocked by ufw

Well, I was doing some server setup reading this article and ran the following commands - sudo apt-get install ufw sudo ufw enable sudo ufw allow 80/tcp sudo ufw allow 443/tcp This basically closed all other ports and now SSH is not working at…
A G
  • 163
  • 1
  • 7
1 2
3
97 98