Activate GCP windows server VM failed

671 Views Asked by At

I created a windows 2012 server VM in GCP with 1 internal IP and 1 ephemeral external IP, I can ping the the google KMS server 35.190.247.13, but when I try activate the windows with

cscript \windows\system32\slmgr.vbs /dlv
cscript \windows\system32\slmgr.vbs /skms 35.190.247.13:1688
cscript \windows\system32\slmgr.vbs /ato

the last step prompt error "The Software Licensing Service reported that the computer could not be activated. No Key Management Service (KMS) could be contacted. Please see the Application Event Log for additional information."

Do I need to enable google private access in my VPC subnet even though I have an external IP?

1

There are 1 best solutions below

2
Martin Zeitler On

ping is based upon ICMP, which is not associated with any transport layer (that's why it is impossible to ping a specific port). The command to test tcp/1688 connectivity rather is:

powershell.exe Test-NetConnection 35.190.247.13 -Port 1688

If this doesn't work, you have to permit this destination in the firewall ruleset:

Address: 35.190.247.13
Port: 1688
Protocol: TCP

See Windows Licensing.