Closed tcarmean closed 8 years ago
Removing vmtool.bat from the scripts section of the win7x64-pro.json file results in a successful build.
I just ran into a similar problem when building win2008r2-datacenter on Ubuntu 14.04:
==> virtualbox-iso: Provisioning with shell script: script/vmtool.bat
virtualbox-iso: ==> Downloading "http://download.virtualbox.org/virtualbox/4.3.28/VBoxGuestAdditions_4.3.28.iso" to "C:\Users\vagrant\AppData\Local\Temp\VBoxGuestAdditions_4.3.28.iso"
virtualbox-iso:
virtualbox-iso: Pinging 127.0.0.1 with 32 bytes of data:
virtualbox-iso: 2015-08-13 16:50:33 URL:http://download.virtualbox.org/virtualbox/4.3.28/VBoxGuestAdditions_4.3.28.iso [58241024/58241024] -> "C:/Users/vagrant/AppData/Local/Temp/VBoxGuestAdditions_4.3.28.iso" [1]
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 1
I was able to get around it by manually installing the guest additions by hand once it booted into Windows. It may have also been solved simply by mounting the guest additions ISO and letting the vmtool.bat script install from it. In either case, I finally have a working box.
I should also mention I was able to build a win2012r2-datacenter box without any trouble, and it uses the same script.
@jared-k Mounting the guest additions ISO after the system reboots from the initial setup is enough to get around this error.
@piraxis Thanks for confirming that, I'll keep it in mind in the future.
I was running into a similar issue.
After setting: "guest_additions_mode": "attach"
in the packer template for the virtualbox-iso builder, I get around this issue.
It appears as though there is a bug in vmtool.bat that is causing Packer to exit (hitting exit1 in the script), but I'm far from a bat expert and can't spot it. It seems to fail after downloading the Guest Additions ISO.
Operating System: Mac OS X 10.9 (Mavericks) running on 15" Retina MacBook Pro VirtualBox Version: 4.3.28
Tool Versions
Makefile.local
Make Target
Packer Log