GoSecure / malboxes

Builds malware analysis Windows VMs so that you don't have to.
GNU General Public License v3.0
1.03k stars 134 forks source link

Error uploading VirtualBox version #38

Closed mgoffin closed 7 years ago

mgoffin commented 7 years ago

System:

Ran malboxes build win10_64_analyst

Ended with the following:

==> virtualbox-iso: Waiting for WinRM to become available...
==> virtualbox-iso: Connected to WinRM!
==> virtualbox-iso: Uploading VirtualBox version info (5.0.32)
==> virtualbox-iso: Unregistering and deleting virtual machine...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Error uploading VirtualBox version: Error restoring file from $env:TEMP\winrmcp-84663bfe-0236-4ac0-78ac-8a6474b85994.tmp to .vbox_version: restore operation returned code=16001

==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Error uploading VirtualBox version: Error restoring file from $env:TEMP\winrmcp-84663bfe-0236-4ac0-78ac-8a6474b85994.tmp to .vbox_version: restore operation returned code=16001

==> Builds finished but no artifacts were created.
----------------------------------
packer completed with return code: 1
Packer failed. Build failed. Exiting...
obilodeau commented 7 years ago

Can you give us the output of:

malboxes -d build win10_64_analyst

Which will try another build with debug output.

mgoffin commented 7 years ago

Seems to have worked this time around. Might have just been an oddity?

obilodeau commented 7 years ago

It could be. Do not hesitate to re-open if you can reliably reproduce.

jonashackt commented 7 years ago

I experienced the same problem - current Packer (1.0.0), Vagrant (1.9.5) and VirtualBox (5.1.22). Here´s my Packer config: https://github.com/jonashackt/ansible-windows-docker-springboot/blob/master/step0-packer-windows-vagrantbox/windows_server_2016_docker.json

Maybe this will help someone, if fixed it with "guest_additions_mode": "attach" in my Packer config (https://github.com/jonashackt/ansible-windows-docker-springboot/commit/89ad651fb7a79ee98b12ea0d5718727a5926ef9e)

Svieg commented 6 years ago

Can you paste your malboxes output using the debug switch like malboxes -d ... please, that will help us help you :)

obilodeau commented 5 years ago

Just got bit by this one now. The previous build worked fine. I'm rebuilding with -d and will report back.

For the record, we are already using "guest_additions_mode": "attach".

Update: The problem was transient. It didn't happen again.