Machine: 无法与已安装的 Virtualbox 和 Git 一起使用

创建于 2016-04-29  ·  4评论  ·  资料来源: docker/machine

我已经有了最新的 Virtualbox 和 git,所以在使用安装程序时我取消选中这些选项。
尽管 git for windows 和 Virtualbox 路径都添加到 env PATH,但我必须修复“Docker Quickstart Terminal”桌面快捷方式以指向正确的 git bash,在此之后,我运行它并单击几下确认正在创建的网络适配器,我看到了这个:

  • VirtualBox-5.0.20-106931-Win
  • Git-2.8.1-64 位
  • 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...

检查登录:

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

它包含了:

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.

我该怎么做才能让它发挥作用

最有用的评论

哇,看起来很烦人

所有4条评论

将 Virtualbox 升级到 5.0.20 后,我看到了类似的问题(docker 未启动)

我设法通过以下方式让 Windows 10 + Docker + VirtualBox 再次运行:

  • 重新安装最新的 Docker 工具(1.11.1),保持安装的 VirtualBox
  • 删除旧的“默认”Docker VirtualBox 映像
  • 从 VirtualBox 网络配置中删除“仅主机网络”
  • 重新运行“Docker Quickstart Terminal”,然后再次构建所有内容而没有错误。

是的, @PaulSchulz这样做了,为了更顺畅,更近地安装,您必须:

  1. 卸载 Virtualbox
  2. 卸载 Docker 工具箱
  3. 重新启动计算机(重新启动,Virtualbox 服务在没有计算机重置的情况下重启不是那么明显,至少是 Windows)
  4. 安装最新的Virtualbox 5.0.20,确认所有东西
  5. 修复 Docker 快速入门快捷方式以指向正确的 bash(您的较新 git 安装)
  6. 确保在打开快速启动快捷方式之前没有覆盖 TERM 变量(我的我的填充了 xterm-256 或其他东西,我只是在我自己的自定义 bash 配置文件中将其注释掉)
  7. 等待隐藏的 VM 在 Virtualbox 中启动/启动
  8. 您将被丢弃在 Docker shell => _SUCCESS_

哇,看起来很烦人

此页面是否有帮助?
0 / 5 - 0 等级