Hey all, first time post. I’ve been looking into docker this week, my initial impression is that it’s great! I was able to build a new Win 2019 instance, but I did run into one issue i’ve seen reported on the forums a few times. Where the build completed, but the packer.exe process stays in a “waiting for IP” state for 30 mins, times out, then deletes the VM.
All the scripts process correctly, and VM tools installs without issue
If the build is complete, what are the steps are actually performed once windows is installed? is it just to finish writing the log file and/or converting the VM to a template ? I don’t really care about either of these steps , is there a way to just tell packer to stop “waiting for the IP”
Else, what should I be looking at to fix the “Waiting for IP” issue? WinRM is up/running on the correct port
Here’s my redacted config:
{
“variables”: {
“os_iso_path”: “[vSan] Files/SERVER_2019.ISO”,
“vm-cpu-num”: “2”,
“vm-disk-size”: “40960”,
“vm-mem-size”: “4096”,
“vm-name”: “win2019-gold-packer”,
“vsphere-cluster”: “vSan”,
“vsphere-datacenter”: “My Home Datacenter”,
“vsphere-datastore”: “vSan”,
“vsphere-folder”: “Gold Images”,
“vsphere-network”: “VM Network”,
“vsphere-password”: “EurovisonSongContest123”,
“vsphere-server”: “vc.mydomain.loc”,
“vsphere-user”: “administrator@vc.mydomain.loc”,
“winadmin-password”: “EurovisonSongContest123”
},“sensitive-variables”: [“vsphere_password”,“winadmin_password”],
“builders”: [
{
“CPUs”: “{{uservm-cpu-num
}}”,
“RAM”: “{{uservm-mem-size
}}”,
“RAM_reserve_all”: true,
“cluster”: “{{uservsphere-cluster
}}”,
“communicator”: “winrm”,
“winrm_username”: “madminister”,
“winrm_password”: “{{userwinadmin-password
}}”,
“convert_to_template”: “false”,
“datacenter”: “{{uservsphere-datacenter
}}”,
“datastore”: “{{uservsphere-datastore
}}”,
“disk_controller_type”: “lsilogic-sas”,
“firmware”: “bios”,
“folder”: “{{uservsphere-folder
}}”,
“guest_os_type”: “windows9Server64Guest”,
“insecure_connection”: “true”,"iso_paths": [ "{{user `os_iso_path`}}",
“[vSan] Files/vmwaretools.iso”
],“floppy_files”: [
“autounattend.xml”,
“scripts/disable-network-discovery.cmd”,
“scripts/enable-rdp.cmd”,
“scripts/enable-winrm.ps1”,
“scripts/install-vm-tools.cmd”,
“scripts/set-temp.ps1”
],"network_adapters": [ { "network": "{{user `vsphere-network`}}", "network_card": "vmxnet3" } ], "password": "{{user `vsphere-password`}}", "storage": [ { "disk_size": "{{user `vm-disk-size`}}", "disk_thin_provisioned": true } ], "type": "vsphere-iso", "username": "{{user `vsphere-user`}}", "vcenter_server": "{{user `vsphere-server`}}", "vm_name": "{{user `vm-name`}}" }
],
“provisioners”: [
{
“type”: “windows-shell”,
“inline”: [“ipconfig”]
}
]
}