Machine: Impossible to use with already installed Virtualbox and Git

Created on 29 Apr 2016  路  4Comments  路  Source: docker/machine

I already have the latest Virtualbox and git so when using the installer I uncheck these options.
Altough both git for windows and Virtualbox path are added to env PATH, I must fix the "Docker Quickstart Terminal" desktop shortcut to point to the right git bash, after this, I run it and after a few clicks confirming the network adapters being created, I am presented with this:

  • VirtualBox-5.0.20-106931-Win
  • Git-2.8.1-64-bit
  • DockerToolbox-1.11.1
Identity added: /c/Users/me/.ssh/id_rsa (/c/Users/me/.ssh/id_rsa)
Running pre-create checks...
Creating machine...
(default) Copying C:\Users\me\.docker\machine\cache\boot2docker.iso to C:\Users\me\.docker\machine\machines\default\boot2docker.iso...
(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) Starting the VM...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to create a network adapter. Sometimes, such confirmation window is minimized in the taskbar.
(default) Found a new host-only adapter: "VirtualBox Host-Only Ethernet Adapter #3"
(default) Windows might ask for the permission to configure a network adapter. Sometimes, such confirmation window is minimized in the taskbar.
Error creating machine: Error in driver during machine creation: Unable to start the VM: W:\SDKs\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\me\.docker\machine\machines\default\default\Logs\VBoxHardening.log'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine

Looks like something went wrong in step 'Checking if machine default exists'... Press any key to continue...

Checking the log in:

C:\Users\me\.docker\machine\machines\default\default\Logs\VBoxHardening.log

It contains:

2eb4.2490: Log file opened: 5.0.20r106931 g_hStartupLog=0000000000000070 g_uNtVerCombined=0xa0295a00
2eb4.2490: \SystemRoot\System32\ntdll.dll:
2eb4.2490:     CreationTime:    2016-03-02T11:34:42.135134700Z
2eb4.2490:     LastWriteTime:   2016-02-23T11:25:45.858135200Z
2eb4.2490:     ChangeTime:      2016-03-02T18:45:44.688087000Z
2eb4.2490:     FileAttributes:  0x20
2eb4.2490:     Size:            0x1bc048
2eb4.2490:     NT Headers:      0xe0
2eb4.2490:     Timestamp:       0x56cbf9dd
2eb4.2490:     Machine:         0x8664 - amd64
2eb4.2490:     Timestamp:       0x56cbf9dd
2eb4.2490:     Image Version:   10.0
2eb4.2490:     SizeOfImage:     0x1c1000 (1839104)
2eb4.2490:     Resource Dir:    0x159000 LB 0x66220
2eb4.2490:     ProductName:     Microsoft庐 Windows庐 Operating System
2eb4.2490:     ProductVersion:  10.0.10586.122
2eb4.2490:     FileVersion:     10.0.10586.122 (th2_release_inmarket.160222-1549)
2eb4.2490:     FileDescription: NT Layer DLL
2eb4.2490: \SystemRoot\System32\kernel32.dll:
2eb4.2490:     CreationTime:    2015-10-30T07:17:46.221743200Z
2eb4.2490:     LastWriteTime:   2015-10-30T07:17:46.221743200Z
2eb4.2490:     ChangeTime:      2015-11-17T03:51:31.443595600Z
2eb4.2490:     FileAttributes:  0x20
2eb4.2490:     Size:            0xac430
2eb4.2490:     NT Headers:      0xf0
2eb4.2490:     Timestamp:       0x5632d5aa
2eb4.2490:     Machine:         0x8664 - amd64
2eb4.2490:     Timestamp:       0x5632d5aa
2eb4.2490:     Image Version:   10.0
2eb4.2490:     SizeOfImage:     0xad000 (708608)
2eb4.2490:     Resource Dir:    0xab000 LB 0x528
2eb4.2490:     ProductName:     Microsoft庐 Windows庐 Operating System
2eb4.2490:     ProductVersion:  10.0.10586.0
2eb4.2490:     FileVersion:     10.0.10586.0 (th2_release.151029-1700)
2eb4.2490:     FileDescription: Windows NT BASE API Client DLL
2eb4.2490: \SystemRoot\System32\KernelBase.dll:
2eb4.2490:     CreationTime:    2016-03-09T10:02:03.928948200Z
2eb4.2490:     LastWriteTime:   2016-02-24T09:52:06.910200800Z
2eb4.2490:     ChangeTime:      2016-03-10T02:30:27.284226900Z
2eb4.2490:     FileAttributes:  0x20
2eb4.2490:     Size:            0x1e7a10
2eb4.2490:     NT Headers:      0xf0
2eb4.2490:     Timestamp:       0x56cd45b4
2eb4.2490:     Machine:         0x8664 - amd64
2eb4.2490:     Timestamp:       0x56cd45b4
2eb4.2490:     Image Version:   10.0
2eb4.2490:     SizeOfImage:     0x1e8000 (1998848)
2eb4.2490:     Resource Dir:    0x1d1000 LB 0x548
2eb4.2490:     ProductName:     Microsoft庐 Windows庐 Operating System
2eb4.2490:     ProductVersion:  10.0.10586.162
2eb4.2490:     FileVersion:     10.0.10586.162 (th2_release_sec.160223-1728)
2eb4.2490:     FileDescription: Windows NT BASE API Client DLL
2eb4.2490: \SystemRoot\System32\apisetschema.dll:
2eb4.2490:     CreationTime:    2015-10-30T07:17:57.502957900Z
2eb4.2490:     LastWriteTime:   2015-10-30T07:17:57.502957900Z
2eb4.2490:     ChangeTime:      2015-11-17T03:51:31.162344300Z
2eb4.2490:     FileAttributes:  0x20
2eb4.2490:     Size:            0x16d60
2eb4.2490:     NT Headers:      0xc8
2eb4.2490:     Timestamp:       0x5632d94c
2eb4.2490:     Machine:         0x8664 - amd64
2eb4.2490:     Timestamp:       0x5632d94c
2eb4.2490:     Image Version:   10.0
2eb4.2490:     SizeOfImage:     0x18000 (98304)
2eb4.2490:     Resource Dir:    0x17000 LB 0x400
2eb4.2490:     ProductName:     Microsoft庐 Windows庐 Operating System
2eb4.2490:     ProductVersion:  10.0.10586.0
2eb4.2490:     FileVersion:     10.0.10586.0 (th2_release.151029-1700)
2eb4.2490:     FileDescription: ApiSet Schema DLL
2eb4.2490: NtOpenDirectoryObject failed on \Driver: 0xc0000022
2eb4.2490: supR3HardenedWinFindAdversaries: 0x0
2eb4.2490: supR3HardenedWinInitAppBin(0x0): '\Device\HarddiskVolume8\SDKs\VirtualBox'
2eb4.2490: Calling main()
2eb4.2490: SUPR3HardenedMain: pszProgName=VBoxHeadless fFlags=0x0
2eb4.2490: supR3HardenedWinInitAppBin(0x0): '\Device\HarddiskVolume8\SDKs\VirtualBox'
2eb4.2490: SUPR3HardenedMain: Respawn #1
2eb4.2490: System32:  \Device\HarddiskVolume4\Windows\System32
2eb4.2490: WinSxS:    \Device\HarddiskVolume4\Windows\WinSxS
2eb4.2490: KnownDllPath: C:\WINDOWS\system32
2eb4.2490: '\Device\HarddiskVolume8\SDKs\VirtualBox\VBoxHeadless.exe' has no imports
2eb4.2490: supHardenedWinVerifyImageByHandle: -> 0 (\Device\HarddiskVolume8\SDKs\VirtualBox\VBoxHeadless.exe)
2eb4.2490: supR3HardNtEnableThreadCreation:
2eb4.2490: supR3HardNtDisableThreadCreation: pvLdrInitThunk=00007ffa7efd6d50 pvNtTerminateThread=00007ffa7f005b20
2eb4.2490: supR3HardenedWinDoReSpawn(1): New child 1a4.2aa0 [kernel32].
2eb4.2490: supR3HardNtChildGatherData: PebBaseAddress=00000000003cb000 cbPeb=0x388
2eb4.2490: supR3HardNtPuChFindNtdll: uNtDllParentAddr=00007ffa7ef60000 uNtDllChildAddr=00007ffa7ef60000
2eb4.2490: supR3HardenedWinSetupChildInit: uLdrInitThunk=00007ffa7efd6d50
2eb4.2490: supR3HardenedWinSetupChildInit: Start child.
2eb4.2490: supR3HardNtChildWaitFor: Found expected request 0 (PurifyChildAndCloseHandles) after 0 ms.
2eb4.2490: supR3HardNtChildPurify: Startup delay kludge #1/0: 264 ms, 31 sleeps
2eb4.2490: supHardNtVpScanVirtualMemory: enmKind=CHILD_PURIFICATION
2eb4.2490:  *0000000000000000-fffffffffffeffff 0x0001/0x0000 0x0000000
2eb4.2490:  *0000000000010000-fffffffffffeffff 0x0004/0x0004 0x0020000
2eb4.2490:  *0000000000030000-000000000001afff 0x0002/0x0002 0x0040000
2eb4.2490:   0000000000045000-0000000000039fff 0x0001/0x0000 0x0000000
2eb4.2490:  *0000000000050000-fffffffffff54fff 0x0000/0x0004 0x0020000
2eb4.2490:   000000000014b000-0000000000147fff 0x0104/0x0004 0x0020000
2eb4.2490:   000000000014e000-000000000014bfff 0x0004/0x0004 0x0020000
2eb4.2490:  *0000000000150000-000000000014bfff 0x0002/0x0002 0x0040000
2eb4.2490:   0000000000154000-0000000000147fff 0x0001/0x0000 0x0000000
2eb4.2490:  *0000000000160000-000000000015dfff 0x0004/0x0004 0x0020000
2eb4.2490:   0000000000162000-00000000000c3fff 0x0001/0x0000 0x0000000
2eb4.2490:  *0000000000200000-0000000000034fff 0x0000/0x0004 0x0020000
2eb4.2490:   00000000003cb000-00000000003c7fff 0x0004/0x0004 0x0020000
2eb4.2490:   00000000003ce000-000000000039bfff 0x0000/0x0004 0x0020000
2eb4.2490:   0000000000400000-ffffffff8081ffff 0x0001/0x0000 0x0000000
2eb4.2490:  *000000007ffe0000-000000007ffdefff 0x0002/0x0002 0x0020000
2eb4.2490:   000000007ffe1000-000000007ffd1fff 0x0000/0x0002 0x0020000
2eb4.2490:   000000007fff0000-ffff800aa84bffff 0x0001/0x0000 0x0000000
2eb4.2490:  *00007ff657b20000-00007ff657afcfff 0x0002/0x0002 0x0040000
2eb4.2490:   00007ff657b43000-00007ff657a85fff 0x0001/0x0000 0x0000000
2eb4.2490:  *00007ff657c00000-00007ff657c00fff 0x0002/0x0080 0x1000000  \Device\HarddiskVolume8\SDKs\VirtualBox\VBoxHeadless.exe
2eb4.2490:   00007ff657c01000-00007ff657c70fff 0x0020/0x0080 0x1000000  \Device\HarddiskVolume8\SDKs\VirtualBox\VBoxHeadless.exe
2eb4.2490:   00007ff657c71000-00007ff657c71fff 0x0080/0x0080 0x1000000  \Device\HarddiskVolume8\SDKs\VirtualBox\VBoxHeadless.exe
2eb4.2490:   00007ff657c72000-00007ff657cb6fff 0x0002/0x0080 0x1000000  \Device\HarddiskVolume8\SDKs\VirtualBox\VBoxHeadless.exe
2eb4.2490:   00007ff657cb7000-00007ff657cb7fff 0x0004/0x0080 0x1000000  \Device\HarddiskVolume8\SDKs\VirtualBox\VBoxHeadless.exe
2eb4.2490:   00007ff657cb8000-00007ff657cb8fff 0x0008/0x0080 0x1000000  \Device\HarddiskVolume8\SDKs\VirtualBox\VBoxHeadless.exe
2eb4.2490:   00007ff657cb9000-00007ff657cbdfff 0x0004/0x0080 0x1000000  \Device\HarddiskVolume8\SDKs\VirtualBox\VBoxHeadless.exe
2eb4.2490:   00007ff657cbe000-00007ff657cbefff 0x0008/0x0080 0x1000000  \Device\HarddiskVolume8\SDKs\VirtualBox\VBoxHeadless.exe
2eb4.2490:   00007ff657cbf000-00007ff657cbffff 0x0004/0x0080 0x1000000  \Device\HarddiskVolume8\SDKs\VirtualBox\VBoxHeadless.exe
2eb4.2490:   00007ff657cc0000-00007ff657cc3fff 0x0008/0x0080 0x1000000  \Device\HarddiskVolume8\SDKs\VirtualBox\VBoxHeadless.exe
2eb4.2490:   00007ff657cc4000-00007ff657d0bfff 0x0002/0x0080 0x1000000  \Device\HarddiskVolume8\SDKs\VirtualBox\VBoxHeadless.exe
2eb4.2490:   00007ff657d0c000-00007ff230ab7fff 0x0001/0x0000 0x0000000
2eb4.2490:  *00007ffa7ef60000-00007ffa7ef60fff 0x0002/0x0080 0x1000000  \Device\HarddiskVolume4\Windows\System32\ntdll.dll
2eb4.2490:   00007ffa7ef61000-00007ffa7f05dfff 0x0020/0x0080 0x1000000  \Device\HarddiskVolume4\Windows\System32\ntdll.dll
2eb4.2490:   00007ffa7f05e000-00007ffa7f09efff 0x0002/0x0080 0x1000000  \Device\HarddiskVolume4\Windows\System32\ntdll.dll
2eb4.2490:   00007ffa7f09f000-00007ffa7f0a7fff 0x0008/0x0080 0x1000000  \Device\HarddiskVolume4\Windows\System32\ntdll.dll
2eb4.2490:   00007ffa7f0a8000-00007ffa7f0b4fff 0x0002/0x0080 0x1000000  \Device\HarddiskVolume4\Windows\System32\ntdll.dll
2eb4.2490:   00007ffa7f0b5000-00007ffa7f0b5fff 0x0004/0x0080 0x1000000  \Device\HarddiskVolume4\Windows\System32\ntdll.dll
2eb4.2490:   00007ffa7f0b6000-00007ffa7f0b8fff 0x0008/0x0080 0x1000000  \Device\HarddiskVolume4\Windows\System32\ntdll.dll
2eb4.2490:   00007ffa7f0b9000-00007ffa7f120fff 0x0002/0x0080 0x1000000  \Device\HarddiskVolume4\Windows\System32\ntdll.dll
2eb4.2490:   00007ffa7f121000-00007ff4fe261fff 0x0001/0x0000 0x0000000
2eb4.2490:  *00007ffffffe0000-00007ffffffcffff 0x0001/0x0002 0x0020000
2eb4.2490: VBoxHeadless.exe: timestamp 0x57220aaf (rc=VINF_SUCCESS)
2eb4.2490: '\Device\HarddiskVolume8\SDKs\VirtualBox\VBoxHeadless.exe' has no imports
2eb4.2490: '\Device\HarddiskVolume4\Windows\System32\ntdll.dll' has no imports
2eb4.2490: supR3HardNtChildPurify: Done after 309 ms and 0 fixes (loop #0).
1a4.2aa0: Log file opened: 5.0.20r106931 g_hStartupLog=0000000000000008 g_uNtVerCombined=0xa0295a00
1a4.2aa0: supR3HardenedVmProcessInit: uNtDllAddr=00007ffa7ef60000 g_uNtVerCombined=0xa0295a00
2eb4.2490: supR3HardNtEnableThreadCreation:
1a4.2aa0: ntdll.dll: timestamp 0x56cbf9dd (rc=VINF_SUCCESS)
1a4.2aa0: New simple heap: #1 0000000000500000 LB 0x400000 (for 1839104 allocation)
1a4.2aa0: supR3HardenedWinInitAppBin(0x0): '\Device\HarddiskVolume8\SDKs\VirtualBox'
1a4.2aa0: System32:  \Device\HarddiskVolume4\Windows\System32
1a4.2aa0: WinSxS:    \Device\HarddiskVolume4\Windows\WinSxS
1a4.2aa0: KnownDllPath: C:\WINDOWS\system32
1a4.2aa0: supR3HardenedVmProcessInit: Opening vboxdrv stub...
1a4.2aa0: Error opening VBoxDrvStub:  STATUS_OBJECT_NAME_NOT_FOUND
1a4.2aa0: supR3HardenedWinReadErrorInfoDevice: NtCreateFile -> 0xc0000034
1a4.2aa0: Error -101 in supR3HardenedWinReSpawn! (enmWhat=3)
1a4.2aa0: NtCreateFile(\Device\VBoxDrvStub) failed: 0xc0000034 STATUS_OBJECT_NAME_NOT_FOUND (0 retries)

Driver is probably stuck stopping/starting. Try 'sc.exe query vboxdrv' to get more information about its state. Rebooting may actually help.
2eb4.2490: supR3HardenedWinCheckChild: enmRequest=2 rc=-101 enmWhat=3 supR3HardenedWinReSpawn: NtCreateFile(\Device\VBoxDrvStub) failed: 0xc0000034 STATUS_OBJECT_NAME_NOT_FOUND (0 retries)

Driver is probably stuck stopping/starting. Try 'sc.exe query vboxdrv' to get more information about its state. Rebooting may actually help.
2eb4.2490: Error -101 in supR3HardenedWinReSpawn! (enmWhat=3)
2eb4.2490: NtCreateFile(\Device\VBoxDrvStub) failed: 0xc0000034 STATUS_OBJECT_NAME_NOT_FOUND (0 retries)

Driver is probably stuck stopping/starting. Try 'sc.exe query vboxdrv' to get more information about its state. Rebooting may actually help.

What can I do to make it work ?

Most helpful comment

wow,seems annoying

All 4 comments

I'm seeing a similar issue (docker not starting) after upgrading Virtualbox to 5.0.20

I managed to get Windows 10 + Docker + VirtualBox working again by:

  • Reinstalling latest Docker Tools (1.11.1), keeping installed VirtualBox
  • Delete old 'default' Docker VirtualBox image
  • Remove 'Host Only Network' from VirtualBox network configuration
  • Rerun 'Docker Quickstart Terminal', which then built everything again without errors.

Yes, @PaulSchulz that does it, you must, for a smoother, closer your eyes installation:

  1. Uninstall Virtualbox
  2. Uninstall Docker Toolbox
  3. Restart computer(restart, the Virtualbox services are not so obvious to restart without a computer reset, at least o Windows)
  4. Install the latest Virtualbox 5.0.20, confirm all the stuff
  5. Fix the Docker Quickstart shortcut to point to the right bash(of your newer git installation)
  6. Ensure the TERM variable is not overriden prior to opening the quickstart shortcut(I had mine populated with xterm-256 or something, I just commented it out in my own custom bash profile file)
  7. Wait for the hidden VM to start/boot up in Virtualbox
  8. You will be dropped at a Docker shell => _SUCCESS_

wow,seems annoying

Was this page helpful?
0 / 5 - 0 ratings