Skip to content

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

@mahcsig

Description

@mahcsig

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:

  • Error uploading file: Process exited with: 1. Reason was: ()
  • Error uploading file: write tcp x.x.x.x:22: broken pipe

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions