Questions tagged [gcp-compute-instance]
15 questions
2
votes
1 answer
docker-compose volume on gcp are rewritting name depending on user
I am using a startup script on gcp that launches a docker compose file at instance startup.
The issue is coming from docker-compose that does not launch same volume name if I start it as jeorfevre or if I start them as gcp user (start script). It…

jeorfevre
- 2,286
- 1
- 17
- 27
1
vote
1 answer
How do I connect VSCode Remote Explorer to a Google Cloud instance
I have created a GCP Linux instance.
I am running VSCode in Windows.
I have run the following commands in the VSCode Terminal:
gcloud auth login
gcloud config set project ecxxxast-377213
gcloud config set compute/zone us-central1-a
This command…

jlo-gmail
- 4,453
- 3
- 37
- 64
1
vote
1 answer
using Terraform, how to increase root disk of GCP instance without destroying the instance
I have a GCP instance created using Terraform. When I increase the size of its root disk, Terraform tries to destroy and recreate a new instance which is unacceptable. Here is my terraform code:
resource "google_compute_instance" "test" {
...
…

user389955
- 9,605
- 14
- 56
- 98
0
votes
1 answer
Get the operating system of a GCP instance without pre-defined features
How can I get a GCP Instance operating system type?
I need to be able to tell if an instance os type is Linux or Windows using the API / .Net Client SDK.
So far I found answers such as…

shahaf
- 741
- 1
- 8
- 26
0
votes
1 answer
GCP compute engine: how to check instance type (custom Linux) from the instance terminal?
I have custom Linux that I can boot up on AWS and GCP.
In AWS I can check EC2 instance type easily from terminal:
aws-instance-xyz:/ # dmidecode -s system-product-name
m6i.4xlarge
I would like to be able to check instance type of compute engine in…

pykaczka
- 29
- 5
0
votes
2 answers
How can i restore my Suspended Virtual Machine On Google Cloud Platform
About 1 month later I did crypto mining on my VM and then got a alert and then i just deleted that VM and then I created a new VM to do Codes and after a month GCP deleted my VM and said that i violated their Terms of service and then said me to…

Dishant Singh
- 1
- 1
0
votes
0 answers
Bash Script can't access proper environment variables in GCP Instance
I have tried everything to execute a manually installed command in a bash script that normally executes fine in my user shell (yigit@instance-1). I'm thinking that GCP Instances can't access proper env variables.
The command that I've installed…

Yiğit Mesci
- 65
- 9
0
votes
0 answers
Rollback package version using GCP OS Patch Management
If we upgrade package version using GCP OS Patch Management but you want to downgrade package version.
Is there any option available with OS Patch Management?

Vishnu Bhand
- 1
- 1
0
votes
0 answers
high initial loading time for website hosted on GCP compute engine VM
My website is hosted on GCP compute engine. The problem is that it takes too much time to load for the first time. almost 30-40 second in sometime.
I am using docker compose to run the container for both frontend and backend.
VM type n1, US zone,…

Manas S. Roy
- 303
- 1
- 10
0
votes
1 answer
How to Autoscale a GCP Managed Instance Group using a Rabbitmq VM outside the group
I am using GCP and I have a specific problem to solve where I want to use the metrics from a RabbitMQ instance to control the autoscaling requirements of a Managed Instance Group. Do note that this RabbitMQ instance is outside this group and is used…

Saurav Saha
- 745
- 1
- 11
- 30
0
votes
0 answers
Is it possible to find previous machine type used by a GCP VM instance after changing to a different machine type?
In GCP Compute Engine, after changing a VM's machine type from for example, from e2-medium-2 to e2-standard-4, is there a way to list exactly when the machine type was changed from which type to which type.
Maybe if there is some kind of way to list…

bpg168
- 15
- 1
- 6
0
votes
0 answers
Unable to create a dual stack VM in Google Cloud - IPv6 access config is not supported for this network interface
My objective is to set up internal protocol forwarding using IPv6.
I am running the following command and getting stuck at step 4 - Create a dual stack VM.
The process that I have followed is as follows:
Create a custom mode VPC:
gcloud compute…

Nosail
- 465
- 2
- 7
- 19
0
votes
2 answers
Not able to make network calls from GCP Compute Engine
I have deployed my services in one of GCP compute engine where we make external HTTP service calls to pull data and process them for our purposes. From last two days, this call is failing with connection timeout. I have tried the same in my system.…

Manjunath
- 172
- 1
- 2
- 18
0
votes
0 answers
GCP - Python API - Refresh operation status
I'm playing with GCP, specially with VM Instances.
I successfully Start / Stop instances by the Python API. But I cannot get the live operation status.
This is what I do to, for example, stop an instance :
instance_client =…

Tomy137
- 91
- 9
0
votes
1 answer
Problem with creating compute instance in GCP for different project IDs with terraform
I have a terraform to create compute instance in GCP which looks like:
resource "google_compute_address" "static_ip" {
project = var.project_id
name = "vm-instance"
}
resource "google_compute_instance" "vm_instance" {
project =…

JackTheKnife
- 3,795
- 8
- 57
- 117