Build failure: Can't delete output directory when building virtualbox/eval-win7x86-enterprise-cygwin
Closed this issue · 4 comments
My situation: I successfully built virtualbox/eval-win7x86-enterprise-cygwin
one time and used it to run a vm using vagrant for a while. Then I wanted to wipe away that box
and replace it with a fresh one in order to reset any expiring
licenses (win7 eval) and reinstall some software from a clean slate
(Dragon naturally speaking 12 – I am setting up a code-by-voice
environment). I destroyed my vagrant box and went to boxcutter to cut
a new box, but did not succeed in getting make
to finish.
Here is the error I received:
cd ~/Workspace/vagrant/boxcutter/windows; make clean ; make virtualbox/eval-win7x86-enterprise-cygwin ; cd /Users/lyn_headley/Workspace/vagrant/win7
Deleting box/vmware/*.box
Deleting box/virtualbox/eval-win7x86-enterprise-cygwin-nocm-1.0.4.box
Deleting output-vmware-iso
rm -rf output-vmware-iso
Deleting output-virtualbox-iso
rm -rf output-virtualbox-iso
Deleting output-parallels-iso
rm -rf output-parallels-iso
echo Deleting packer_cache
Deleting packer_cache
rm -rf packer_cache
rm -rf output-virtualbox-iso
mkdir -p box/virtualbox
packer build -only=virtualbox-iso -var 'cm=nocm' -var 'version=1.0.4' -var 'update=false' -var 'headless=false' -var "shutdown_command=shutdown /s /t 10 /f /d p:4:1 /c Packer_Shutdown" -var "iso_url=http://care.dlservice.microsoft.com/dl/download/evalx/win7/x86/EN/7600.16385.090713-1255_x86fre_enterprise_en-us_EVAL_Eval_Enterprise-GRMCENEVAL_EN_DVD.iso" -var "iso_checksum=971fc00183a52c152fe924a6b99fdec011a871c2" eval-win7x86-enterprise-cygwin.json
virtualbox-iso output will be in this color.
==> virtualbox-iso: Downloading or copying Guest additions
virtualbox-iso: Downloading or copying: file:///Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso: Downloading or copying ISO
virtualbox-iso: Downloading or copying: http://care.dlservice.microsoft.com/dl/download/evalx/win7/x86/EN/7600.16385.090713-1255_x86fre_enterprise_en-us_EVAL_Eval_Enterprise-GRMCENEVAL_EN_DVD.iso
virtualbox-iso: Download progress: 0%
virtualbox-iso: Download progress: 1%
virtualbox-iso: Download progress: 2%
virtualbox-iso: Download progress: 3%
virtualbox-iso: Download progress: 4%
snip...
virtualbox-iso: Download progress: 100%
==> virtualbox-iso: Creating floppy disk...
virtualbox-iso: Copying files flatly from floppy_files
virtualbox-iso: Copying file: floppy/win7x86-enterprise/Autounattend.xml
virtualbox-iso: Copying file: floppy/00-run-all-scripts.cmd
virtualbox-iso: Copying file: floppy/install-winrm.cmd
virtualbox-iso: Copying file: floppy/fixnetwork.ps1
virtualbox-iso: Copying file: floppy/powerconfig.bat
virtualbox-iso: Copying file: floppy/01-install-wget.cmd
virtualbox-iso: Copying file: floppy/_download.cmd
virtualbox-iso: Copying file: floppy/_packer_config.cmd
virtualbox-iso: Copying file: floppy/passwordchange.bat
virtualbox-iso: Copying file: floppy/networkprompt.bat
virtualbox-iso: Copying file: floppy/disablewinupdate.bat
virtualbox-iso: Copying file: floppy/cygwin.bat
virtualbox-iso: Copying file: floppy/cygwin.sh
virtualbox-iso: Copying file: floppy/zz-start-transports.cmd
virtualbox-iso: Copying file: floppy/oracle-cert.cer
virtualbox-iso: Done copying files from floppy_files
virtualbox-iso: Collecting paths from floppy_dirs
virtualbox-iso: Resulting paths from floppy_dirs : []
virtualbox-iso: Done copying paths from floppy_dirs
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive...
==> virtualbox-iso: Attaching floppy disk...
==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 4068)
==> virtualbox-iso: Executing custom VBoxManage commands...
virtualbox-iso: Executing: modifyvm eval-win7x86-enterprise-cygwin --memory 2048
virtualbox-iso: Executing: modifyvm eval-win7x86-enterprise-cygwin --cpus 2
==> virtualbox-iso: Starting the virtual machine...
==> virtualbox-iso: Waiting 10s for boot...
==> virtualbox-iso: Typing the boot command...
==> virtualbox-iso: Waiting for SSH to become available...
==> virtualbox-iso: Connected to SSH!
==> virtualbox-iso: Uploading VirtualBox version info (5.2.8)
==> virtualbox-iso: Provisioning with shell script: script/vagrant.bat
==> virtualbox-iso: Deregistering and deleting VM...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Retryable error: Error uploading script: Process exited with status 1
==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Retryable error: Error uploading script: Process exited with status 1
==> Builds finished but no artifacts were created.
make: *** [box/virtualbox/eval-win7x86-enterprise-cygwin-nocm-1.0.4.box] Error 1
For contrast,
Here is a log of a previously successful run:
make virtualbox/eval-win7x86-enterprise-cygwin
rm -rf output-virtualbox-iso
mkdir -p box/virtualbox
packer build -only=virtualbox-iso -var 'cm=nocm' -var 'version=1.0.4' -var 'update=false' -var 'headless=false' -var "shutdown_command=shutdown /s /t 10 /f /d p:4:1 /c Packer_Shutdown" -var "iso_url=http://care.dlservice.microsoft.com/dl/download/evalx/win7/x86/EN/7600.16385.090713-1255_x86fre_enterprise_en-us_EVAL_Eval_Enterprise-GRMCENEVAL_EN_DVD.iso" -var "iso_checksum=971fc00183a52c152fe924a6b99fdec011a871c2" eval-win7x86-enterprise-cygwin.json
virtualbox-iso output will be in this color.
==> virtualbox-iso: Downloading or copying Guest additions
virtualbox-iso: Downloading or copying: file:///Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso: Downloading or copying ISO
virtualbox-iso: Downloading or copying: http://care.dlservice.microsoft.com/dl/download/evalx/win7/x86/EN/7600.16385.090713-1255_x86fre_enterprise_en-us_EVAL_Eval_Enterprise-GRMCENEVAL_EN_DVD.iso
virtualbox-iso: Download progress: 0%
virtualbox-iso: Download progress: 1%
virtualbox-iso: Download progress: 2%
virtualbox-iso: Download progress: 3%
virtualbox-iso: Download progress: 4%
[snip]
==> virtualbox-iso: Creating floppy disk...
virtualbox-iso: Copying files flatly from floppy_files
virtualbox-iso: Copying file: floppy/win7x86-enterprise/Autounattend.xml
virtualbox-iso: Copying file: floppy/00-run-all-scripts.cmd
virtualbox-iso: Copying file: floppy/install-winrm.cmd
virtualbox-iso: Copying file: floppy/fixnetwork.ps1
virtualbox-iso: Copying file: floppy/powerconfig.bat
virtualbox-iso: Copying file: floppy/01-install-wget.cmd
virtualbox-iso: Copying file: floppy/_download.cmd
virtualbox-iso: Copying file: floppy/_packer_config.cmd
virtualbox-iso: Copying file: floppy/passwordchange.bat
virtualbox-iso: Copying file: floppy/networkprompt.bat
virtualbox-iso: Copying file: floppy/disablewinupdate.bat
virtualbox-iso: Copying file: floppy/cygwin.bat
virtualbox-iso: Copying file: floppy/cygwin.sh
virtualbox-iso: Copying file: floppy/zz-start-transports.cmd
virtualbox-iso: Copying file: floppy/oracle-cert.cer
virtualbox-iso: Done copying files from floppy_files
virtualbox-iso: Collecting paths from floppy_dirs
virtualbox-iso: Resulting paths from floppy_dirs : []
virtualbox-iso: Done copying paths from floppy_dirs
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive...
==> virtualbox-iso: Attaching floppy disk...
==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 4416)
==> virtualbox-iso: Executing custom VBoxManage commands...
virtualbox-iso: Executing: modifyvm eval-win7x86-enterprise-cygwin --memory 2048
virtualbox-iso: Executing: modifyvm eval-win7x86-enterprise-cygwin --cpus 2
==> virtualbox-iso: Starting the virtual machine...
==> virtualbox-iso: Waiting 10s for boot...
==> virtualbox-iso: Typing the boot command...
==> virtualbox-iso: Waiting for SSH to become available...
==> virtualbox-iso: Connected to SSH!
==> virtualbox-iso: Uploading VirtualBox version info (5.2.6)
==> virtualbox-iso: Provisioning with shell script: script/vagrant.bat
virtualbox-iso: ==> Creating "C:\Users\vagrant\AppData\Local\Temp\vagrant"
virtualbox-iso: This version of C:\Windows\wget.exe is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.
virtualbox-iso: ==> Downloading "https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub" to "C:\Users\vagrant\AppData\Local\Temp\vagrant\vagrant.pub"
virtualbox-iso: ==> Creating "C:\Users\vagrant\.ssh"
virtualbox-iso: ==> Adding "C:\Users\vagrant\AppData\Local\Temp\vagrant\vagrant.pub" to "C:\Users\vagrant\.ssh\authorized_keys"
virtualbox-iso: ==> Disabling account password expiration for user "vagrant"
virtualbox-iso: Updating property(s) of '\\WINDOWS-R4V0HJ0\ROOT\CIMV2:Win32_UserAccount.Domain="WINDOWS-R4V0HJ0",Name="vagrant"'
virtualbox-iso: Property(s) update successful.
virtualbox-iso:
virtualbox-iso: Pinging 127.0.0.1 with 32 bytes of data:
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time=1ms TTL=128
virtualbox-iso:
virtualbox-iso: Ping statistics for 127.0.0.1:
virtualbox-iso: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
virtualbox-iso: Approximate round trip times in milli-seconds:
virtualbox-iso: Minimum = 0ms, Maximum = 1ms, Average = 0ms
virtualbox-iso: ==> Script exiting with errorlevel 0
==> virtualbox-iso: Provisioning with shell script: script/cmtool.bat
virtualbox-iso: ==> Building box without a configuration management tool
virtualbox-iso:
virtualbox-iso: Pinging 127.0.0.1 with 32 bytes of data:
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso:
virtualbox-iso: Ping statistics for 127.0.0.1:
virtualbox-iso: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
virtualbox-iso: Approximate round trip times in milli-seconds:
virtualbox-iso: Minimum = 0ms, Maximum = 0ms, Average = 0ms
virtualbox-iso: ==> Script exiting with errorlevel 0
==> virtualbox-iso: Provisioning with shell script: script/vmtool.bat
virtualbox-iso: ==> Installing Oracle certificate to keep install silent
virtualbox-iso: VBoxCertUtil.exe: info: Successfully added 'E:\cert\vbox-sha1.cer' as trusted publisher
virtualbox-iso: VBoxCertUtil.exe: info: Successfully added 'E:\cert\vbox-sha1.cer' as root
virtualbox-iso: VBoxCertUtil.exe: info: Successfully added 'E:\cert\vbox-sha256.cer' as trusted publisher
virtualbox-iso: VBoxCertUtil.exe: info: Successfully added 'E:\cert\vbox-sha256.cer' as root
virtualbox-iso: VBoxCertUtil.exe: info: Successfully added 'E:\cert\vbox-sha256-r3.cer' as trusted publisher
virtualbox-iso: VBoxCertUtil.exe: info: Successfully added 'E:\cert\vbox-sha256-r3.cer' as root
virtualbox-iso: ==> Installing VirtualBox Guest Additions
virtualbox-iso: ==> Script exiting with errorlevel 0
virtualbox-iso:
virtualbox-iso: Pinging 127.0.0.1 with 32 bytes of data:
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time=1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time=1ms TTL=128
virtualbox-iso:
virtualbox-iso: Could Not Find C:\Users\vagrant\AppData\Local\Temp\script.bat-17241.tmp
virtualbox-iso: Ping statistics for 127.0.0.1:
virtualbox-iso: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
virtualbox-iso: Approximate round trip times in milli-seconds:
virtualbox-iso: Minimum = 0ms, Maximum = 1ms, Average = 0ms
==> virtualbox-iso: Provisioning with shell script: script/clean.bat
virtualbox-iso: ==> Running Disk Cleanup
virtualbox-iso: ==> Cleaning up old Windows Update files
virtualbox-iso: ==> Cleaning "C:\Users\vagrant\AppData\Local\Temp" directories
virtualbox-iso: ==> Cleaning "C:\Users\vagrant\AppData\Local\Temp" files
virtualbox-iso: ==> Cleaning "C:\Windows\TEMP" directories
virtualbox-iso: del /f /q /s "C:\Users\vagrant\AppData\Local\Temp\00-run-all-scripts.log.txt"
virtualbox-iso: del /f /q /s "C:\Users\vagrant\AppData\Local\Temp\00-run-all-scripts.run.tmp"
virtualbox-iso: ==> Cleaning "C:\Windows\TEMP" files
virtualbox-iso: del /f /q /s "C:\Users\vagrant\AppData\Local\Temp\01-install-wget.log.txt"
virtualbox-iso: del /f /q /s "C:\Users\vagrant\AppData\Local\Temp\CYGWIN.log.txt"
virtualbox-iso: del /f /q /s "C:\Users\vagrant\AppData\Local\Temp\disablewinupdate.log.txt"
virtualbox-iso: del /f /q /s "C:\Users\vagrant\AppData\Local\Temp\FXSAPIDebugLogFile.txt"
virtualbox-iso: del /f /q /s "C:\Users\vagrant\AppData\Local\Temp\install-winrm.log.txt"
virtualbox-iso: del /f /q /s "C:\Users\vagrant\AppData\Local\Temp\networkprompt.log.txt"
virtualbox-iso: del /f /q /s "C:\Users\vagrant\AppData\Local\Temp\passwordchange.log.txt"
virtualbox-iso: del /f /q /s "C:\Users\vagrant\AppData\Local\Temp\powerconfig.log.txt"
virtualbox-iso: del /f /q /s "C:\Users\vagrant\AppData\Local\Temp\wmsetup.log"
virtualbox-iso: del /f /q /s "C:\Users\vagrant\AppData\Local\Temp\zz-start-transports.log.txt"
virtualbox-iso: del /f /q /s "C:\Windows\TEMP\DMI8836.tmp"
virtualbox-iso: del /f /q /s "C:\Windows\TEMP\DMI8D0F.tmp"
virtualbox-iso: del /f /q /s "C:\Windows\TEMP\TS_AA71.tmp"
virtualbox-iso: del /f /q /s "C:\Windows\TEMP\TS_AB26.tmp"
virtualbox-iso: del /f /q /s "C:\Windows\TEMP\TS_AB82.tmp"
virtualbox-iso: del /f /q /s "C:\Windows\TEMP\TS_AC37.tmp"
virtualbox-iso: del /f /q /s "C:\Windows\TEMP\TS_AD1E.tmp"
virtualbox-iso: del /f /q /s "C:\Windows\TEMP\TS_AE7E.tmp"
virtualbox-iso: del /f /q /s "C:\Windows\TEMP\TS_AED9.tmp"
virtualbox-iso: del /f /q /s "C:\Windows\TEMP\TS_AF3E.tmp"
virtualbox-iso: del /f /q /s "C:\Windows\TEMP\TS_B10C.tmp"
virtualbox-iso: ==> Removing potentially corrupt recycle bin
virtualbox-iso: ==> Cleaning ISOs in "C:\Users\vagrant"
virtualbox-iso:
virtualbox-iso: Pinging 127.0.0.1 with 32 bytes of data:
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time=1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso:
virtualbox-iso: Ping statistics for 127.0.0.1:
virtualbox-iso: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
virtualbox-iso: Approximate round trip times in milli-seconds:
virtualbox-iso: Minimum = 0ms, Maximum = 1ms, Average = 0ms
virtualbox-iso: ==> Script exiting with errorlevel 0
==> virtualbox-iso: Provisioning with shell script: script/ultradefrag.bat
virtualbox-iso: ==> Creating "C:\Users\vagrant\AppData\Local\Temp\ultradefrag"
virtualbox-iso: ==> Downloading "http://downloads.sourceforge.net/ultradefrag/ultradefrag-portable-7.0.2.bin.i386.zip" to "C:\Users\vagrant\AppData\Local\Temp\ultradefrag\ultradefrag-portable-7.0.2.bin.i386.zip"
virtualbox-iso: This version of C:\Windows\wget.exe is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.
virtualbox-iso: ==> Creating "C:\Users\vagrant\AppData\Local\Temp\sevenzip"
virtualbox-iso: ==> Downloading "http://7-zip.org/a/7z1604.msi" to "C:\Users\vagrant\AppData\Local\Temp\sevenzip\7z1604.msi"
virtualbox-iso: This version of C:\Windows\wget.exe is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.
virtualbox-iso: ==> Installing "C:\Users\vagrant\AppData\Local\Temp\sevenzip\7z1604.msi"
virtualbox-iso: ==> Copying "C:\Program Files\7-Zip\7z.exe" to "C:\Windows"
virtualbox-iso: 1 file(s) copied.
virtualbox-iso: 1 file(s) copied.
virtualbox-iso: ==> Unzipping "C:\Users\vagrant\AppData\Local\Temp\ultradefrag\ultradefrag-portable-7.0.2.bin.i386.zip" to "C:\Users\vagrant\AppData\Local\Temp\ultradefrag"
virtualbox-iso:
virtualbox-iso: 7-Zip [32] 16.04 : Copyright (c) 1999-2016 Igor Pavlov : 2016-10-04
virtualbox-iso:
virtualbox-iso: Scanning the drive for archives:
virtualbox-iso: 1 file, 2514844 bytes (2456 KiB)
virtualbox-iso:
virtualbox-iso: Extracting archive: C:\Users\vagrant\AppData\Local\Temp\ultradefrag\ultradefrag-portable-7.0.2.bin.i386.zip
virtualbox-iso: --
virtualbox-iso: Path = C:\Users\vagrant\AppData\Local\Temp\ultradefrag\ultradefrag-portable-7.0.2.bin.i386.zip
virtualbox-iso: Type = zip
virtualbox-iso: Physical Size = 2514844
virtualbox-iso:
virtualbox-iso: Everything is Ok
virtualbox-iso:
virtualbox-iso: Files: 4
virtualbox-iso: Size: 952320
virtualbox-iso: Compressed: 2514844
virtualbox-iso: ==> Running UltraDefrag on C:
virtualbox-iso: UltraDefrag 7.0.2, Copyright (c) UltraDefrag Development Team, 2007-2016.
virtualbox-iso: UltraDefrag comes with ABSOLUTELY NO WARRANTY. This is free software,
virtualbox-iso: and you are welcome to redistribute it under certain conditions.
virtualbox-iso:
virtualbox-iso: C: defrag: 100.00% complete, 7 passes needed, fragmented/total = 7/48004
virtualbox-iso: ==> Removing "C:\Users\vagrant\AppData\Local\Temp\ultradefrag"
virtualbox-iso:
virtualbox-iso: Pinging 127.0.0.1 with 32 bytes of data:
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time=2ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time=1ms TTL=128
virtualbox-iso:
virtualbox-iso: Ping statistics for 127.0.0.1:
virtualbox-iso: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
virtualbox-iso: Approximate round trip times in milli-seconds:
virtualbox-iso: Minimum = 0ms, Maximum = 2ms, Average = 0ms
virtualbox-iso: ==> Script exiting with errorlevel 0
==> virtualbox-iso: Provisioning with shell script: script/uninstall-7zip.bat
virtualbox-iso: ==> Uninstalling 7zip
virtualbox-iso: ==> Uninstalling "C:\Users\vagrant\AppData\Local\Temp\sevenzip\7z1604.msi"
virtualbox-iso:
virtualbox-iso: Pinging 127.0.0.1 with 32 bytes of data:
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso:
virtualbox-iso: Ping statistics for 127.0.0.1:
virtualbox-iso: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
virtualbox-iso: Approximate round trip times in milli-seconds:
virtualbox-iso: Minimum = 0ms, Maximum = 0ms, Average = 0ms
virtualbox-iso: ==> Script exiting with errorlevel 0
==> virtualbox-iso: Provisioning with shell script: script/sdelete.bat
virtualbox-iso: ==> Creating "C:\Users\vagrant\AppData\Local\Temp\sdelete"
virtualbox-iso: ==> Downloading "http://web.archive.org/web/20160404120859if_/http://live.sysinternals.com/sdelete.exe" to "C:\Users\vagrant\AppData\Local\Temp\sdelete\sdelete.exe"
virtualbox-iso: This version of C:\Windows\wget.exe is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.
virtualbox-iso: The operation completed successfully.
virtualbox-iso: ==> Running SDelete on C:
virtualbox-iso:
virtualbox-iso: SDelete - Secure Delete v1.61
virtualbox-iso: Copyright (C) 1999-2012 Mark Russinovich
virtualbox-iso: Sysinternals - www.sysinternals.com
virtualbox-iso:
virtualbox-iso: SDelete is set for 1 pass.
virtualbox-iso: Free space cleaned on C:\
virtualbox-iso: 1 drives zapped
virtualbox-iso:
virtualbox-iso: ==> Removing "C:\Users\vagrant\AppData\Local\Temp\sdelete"
virtualbox-iso:
virtualbox-iso: Pinging 127.0.0.1 with 32 bytes of data:
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
virtualbox-iso:
virtualbox-iso: Ping statistics for 127.0.0.1:
virtualbox-iso: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
virtualbox-iso: Approximate round trip times in milli-seconds:
virtualbox-iso: Minimum = 0ms, Maximum = 0ms, Average = 0ms
virtualbox-iso: ==> Script exiting with errorlevel 0
==> virtualbox-iso: Provisioning with shell script: /var/folders/x0/vwnqk0j158n030g1cwz9rzm00000gq/T/packer-shell103188195
==> virtualbox-iso: Gracefully halting virtual machine...
virtualbox-iso: Removing floppy drive...
virtualbox-iso: Removing guest additions drive...
==> virtualbox-iso: Preparing to export machine...
virtualbox-iso: Deleting forwarded port mapping for the communicator (SSH, WinRM, etc) (host port 4416)
==> virtualbox-iso: Exporting virtual machine...
virtualbox-iso: Executing: export eval-win7x86-enterprise-cygwin --output output-virtualbox-iso/eval-win7x86-enterprise-cygwin.ovf
==> virtualbox-iso: Deregistering and deleting VM...
==> virtualbox-iso: Running post-processor: vagrant
==> virtualbox-iso (vagrant): Creating Vagrant box for 'virtualbox' provider
virtualbox-iso (vagrant): Copying from artifact: output-virtualbox-iso/eval-win7x86-enterprise-cygwin-disk001.vmdk
virtualbox-iso (vagrant): Copying from artifact: output-virtualbox-iso/eval-win7x86-enterprise-cygwin.ovf
virtualbox-iso (vagrant): Renaming the OVF to box.ovf...
virtualbox-iso (vagrant): Using custom Vagrantfile: tpl/vagrantfile-eval-win7x86-enterprise-cygwin.tpl
virtualbox-iso (vagrant): Compressing: Vagrantfile
virtualbox-iso (vagrant): Compressing: box.ovf
virtualbox-iso (vagrant): Compressing: eval-win7x86-enterprise-cygwin-disk001.vmdk
virtualbox-iso (vagrant): Compressing: metadata.json
Build 'virtualbox-iso' finished.
==> Builds finished. The artifacts of successful builds are:
--> virtualbox-iso: 'virtualbox' provider box: box/virtualbox/eval-win7x86-enterprise-cygwin-nocm-1.0.4.box
Does this still occur with the latest version of Packer? It's likely that it's unable to tamper with the output directory for the build because VirtualBox still has a handle on an open file in that directory.
If that's the case, there isn't too much we can do here short of killing vbox directly which should be being managed by Packer itself.
Btw, If you've lost interest due to the delay, just lmk and we can close this.
This issue has been marked as stale. If no response has been made within 1 month, this issue will be closed.
If you feel this is in error, and you wish for it to be still left open in order to resolve it. Please let me know and I'll untag it.
Closing this issue as it has gone stale due to a lack of interaction that has extended to almost a year. If you feel this is in error, please let me know and I will re-open.