Hello,
I am having issue with use of winrm communicator in Google Cloud, I even tried to run packer scrip from same subnet where I am building instance in GCE, I can connect to instance with power shell with this command,
Enter-PSSession -ComputerName [IP_ADDRESS] -UseSSL -SessionOption (New-PSSessionOption -SkipCACheck -SkipCNCheck) -Credential $credentials
So network connectivity is not problem,
But packer script waits for winrm and its times out.
Is any one using packer in Google cloud to build windows instance please give me some idea of what I am doing wrong.
Here is my builders section, I tried using both port 5985 and 5986. I set time out to 300 for testing. with this new windows instance comes up but packer never able to connect to it with winrm.
"builders": [
{
"account_file": "xxxx.json",
"communicator": "winrm",
"disk_size": "80",
"disk_type": "pd-ssd",
"image_description": "xxxxxxx",
"image_family": "xxxxxx",
"image_name": "xxxxxx",
"instance_name": "xxxxxx",
"machine_type": "n1-standard-1",
"project_id": "xxxxxxx",
"source_image": "windows-server-2012-r2-dc-v20170214",
"type": "googlecompute",
"use_internal_ip": true,
"winrm_insecure": true,
"winrm_port": 5986,
"winrm_timeout": "300m",
"winrm_use_ssl": true,
"winrm_username": "packer",
"zone": "us-east1-d"
}
],