joefitzgerald / packer-windows

Windows Packer Templates
MIT License
1.63k stars 1.12k forks source link

Packer hangs at : ==> vmware-iso: Waiting for SSH to become available... #267

Open JamesKBowler opened 6 years ago

JamesKBowler commented 6 years ago

Hello,

I seem to be having some problems with Windows 2012 R2.

The command to kick this off.

/opt/packer build  \
    -var iso_url=/mnt/nfs-share/iso_bin/en_windows_server_2012_x64_dvd_915478.iso  \
    -var esxi_host="172.16.0.100" \
    -var esxi_datastore=datastore3 \
    -var esxi_username=root \
    -var esxi_password="password"  \
    -var iso_checksum=da91135483e24689bfdaf05d40301506 windows_2012_r2.json `

Then packer just hangs with the output below.

==> vmware-iso: Downloading or copying ISO
    vmware-iso: Downloading or copying: file:///mnt/nfs-share/iso_bin/en_windows_server_2012_x64_dvd_915478.iso
==> vmware-iso: Creating floppy disk...
    vmware-iso: Copying files flatly from floppy_files
    vmware-iso: Copying file: ./answer_files/2012_r2/Autounattend.xml
    vmware-iso: Copying file: ./scripts/microsoft-updates.bat
    vmware-iso: Copying file: ./scripts/win-updates.ps1
    vmware-iso: Copying file: ./scripts/openssh.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: Uploading Floppy to remote machine...
==> vmware-iso: Uploading ISO to remote machine...
==> vmware-iso: Creating virtual machine disk
==> vmware-iso: Building and writing VMX file
==> vmware-iso: Registering remote VM...
==> 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 "MDLMH1Lv" to
    vmware-iso: vnc://172.16.0.100:5900
==> vmware-iso: Waiting 2m0s for boot...
==> vmware-iso: Connecting to VM via VNC (172.16.0.100:5900)
==> vmware-iso: Typing the boot command over VNC...
==> vmware-iso: Waiting for SSH to become available...

On ESXI 5.5 console screen I have this.

image

Any idea what the problem is?

Thanks

James

JamesKBowler commented 6 years ago

anyone? Thanks

lmayorga1980 commented 6 years ago

@JamesKBowler Did you add the LicenceKey in the Autounattend.xml for that ISO? AFAIK, packer-windows uses the trial versions that don't require the Product Code.

raymon2683 commented 5 years ago

Facing the same issue .Can't even RDP to the VM yet