Questions tagged [gcloud-compute]

28 questions
73
votes
8 answers

How to access SSH keys for a Google Cloud Platform Compute Engine VM instance?

I created a new instance via the Google Cloud web console from a CentOS 6.x image. I saw a blank on the creation form where I could paste in an existing SSH key; since this was my first instance, I didn't have one yet. I assumed it would take me…
11
votes
2 answers

Which GPU should I use on Google Cloud Platform (GCP)

Right now, I'm working on my master's thesis and I need to train a huge Transformer model on GCP. And the fastest way to train deep learning models is to use GPU. So, I was wondering which GPU should I use among the ones provided by GCP? The ones…
Anwarvic
  • 12,156
  • 4
  • 49
  • 69
6
votes
2 answers

Can I replicate `create-with-container` gcloud sdk command using the googleapiclient python client

I currently have a docker container on the gcloud container repository which I want to launch an instance of in order to run a calculation, save a result and close: gcloud compute instances create-with-container test-1 \ --machine-type=n1-standard-4…
6
votes
0 answers

Google Cloud warnings that conflict each other

TLDR in brief gcloud compute instance to have hard disk size under 200Gb get warning but when set to 200Gb will get another warning. in details When we create instance template, as command 01 below, we have this warning if setting hard disk size…
Nam G VU
  • 33,193
  • 69
  • 233
  • 372
2
votes
1 answer

Snowflake organization account

The questions are related to snowflake account with organization/ orgadmin role enabled. 1.Is it possible to detach a snowflake account from a snowflake organization? a. If yes, will the removed account become a standalone(separate…
2
votes
3 answers

How to Add an SSH Key to Google Cloud using the CLI

After generating an RSA-based SSH key: ssh-keygen -t rsa -f ~/.ssh/id_rsa -C id_rsa #=> Generating public/private rsa key pair. Created directory '/. . ./.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your…
AziZ
  • 149
  • 1
  • 12
1
vote
2 answers

Sending back exit signal to gitlab pipeline

Is there any way to send back exit signal from the bash script to the GitLab pipeline script? What I'm trying to do simple looks like: install: stage: install script: - | echo "Dummy dry-run installation" chmod +x…
JackTheKnife
  • 3,795
  • 8
  • 57
  • 117
1
vote
0 answers

How do you set a gCloud snapshot schedule so it appears in the GLOBAL list?

When creating an "Instance Template," there is an option under "Boot Disk" > "Show Advanced Configuration" to add a snapshot schedule. When you click the dropdown, it shows "There are no schedules in GLOBAL." How do you add a GLOBAL Snapshot…
S. Yacko
  • 386
  • 4
  • 14
1
vote
1 answer

Permission key denied in Azure

I created a virtual machine on Azure. It was working fine a couple of days ago (I was able to connect to it using SSL using command prompt), after that I reserved the IP public address and shutdown the machine and . Now I am trying to connect to it…
Kaustubh Dwivedi
  • 418
  • 4
  • 16
1
vote
2 answers

Google Cloud Shell Keep Disconnecting

looking for solution to prevent google cloud shell disconnecting when it found you idle, even it also disconnect when you run some processing and leave system idle. message shown Connection to Cloud Shell has been lost. Any additional changes will…
1
vote
2 answers

How do I make an MX record to point to a Google Workspace email address of the same domain?

I purchased anarchitecture.io from Google Domains, and pointed it to a Google Cloud Compute instance Apache server by adding an A record with the IP address of the server. I also set that domain to "Use custom name servers" and set them to the…
1
vote
0 answers

unable to login using serial console but WinSCP allowed to login the VM instance

root partition of rhel vm was 100% full and not able to logged using SSH not even via serial console. Using the cloud console I was able to resize the disk size from 50GB to 100GB. To resize the disk at OS layer need to login to the system as a root…
Mahboob
  • 1,877
  • 5
  • 19
1
vote
2 answers

Gcloud compute api createVM not creating public ip

I use "@google-cloud/compute": "^2.1.0" to create a VM, and I set 'ONE_TO_ONE_NAT' as shown below. The issue is that the VM is not created with a public IP. If I add http:true in the config, then the public IP is created but I would like to avoid…
unludo
  • 4,912
  • 7
  • 47
  • 71
0
votes
0 answers

How to reproduce this algorithm?

Pseudo-code for the algorithm: https://i.postimg.cc/NjhpzJ7J/1.png https://i.postimg.cc/NjhpzJ7J/1.png https://i.postimg.cc/VsgJTdq3/2.png https://i.postimg.cc/qB17wW0r/3.png My code does not run in the Python interpreter. I don't have access to…
Jacob
  • 1
0
votes
1 answer

Stop Read Replica Instance on GCP CloudSQL

To stop a cloudsql instance gcloud sql instances patch INSTANCE_NAME --activation-policy=NEVER We tried and it failed for read replicas instances ERROR: (gcloud.sql.instances.patch) HTTPError 400: Invalid request: Invalid flag for instance role:…
1
2