1. 24 Sep, 2014 1 commit
    • Shawn Neal's avatar
      GH 1508 - Ensure Packer VMX is updated and saved · 5fd96519
      Shawn Neal authored
      We need to ensure the VMWare process has exited before attempting to run VMX file cleanup steps, otherwise VMWare may overwrite our changes. While Packer does its best to ensure VMWare has exited, there's still a race condition on some OSs between VMWare flushing the VMX and Packer updating it. The workaround is to artifically wait 5 seconds.
      
      When using the VMX builder its possible for the source machine to have a floppy and/or CD-ROM mounted which gets cloned to the new VM Packer spins up, but have no Packer configuration for those devices. With this change we always attempt to remove the mounted devices regardless of the Packer configuration.
      5fd96519
  2. 17 Sep, 2014 1 commit
    • Shawn Neal's avatar
      Clean VMX step should always remove floppy. · 7d9c252b
      Shawn Neal authored
      When using the VMX builder its possible for the source machine to have a floppy configured which gets cloned to the new VM Packer spins up. When the new VM's Packer config doesn't have a floppy_files config entry, the Packer clean VMX step fails to remove the floppy disk from the new VM. This can cause build failures, for example with the vsphere post processor; generating errors like:
      
      * Post-processor failed: Failed: exit status 1
      Error: File (/home/teamcity/tmp/buildTmp/packer941120499) could not be found.
      
      Opening the cloned VM's VMX file you can clearly see it has a floppy entry from the source machine's VMX file (exact same path) even though the Packer config contains no floppy_files entry.
      7d9c252b
  3. 15 Sep, 2014 1 commit
  4. 14 Sep, 2014 1 commit
  5. 12 Sep, 2014 1 commit
  6. 11 Sep, 2014 6 commits
  7. 10 Sep, 2014 10 commits
  8. 09 Sep, 2014 2 commits
  9. 08 Sep, 2014 17 commits