joefitzgerald / packer-windows

Windows Packer Templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows 10 "Waiting for WinRM to become available"

adnanhaddad opened this issue · comments

Can't figure out a way to build a Win10 image using packer. I've tried building other versions like Win-Server2016 or 2012 and both work, but not Win10 even though i'm using a very similar script (json file).

Logs:
==> vmware-iso: Creating floppy disk...
vmware-iso: Copying files flatly from floppy_files
vmware-iso: Copying file: ../_general/answer_files/10_x64/Autounattend.xml
vmware-iso: Copying file: ../_general/scripts/microsoft-updates.bat
vmware-iso: Copying file: ../_general/scripts/openssh.ps1
vmware-iso: Copying file: ../_general/scripts/win-updates.ps1
vmware-iso: Copying file: ../_general/scripts/fixnetworks.ps1
vmware-iso: Done copying files from floppy_files
vmware-iso: Collecting paths from floppy_dirs
vmware-iso: Resulting paths from floppy_dirs : []
vmware-iso: Done copying paths from floppy_dirs
==> vmware-iso: Creating required virtual machine disks

==> vmware-iso: Building and writing VMX file
==> vmware-iso: Starting virtual machine...
vmware-iso: The VM will be run headless, without a GUI. If you want to
vmware-iso: view the screen of the VM, connect via VNC with the password "XuslUOet" to
vmware-iso: vnc://127.0.0.1:5994
==> vmware-iso: Waiting 2m0s for boot...

==> vmware-iso: Connecting to VM via VNC (127.0.0.1:5994)
==> vmware-iso: Typing the boot command over VNC...
==> vmware-iso: Using winrm communicator to connect: 192.168.94.156
==> vmware-iso: Waiting for WinRM to become available...

P.S: I waited more than 48 hours but it still hang on the same step.