packer-builder-vsphere icon indicating copy to clipboard operation
packer-builder-vsphere copied to clipboard

CD/Floppy Iso appear not connected

Open bwood42 opened this issue 6 years ago • 4 comments

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.

bwood42 avatar Feb 07 '19 00:02 bwood42

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

mkuzmin avatar Feb 07 '19 21:02 mkuzmin

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_64Bit_English_-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_64Bit_English_-3_MLF_X21-30350.iso", "iso_checksum": "EEB465C08CF7243DBAAA3BE98F5F9E40", "iso_checksum_type": "MD5", "floppy_img_path": "[ISO] TEST.flp",

bwood42 avatar Feb 08 '19 15:02 bwood42

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

bwood42 avatar Feb 08 '19 15:02 bwood42

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)

wrighbr avatar Feb 25 '19 09:02 wrighbr