Hello all,
I am currently experiencing an issue with either Vagrant or VirtualBox and was curious if you could assist me in solving this problem. I am running VirtualBox 5.1.22 (latest) and vagrant 1.9.4 (latest) on Windows 10 x64. I am attempting to quickly deploy a preconfigured Vagrant box with a batch script (to easily share between my network), however I keep receiving an error.
Batch file I am using to automate vagrant (setup.bat). Located inside folder with mybox.box (preconfigured Vagrant box):
vagrant destroy --force
vagrant box remove mybox --force
vagrant box add mybox mybox.box --force
vagrant up
echo "finished!"
pause
The Vagrantfile used to configure mybox.box is attached to this post along with a screenshot of VirtualBox's fail dialog and the full VBoxHardening.log file.
After running this script, I am given this Vagrant output:
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'dl-elk' (v0) for provider:
box: Unpacking necessary files from: file://C:/mybox.box
box: Progress: 100% (Rate: 704M/s, Estimated time remaining: --:--:--)
==> box: Successfully added box 'mybox' (v0) for 'virtualbox'!
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'mybox'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: mybox
==> default: Using hostname "mybox" as node name for Chef...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: bridged
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "c0d0b043-2bf4-4574-84b9-37507a0b14b9", "--type", "headless"]
Stderr: VBoxManage.exe: error: The virtual machine 'dl-elk' has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005). More details may be available in 'C:\...\VBoxHardening.log'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine
At this point, the box has been added to VirtualBox’s UI, however it will not start from there either. When attempting to run the new VM from within VirtualBox’s UI, I get the error E_FAIL (0x80004005) VirtualBox mentions there is a log file with information inside. I attached that file as well in hopes you could help me decipher it. I found the error ExitCode=0xc0000005 in VBoxHardening.log after reading through this forum post (
https://forums.virtualbox.org/viewtopic.php?f=25&t=82106).
The forum post states:
”Error Symptom 2: Error code 0xC0000005
Error 0xC0000005 is what's known as an general protection fault or memory access error: the application tried to access an invalid memory address or jump to code which doesn't exist. Hence this is most likely a consequence of RULE2: a bad
DLL got unloaded, but some other DLL is still trying to use it. You can often narrow the cause if you look at which DLL faulted. Quite often you find that the bad memory access came from a graphics related DLL, which implies that the
graphics provider omitted to sign one of their DLLs. You should check for updates for your graphics card drivers.
1 If you find that the VM will not start in normal mode, but will start when run in headless mode, then that makes it pretty much certain that your problem is the graphics drivers.”
I updated the graphics driver with no luck. They mention: ”You can often narrow the cause if you look at which DLL faulted.” I do not know how I would go about narrowing down the problem further from this point but it appears to be a DLL issue. Any information or suggestions would be greatly appreciated.
Thank you in advance,
colton