Docker Community Forums

Share and learn in the Docker community.

Docker Toolbox for Windows error: VirtualMachine MachineWrap

Hi everyone!

I’m new to docker and want to run it on Windows 10 Home. To this end, I have installed Docker Toolbox (with “install VirtualBox with the NDIS5 driver” enabled). I get the following error when running Docker Quickstart Terminal:

Error creating machine: Error in driver during machine creation: Unable to start the VM: VBoxManage.exe startvm default --type headless failed:
VBoxManage.exe: error: The virtual machine ‘default’ had terminated unexpectedly during startup with exit code 1 (0x1).
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine

Any idea what is going wrong / what I should do?

Update:
I uninstalled everything again. I also uninstalled my virus scanner. Then I re-installed the Docker Toolbox and started the Docker Quickstart Terminal and it worked!
Next, I followed the instructions here to edit HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\VBoxDrv in the registry from 1 to 3 before rebooting. Then I rebooted.
After rebooting Docker Quickstart Terminal no longer works and produces the error:

Starting “default”…
(default) Check network to re-create if needed…
Unable to start the VM: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm default --type headless failed:
VBoxManage.exe: error: The virtual machine ‘default’ has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in ‘C:\Users\Marty.docker\machine\machines\default\default\Logs\VBoxHardening.log’
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine
Details: 00:01:21.599474 GUI: Passing request to close Runtime UI from machine-logic to UI session.
Looks like something went wrong in step ´Checking status on default´… Press any key to continue…

Update 2:
It turned out I first had to run sc.exe start vboxdrv in the Windows Command Prompt, before running the Docker Quickstart Terminal. Now it works, also after reboot. So the following worked for me:

  • Uninstall everything and then reboot.
  • Uninstall Virus scanner and the reboot.
  • Reinstall Docker toolbox. DON’T REBOOT
  • Change registry key to 3 for HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\VBoxDrv
  • Reboot
  • Run sc.exe start vboxdrv in Windows Command Prompt.
  • Run Docker Quickstart Terminal

Update 3:
I now re-installed my virus scanner (Avira) and the errors were back. Also after uninstalling the virus scanner again, the errors remained. I’ve now kind of given up.

Log details:

...cut...

2a40.548: supR3HardenedWinInitAppBin(0x0): '\Device\HarddiskVolume4\Program Files\Oracle\VirtualBox'
2a40.548: Calling main()
2a40.548: SUPR3HardenedMain: pszProgName=VirtualBox fFlags=0x2
2a40.548: supR3HardenedWinInitAppBin(0x2): '\Device\HarddiskVolume4\Program Files\Oracle\VirtualBox'
2a40.548: '\Device\HarddiskVolume4\Program Files\Oracle\VirtualBox\VirtualBox.exe' has no imports
2a40.548: supHardenedWinVerifyImageByHandle: -> 0 (\Device\HarddiskVolume4\Program Files\Oracle\VirtualBox\VirtualBox.exe)
2a40.548: SUPR3HardenedMain: Respawn #2
2a40.548: supR3HardNtEnableThreadCreation:
2a40.548: supR3HardenedDllNotificationCallback: load   00007ffc66780000 LB 0x00122000 C:\WINDOWS\System32\RPCRT4.dll [fFlags=0x0]
2a40.548: supHardenedWinVerifyImageByHandle: -> 0 (\Device\HarddiskVolume4\Windows\System32\rpcrt4.dll)
2a40.548: supR3HardenedWinVerifyCacheInsert: \Device\HarddiskVolume4\Windows\System32\rpcrt4.dll
2a40.548: supR3HardenedDllNotificationCallback: load   00007ffc63b10000 LB 0x0009e000 C:\WINDOWS\System32\sechost.dll [fFlags=0x0]
2a40.548: supR3HardenedWinVerifyCacheScheduleImports: Import todo: #11 'rpcrt4.dll'.
2a40.548: supHardenedWinVerifyImageByHandle: -> 0 (\Device\HarddiskVolume4\Windows\System32\sechost.dll)
2a40.548: supR3HardenedWinVerifyCacheInsert: \Device\HarddiskVolume4\Windows\System32\sechost.dll
2a40.548: '\Device\HarddiskVolume4\Windows\System32\ntdll.dll' has no imports
2a40.548: supHardenedWinVerifyImageByHandle: -> 0 (\Device\HarddiskVolume4\Windows\System32\ntdll.dll)
2a40.548: supR3HardenedWinVerifyCacheInsert: \Device\HarddiskVolume4\Windows\System32\ntdll.dll
2a40.548: supR3HardenedWinVerifyCacheProcessImportTodos: Processing 'rpcrt4.dll'...
2a40.548: supR3HardenedWinVerifyCacheProcessImportTodos: 'rpcrt4.dll' -> '\Device\HarddiskVolume4\Windows\System32\rpcrt4.dll' [rcNtRedir=0xc0150008]
2a40.548: supR3HardenedScreenImage/Imports: cache hit (VINF_SUCCESS) on \Device\HarddiskVolume4\Windows\System32\rpcrt4.dll [lacks WinVerifyTrust]
2a40.548: supR3HardenedMonitor_LdrLoadDll: pName=C:\WINDOWS\System32\ntdll.dll (Input=ntdll.dll, rcNtResolve=0xc0150008) *pfFlags=0x0 pwszSearchPath=0000000000000801:<flags> [calling]
2a40.548: supR3HardenedMonitor_LdrLoadDll: returns rcNt=0x0 hMod=00007ffc668e0000 'C:\WINDOWS\System32\ntdll.dll'
2a40.548: Error -104 in supR3HardenedWinReSpawn! (enmWhat=5)
2a40.548: Error relaunching VirtualBox VM process: 5
Command line: '60eaff78-4bdd-042d-2e72-669728efd737-suplib-3rdchild --comment win10 --startvm 0609fa38-2975-4424-bf25-aabf56d75977 --no-startvm-errormsgbox "--sup-hardening-log=C:\Users\Marty\VirtualBox VMs\win10\Logs\VBoxHardening.log"'

...cut...

2a40.548: supR3HardenedScreenImage/LdrLoadDll: cache hit (VINF_SUCCESS) on \Device\HarddiskVolume4\Windows\System32\SHCore.dll [lacks WinVerifyTrust]
2a40.548: supR3HardenedMonitor_LdrLoadDll: pName=C:\WINDOWS\system32\SHCore.dll (rcNtResolve=0xc0150008) *pfFlags=0x0 pwszSearchPath=0000000000000001:<flags> [calling]
2a40.548: supR3HardenedMonitor_LdrLoadDll: returns rcNt=0x0 hMod=00007ffc64730000 'C:\WINDOWS\system32\SHCore.dll'
2a40.548: \Device\HarddiskVolume4\Windows\System32\wintab32.dll: Owner is administrators group.
2a40.548: supHardenedWinVerifyImageByHandle: -> -23021 (\Device\HarddiskVolume4\Windows\System32\wintab32.dll)
2a40.548: Error (rc=0):
2a40.548: supR3HardenedScreenImage/LdrLoadDll: rc=Unknown Status -23021 (0xffffa613) fImage=1 fProtect=0x0 fAccess=0x0 \Device\HarddiskVolume4\Windows\System32\wintab32.dll: None of the 1 path(s) have a trust anchor.: \Device\HarddiskVolume4\Windows\System32\wintab32.dll
2a40.548: supR3HardenedWinVerifyCacheInsert: \Device\HarddiskVolume4\Windows\System32\wintab32.dll
2a40.548: Error (rc=0):
2a40.548: supR3HardenedMonitor_LdrLoadDll: rejecting 'C:\WINDOWS\system32\wintab32.dll' (C:\WINDOWS\system32\wintab32.dll): rcNt=0xc0000190
2a40.548: supR3HardenedMonitor_LdrLoadDll: returns rcNt=0xc0000190 'C:\WINDOWS\system32\wintab32.dll'
2a40.548: supR3HardenedScreenImage/LdrLoadDll: cache hit (VINF_SUCCESS) on \Device\HarddiskVolume4\Windows\System32\user32.dll [lacks WinVerifyTrust]
2a40.548: supR3HardenedMonitor_LdrLoadDll: returns rcNt=0x0 hMod=00007ffc66380000 'C:\WINDOWS\system32\user32.dll'

...cut...

2a40.68c: supR3HardenedScreenImage/LdrLoadDll: cache hit (Unknown Status 22900 (0x5974)) on \Device\HarddiskVolume4\Windows\System32\midimap.dll [lacks WinVerifyTrust]
2a40.68c: supR3HardenedMonitor_LdrLoadDll: pName=C:\WINDOWS\System32\midimap.dll (Input=midimap.dll, rcNtResolve=0xc0150008) *pfFlags=0x0 pwszSearchPath=0000000000001001:<flags> [calling]
2a40.68c: supR3HardenedMonitor_LdrLoadDll: returns rcNt=0x0 hMod=00007ffc5ea90000 'C:\WINDOWS\System32\midimap.dll'
2a40.2e18: supR3HardenedScreenImage/LdrLoadDll: cache hit (VINF_SUCCESS) on \Device\HarddiskVolume4\Windows\System32\MMDevAPI.dll [lacks WinVerifyTrust]
2a40.2e18: supR3HardenedMonitor_LdrLoadDll: pName=C:\WINDOWS\System32\MMDevApi.dll (rcNtResolve=0xc0150008) *pfFlags=0x0 pwszSearchPath=0000000000002009:<flags> [calling]
2a40.2e18: supR3HardenedMonitor_LdrLoadDll: returns rcNt=0x0 hMod=00007ffc55cf0000 'C:\WINDOWS\System32\MMDevApi.dll'
3f64.13c4: supR3HardNtChildWaitFor[1]: Quitting: ExitCode=0x1 (rcNtWait=0x0, rcNt1=0x0, rcNt2=0x103, rcNt3=0x103, 2943 ms, the end);

For the resolution, see here: https://forums.virtualbox.org/viewtopic.php?f=6&t=92538