jetbrains-infra / packer-builder-vsphere

Packer plugin for remote builds on VMware vSphere
Mozilla Public License 2.0
544 stars 176 forks source link

CD/Floppy Iso appear not connected #216

Open bwood42 opened 5 years ago

bwood42 commented 5 years ago

I'm having an issue with getting unattended Windows install to kick off. VM gets created correctly and the packer gets to the "Waiting on IP" stage, but the Unattended 2k16 install never kicks off. The VM tries to PXE boot, fails, and ends with "No Operating System found". CDROM never attempts to boot. If I look at the VM in Vcenter, both my ISO and Floppy Image are present, but not connected even though "connect at power on" is checked.

If I mount the same ISO.FLP on a manually created image, Windows boots to the CD and unattended install starts without issue.

mkuzmin commented 5 years ago

check monitoring tab of the created VM. Are there any errors in tasks or events?

bwood42 commented 5 years ago

VMware is throwing warnings that the it can't find the file: Can't connect file "/vmfs/volumes/longassguid/Win2016/SW_DVD9_Win_Svr_STD_Core_and_DataCtr_Core_2016_64BitEnglish-3_MLF_X21-30350.iso"

Syntax appears to be correct in my template. Here it is below.

"boot_order": "cdrom,disk", "iso_Paths": "[ISO] Win2016/SW_DVD9_Win_Svr_STD_Core_and_DataCtr_Core_2016_64BitEnglish-3_MLF_X21-30350.iso", "iso_checksum": "EEB465C08CF7243DBAAA3BE98F5F9E40", "iso_checksum_type": "MD5", "floppy_img_path": "[ISO] TEST.flp",

bwood42 commented 5 years ago

Note that iso_Paths is one line in the file... just wrapping here.

wrighbr commented 5 years ago

I get a similar problem but only after windows has loaded. I'm trying to run a script from the A: however there is no floppy attached to the VM so the script doesn't run.

See warning below from vsphere. Cannot open floppy image packer-tmp-created-floppy.flp: 4 (Interrupted system call)