Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

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

Open
JamesKBowler opened this issue May 11, 2018 · 3 comments

Comments

@JamesKBowler
Copy link

JamesKBowler commented May 11, 2018

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 JamesKBowler changed the title ==> vmware-iso: Waiting for SSH to become available... Packer hangs at : ==> vmware-iso: Waiting for SSH to become available... May 11, 2018
@JamesKBowler
Copy link
Author

anyone? Thanks

@lmayorga1980
Copy link
Contributor

@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
Copy link

raymon2683 commented Mar 13, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants