Questions tagged [google-cloud-compute-engine]

39 questions
0
votes
1 answer

How to programmatically set external ip for Google Cloud virtual machine in Java?

I am trying to programmatically start Google Cloud virtual machine instances. It occurred to me that in order to have internet access, have to set an external IP address. // Access Config AccessConfig accessConfig =…
0
votes
1 answer

Google Compute Engine Unable to Access VM

I am unable to ssh into a VM on GCP Compute Engine However, when I run the command with the --troubleshoot flag, it seems like everything is okay. When I connect through the console, I get an error message saying "You cannot connect to the VM…
0
votes
1 answer

python google cloud list vm in json format

Hi I am new to google cloud ,and I want to print vm instance in json format, but print(json.dumps(instance)) raised an error: TypeError: Object of type Instance is not JSON serializable. My code is below: import json from google.oauth2 import…
leo
  • 1,045
  • 3
  • 15
  • 27
0
votes
0 answers

Not able to connect GCP windows VM telnet error .Could not open connection to the host, on port 80: Connect failed

I have website hosted on GCP windows VM on IIS and running absolutely fine with internal ip address of the machine. However when trying to access the website with same internal IP through VPN it does not work . Firewall rules have been added to…
0
votes
1 answer

GCP create instance-template for instances with public ip

I am trying to create an instance-template, where a instance create with this template automatically gets an public ipv4 asigned. Currently I am using something like following gcloud command: gcloud compute instance-templates create TEMPLATENAME \ …
0
votes
1 answer

How to create GCP Instance-Template with accessConfig using gcloud command

Hope this is not too incidental so someone can help. I like to create an instance template using the create command when I run this : gcloud compute instance-templates create jenkins-slave-instance-template-tmp1…
0
votes
1 answer

Can't set PTR record for IPv6 address for Google Cloud VM

I have a Google Cloud Compute Engine VM, it has a public ipv4 IP and a public external ipv6 IP. In the console, I input the PTR record: blabla.mywebsite.com. (the domain is already verified) both for ipv4 and ipv6 in the public DNS PTR record field,…
0
votes
1 answer

Why does the google cloud calculator say A2 machine types are not available in Toronto when the API says it exists?

if you go on https://cloud.google.com/products/calculator and under compute engine and fill out the number of fields: instances: 1, Operating System: Free, Datacenter Location: Toronto Now if you change the Machine Family to "Accelerator Optimised"…
-2
votes
1 answer

has anyone managed to create a Reverse DNS Zone on GCP -?

Just created a Reverse DNS Managed Zone as mentioned here - https://cloud.google.com/dns/docs/zones/managed-reverse-lookup-zones - How do we add VM IPs ? with Terraform - Since the Reverse DNS Zone adds Networks to it - Wondering How will add PTR…
1 2
3