Questions tagged [google-compute-engine]

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

Official website

6707 questions
2
votes
1 answer

minimizing the cost of uploading a very large tar file to Google Cloud Storage

I'm currently trying upload and then untar a very large file (1.3 tb) into Google Cloud Storage at the lowest price. I initially thought about creating a really cheap instance just to download the file and put it in a bucket, then creating a new…
2
votes
1 answer

Google Compute Engine - no resources

For the last 3 days, I've been trying to setup a VM instance using Google Compute Engine. However, every time I try, I get the following error: The zone 'projects/xxxxxxx/zones/xxxxxx' does not have enough resources available to fulfill the…
jon
  • 1,429
  • 1
  • 23
  • 40
2
votes
1 answer

Google Cloud Stogage cache control issue with Google CDN

I use Google CDN with load balancer and changed the metadata for the existing object to reset cache control. $ gsutil setmeta -h "Cache-Control:private, max-age=0, no-transform" gs://bucket/*.jpg And I updated the new object, but I still got the…
Danny
  • 117
  • 1
  • 9
2
votes
1 answer

List all available public images with Gcloud APIs

I was wondering if there is an equivalent to this Gcloud SDK command just using the Gcloud APIs: gcloud compute images list I have already tried with the images.list() endpoint, but I'm aware this retrieves your custom images, not the public ones.…
2
votes
2 answers

Google Compute Engine SSH from browser stopped working Error 13

A compute instance I had running stopped working and I am no longer able to ssh to it from the browser. When I try it hangs forever and eventually I get the error message: You cannot connect to the VM instance because of an unexpected error. Wait a…
hamdog
  • 991
  • 2
  • 10
  • 24
2
votes
1 answer

Google Cloud Single-Node File Server add another disk

I made a fairly standard deployment of the Single-Node File Server on Google Cloud. It works fine as I can mount the file server's disk from other instances. However, now I want to add another disk to the same file server. The documentation says I…
2
votes
2 answers

No module named 'google.cloud._helpers' on GCE

I get an error when importing google.cloud.bigquery on GCE. It did not happen in an environment that is not GCE. I executed update with pip. Do you know why? user1@sv1:~$ python Python 3.6.0 |Continuum Analytics, Inc.| (default, Dec 23…
2
votes
1 answer

non-deterministic connection success for recently started Google Compute Engine VM

I am using the googleapiclient python api to start a vm, and then paramiko to connect to it via ssh. I use googleapiclient.discovery to get the GCE api compute = googleapiclient.discovery.build('compute', 'v1') I start my vm using the start api…
Steve Lorimer
  • 27,059
  • 17
  • 118
  • 213
2
votes
2 answers

Can't access TPU from VM in GCP

Trying to run this code import os import tensorflow as tf from tensorflow.contrib import tpu from tensorflow.contrib.cluster_resolver import TPUClusterResolver def axy_computation(a, x, y): return a * x + y inputs = [ 3.0, tf.ones([3,…
2
votes
0 answers

googleapi: got HTTP response code 404 with body: Not Found

I have this problem when I try to use the library for Golang "libretto" to instance VM from script vm := &gcp.VM{ Name: "test-vm-2", Zone: "us-central1-f", MachineType: "n1-standard-1", SourceImage:…
Vincenzo
  • 53
  • 6
2
votes
1 answer

Ingress rules not works

I use GCE and try to expose an application via ingress. But path rules don't work. apiVersion: extensions/v1beta1 kind: Ingress metadata: name: front-ingress namespace: {{ .Release.Namespace }} annotations: {{ if eq .Values.env…
2
votes
1 answer

Google Cloud Platform LAMP setup Laravel 5.4

Looking for help on server problem. I have followed the following steps to set up LAMP on the VM https://cloud.google.com/community/tutorials/setting-up-lamp I put my Laravel 5.4 website onto the VM, configure the .env for the…
2
votes
1 answer

How to use environment variables in Compute Engine on Google Cloud Platform?

I have an application running in Compute Engine on Google Cloud Platform which reads system environmental variables. I wonder what is the way to put them in my instance so that the application will be able to read them in runtime. Here is how I…
Kamil Lelonek
  • 14,592
  • 14
  • 66
  • 90
2
votes
1 answer

How to specify preemptible GPU Deep Learning Virtual Machine on GCP

I can't figure out how to specify preemptible GPU Deep Learning VM on GCP This what I used: export IMAGE_FAMILY="tf-latest-gpu" export ZONE="europe-west4-a " export INSTANCE_NAME="deeplearning" gcloud compute instances create $INSTANCE_NAME \ …
2
votes
3 answers

Google Cloud | Compute Engine | VM Stuck

I am having 20+ VMs using google compute engine, and only one in particular is getting stuck. By getting stuck i mean, i cannot call virtual KVM from google console, getting SSH error. When i try to SSH to the VM from outside, it is crashing with…
axelkeegan
  • 33
  • 4