Google Compute Engine offers scalable and flexible virtual machine computing capabilities in the cloud.
Questions tagged [google-compute-engine]
6707 questions
23
votes
3 answers
What is the gcloud command to allow http traffic on a VM instance? (It's not create firewall rule!)
First, I wish to use purely gcloud commands to acheive my objective - NOT the GCE interface - so please don't provide answers using the GUI!
I created an image from a disk attached to a VM instance. In order to do so, I had to delete the instance,…

BuvinJ
- 10,221
- 5
- 83
- 96
23
votes
3 answers
How do I add a startup script to an existing VM from the developer console?
I have an existing, already configured VM on Google Cloud Platform. It was created without a startup script, but I'd like to add one now.
How do I add it from the console.developers.google.com web interface?

mimming
- 13,974
- 3
- 45
- 74
23
votes
4 answers
google compute engine tool gcloud is exceptionally slow
I tried downloading and using the gcloud bash tool to manage my accounts, however everything I do with the tool is exceptionally slow. It will take MINUTES to reply to a command that is typed.
Is there perhaps a firewall I need to open up on my…

Mark Shust at M.academy
- 6,300
- 4
- 32
- 50
22
votes
3 answers
Blob.generate_signed_url() failing to AttributeError
So I'm trying to produce temporary globally readable URLs for my Google Cloud Storage objects using the google-cloud-storage Python library (https://googlecloudplatform.github.io/google-cloud-python/latest/storage/blobs.html) - more specifically the…

Matti
- 427
- 1
- 4
- 13
22
votes
5 answers
Is 1 vCPU on Google Compute Engine basically half of 1 physical CPU core?
Google's Machine types page states that:
For the n1 series of machine types, a virtual CPU is implemented as a
single hardware hyper-thread on a 2.6 GHz Intel Xeon E5 (Sandy
Bridge), 2.5 GHz Intel Xeon E5 v2 (Ivy Bridge)...etc
Assuming that a…

gunit
- 3,700
- 4
- 31
- 42
22
votes
1 answer
Why doesn't my Gmail user/password work when deploying ASP.NET to Compute Engine inside Visual Studio?
I created a Compute Engine VM using the ASP.NET Cloud Launcher, and now I want to deploy to it from Visual Studio.
I've created a publish settings file using the Visual Studio extension then tried to deploy using the regular Visual Studio "Publish"…

Jon Skeet
- 1,421,763
- 867
- 9,128
- 9,194
22
votes
2 answers
Change Google Compute/Cloud Server to SSD Persistent Disk
I have a live production website running on a standard persistent disk.
How do I safely upgrade this to an SSD disk?
Is there a simple way to do it using the dashboard and not console commands?
Just to be clear, it's fine to take the instance down…

Amy Neville
- 10,067
- 13
- 58
- 94
22
votes
3 answers
Compute Engine HTTP Load Balancing 502 error
We're having significant issues with our http load balancer from certain IPs only.
I've seen a few other posts here about this. We've made sure the firewall is ok, I've even deleted and recreated the forwarding rules. Which is blasted annoying since…

simonmorley
- 2,810
- 4
- 30
- 61
22
votes
6 answers
How to change a machine type on Google Compute Engine?
On Google Compute Engine, is there a way to change the machine type (for example, add cpu cores) after the machine was created?

Tzach
- 12,889
- 11
- 68
- 115
21
votes
2 answers
Google cloud compute engine always free tier
I am trying to run a compute engine instance using the always free tier option. The documentation of the free tier says if it is a computer engine instance of e2-micro from certain locations, it should be free. Here is the screenshot:
Now, I have…

Syed Arefinul Haque
- 1,123
- 2
- 14
- 38
21
votes
3 answers
GCE - different username if i use SSH or log in from terminal?
I created a new project with nothing in it.
When I created my first micro instance I did the following
Connect to it using the browser window SSH.
I see:
user_name@instance-1:~$
If I connect using the gcloud command:
gcloud compute --project…

jason m
- 6,519
- 20
- 69
- 122
21
votes
10 answers
How to create and rotate Automatic Snapshot?
On Compute Engine we can do Snapshots, which are basically backups. Could you try to figure out how we could create a script to do automated snapshots every day and keep like 4 snapshots, so basically after we have 4, delete the oldest one. This is…

Imran Rashid
- 273
- 1
- 2
- 10
20
votes
9 answers
Cannot access Google Cloud Compute Instance External IP
I have set up an Google Cloud Compute Instance:
Machine type
n1-standard-1 (1 vCPU, 3.75 GB memory)
CPU platform
Intel Haswell
Zone
us-east1-c
I can ssh in using the external address.
I have installed the vncserver and can access it on…

ilcorvo
- 213
- 1
- 2
- 8
20
votes
4 answers
Migrate Google compute engine instance to a different region
I am trying to migrate a couple of compute engine instances from Europe to Asia.
I need to do this because most of the users for those servers are in Asia and they get faster access to servers in their region. I am trying following command.
gcloud…

SYM
- 345
- 1
- 3
- 9
20
votes
2 answers
Docker Ignores limits.conf (trying to solve "too many open files" error)
I'm running a web server that is handling many thousands of concurrent web socket connections. For this to be possible, on Debian linux (my base image is google/debian:wheezy, running on GCE), where the default number of open files is set to 1000, I…

orcaman
- 6,263
- 8
- 54
- 69