packer-community / packer-windows-plugins

A suite of Packer plugins for provisioning Windows machines
112 stars 20 forks source link

vmware-windows-iso remote: Floppy file upload failing #62

Open mahcsig opened 9 years ago

mahcsig commented 9 years ago

Upon building, Packer logs into the remote esx host and creates the output directory on the correct datastore, but when it goes to upload the floppy file, it is trying to upload in the directory above the datastores (/vmfs/volumes).

It then returns one of two ways:

I'm not sure if these two are caused by the same thing or if they are different issues, but they both happen while uploading the floppy file. And in both cases, it is not uploading to /vmfs/volumes/datastore1.

The vmware-iso plugin is working on the same esx host, so I think it has something to do with not uploading to the datastore?

Has anyone seen anything similar?

logs for each response

009.502 ERR 2015/06/10 16:06:08 ui: ==> windows2008r2-20150610160558: Uploading Floppy to remote machine...
009.502 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 Remote uploading: /tmp/packer902819373
009.502 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 opening new ssh session
009.502 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 starting remote command: mkdir -p /vmfs/volumes
009.502 OUT ==> windows2008r2-20150610160558: Uploading Floppy to remote machine...
009.512 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 remote command exited with '0': mkdir -p /vmfs/volumes
009.512 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 Verifying checksum of /vmfs/volumes/packer902819373
009.512 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 opening new ssh session
009.512 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 starting remote command: md5sum -c
009.535 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 remote command exited with '1': md5sum -c
009.535 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 opening new ssh session
009.535 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 Starting remote scp process:  scp -vt /vmfs/volumes
009.536 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 Started SCP session, beginning transfers...
009.537 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 Copying input data into temporary file so we can read the length
009.544 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 [DEBUG] Uploading packer902819373: perms=C0644 size=1474560
009.556 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 SCP session complete, closing stdin pipe.
009.556 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 Waiting for SSH session to complete.
009.556 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 non-zero exit status: 1
009.556 ERR 2015/06/10 16:06:08 ui error: ==> windows2008r2-20150610160558: Error uploading file: Process exited with: 1. Reason was:  ()
009.556 ERR 2015/06/10 16:06:08 packer-builder-vmware-windows-iso: 2015/06/10 16:06:08 Deleting floppy disk: /tmp/packer902819373
009.556 OUT ==> windows2008r2-20150610160558: Error uploading file: Process exited with: 1. Reason was:  ()
009.556 ERR 2015/06/10 16:06:08 ui: ==> windows2008r2-20150610160558: Deleting output directory...
011.569 ERR 2015/06/10 17:42:55 ui: ==> windows2008r2-20150610174242: Uploading Floppy to remote machine...
011.569 ERR 2015/06/10 17:42:55 packer-builder-vmware-windows-iso: 2015/06/10 17:42:55 Remote uploading: /tmp/packer748655095
011.569 ERR 2015/06/10 17:42:55 packer-builder-vmware-windows-iso: 2015/06/10 17:42:55 opening new ssh session
011.569 ERR 2015/06/10 17:42:55 packer-builder-vmware-windows-iso: 2015/06/10 17:42:55 starting remote command: mkdir -p /vmfs/volumes
011.578 ERR 2015/06/10 17:42:55 packer-builder-vmware-windows-iso: 2015/06/10 17:42:55 remote command exited with '0': mkdir -p /vmfs/volumes
011.578 ERR 2015/06/10 17:42:55 packer-builder-vmware-windows-iso: 2015/06/10 17:42:55 Verifying checksum of /vmfs/volumes/packer748655095
011.578 ERR 2015/06/10 17:42:55 packer-builder-vmware-windows-iso: 2015/06/10 17:42:55 opening new ssh session
011.578 ERR 2015/06/10 17:42:55 packer-builder-vmware-windows-iso: 2015/06/10 17:42:55 starting remote command: md5sum -c
011.588 ERR 2015/06/10 17:42:55 packer-builder-vmware-windows-iso: 2015/06/10 17:42:55 remote command exited with '1': md5sum -c
011.589 ERR 2015/06/10 17:42:55 packer-builder-vmware-windows-iso: 2015/06/10 17:42:55 opening new ssh session
011.589 ERR 2015/06/10 17:42:55 packer-builder-vmware-windows-iso: 2015/06/10 17:42:55 Starting remote scp process:  scp -vt /vmfs/volumes
011.589 ERR 2015/06/10 17:42:55 packer-builder-vmware-windows-iso: 2015/06/10 17:42:55 Started SCP session, beginning transfers...
011.589 ERR 2015/06/10 17:42:55 packer-builder-vmware-windows-iso: 2015/06/10 17:42:55 Copying input data into temporary file so we can read the length
011.597 ERR 2015/06/10 17:42:55 packer-builder-vmware-windows-iso: 2015/06/10 17:42:55 [DEBUG] Uploading packer748655095: perms=C0644 size=1474560
011.605 ERR 2015/06/10 17:42:55 ui error: ==> windows2008r2-20150610174242: Error uploading file: write tcp 10.0.8.128:22: broken pipe
011.605 ERR 2015/06/10 17:42:55 packer-builder-vmware-windows-iso: 2015/06/10 17:42:55 Deleting floppy disk: /tmp/packer748655095
011.605 OUT ==> windows2008r2-20150610174242: Error uploading file: write tcp 10.0.8.128:22: broken pipe
011.605 ERR 2015/06/10 17:42:55 ui: ==> windows2008r2-20150610174242: Deleting output directory...
dhekimian commented 9 years ago

Is anyone else using this plugin with VMware-ESXi?

mefellows commented 9 years ago

Unfortunately this is an untested/unsupported scenario, patches welcome ;)

dhekimian commented 9 years ago

This was resolved in Packer 0.8.0.