Запуск докера на win7 - нет доступа с docker mashine


#1

Начитался книжки - поднимаю докер. Винда 7, так что из тулбокса. После уствновки ни квикстарт терминал ни кайтматик не стартуют. ругаются, что docker mashine что-то не смогла в и дефолт машина выпала с кодом 1.
При этом в вируталбоксе создавшаяяся машина успешно стартует и вроде ни на что особо не жалуется.
docker-machine ls при погашенной виртуальной машине видит её в статусе оффлайн, при включённой - надолго уходит в задумчивость, а потом говорить, что дефолт в таймауте.

В это время к машине вполне можно подключиться по SSH PUtty, и даже позапускать докеров. Например завёлся portainer/portainer, и из под себя позволил запустить докер-дженкинса. (от которого я не смог найти пароль, но это уже дело десятое).

Можно как-нибудь тулбоксу объяснить, как конектиться к машине?

На всякий случай вывод квикстарт терминала
Starting “default”…
(default) Check network to re-create if needed…
(default) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.
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\Ndochp.docker\machine\machines\default\default\Logs\VBoxHardening.log’
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine

Details: 00:27:57.647946 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…


#2
Подробный лог на 165 строк

2440.1ef4: Log file opened: 5.2.8r121009 g_hStartupLog=0000000000000020 g_uNtVerCombined=0x611db110
2440.1ef4: \SystemRoot\System32\ntdll.dll:
2440.1ef4: CreationTime: 2012-01-22T16:48:59.078888500Z
2440.1ef4: LastWriteTime: 2011-11-17T06:41:18.858669900Z
2440.1ef4: ChangeTime: 2017-03-04T09:22:28.817379400Z
2440.1ef4: FileAttributes: 0x20
2440.1ef4: Size: 0x1a6d50
2440.1ef4: NT Headers: 0xe0
2440.1ef4: Timestamp: 0x4ec4aa8e
2440.1ef4: Machine: 0x8664 - amd64
2440.1ef4: Timestamp: 0x4ec4aa8e
2440.1ef4: Image Version: 6.1
2440.1ef4: SizeOfImage: 0x1a9000 (1740800)
2440.1ef4: Resource Dir: 0x151000 LB 0x560d8
2440.1ef4: [Version info resource found at 0xd8! (ID/Name: 0x1; SubID/SubName: 0x409)]
2440.1ef4: [Raw version resource data: 0x1510f0 LB 0x380, codepage 0x0 (reserved 0x0)]
2440.1ef4: ProductName: Microsoft® Windows® Operating System
2440.1ef4: ProductVersion: 6.1.7601.17725
2440.1ef4: FileVersion: 6.1.7601.17725 (win7sp1_gdr.111116-1503)
2440.1ef4: FileDescription: NT Layer DLL
2440.1ef4: \SystemRoot\System32\kernel32.dll:
2440.1ef4: CreationTime: 2013-01-08T23:59:51.339370700Z
2440.1ef4: LastWriteTime: 2012-11-30T05:41:07.621000000Z
2440.1ef4: ChangeTime: 2017-03-04T09:25:31.260814600Z
2440.1ef4: FileAttributes: 0x20
2440.1ef4: Size: 0x11b800
2440.1ef4: NT Headers: 0xe8
2440.1ef4: Timestamp: 0x50b8479a
2440.1ef4: Machine: 0x8664 - amd64
2440.1ef4: Timestamp: 0x50b8479a
2440.1ef4: Image Version: 6.1
2440.1ef4: SizeOfImage: 0x11f000 (1175552)
2440.1ef4: Resource Dir: 0x116000 LB 0x528
2440.1ef4: [Version info resource found at 0x90! (ID/Name: 0x1; SubID/SubName: 0x409)]
2440.1ef4: [Raw version resource data: 0x1160b0 LB 0x3a4, codepage 0x0 (reserved 0x0)]
2440.1ef4: ProductName: Microsoft® Windows® Operating System
2440.1ef4: ProductVersion: 6.1.7601.18015
2440.1ef4: FileVersion: 6.1.7601.18015 (win7sp1_gdr.121129-1432)
2440.1ef4: FileDescription: Windows NT BASE API Client DLL
2440.1ef4: \SystemRoot\System32\KernelBase.dll:
2440.1ef4: CreationTime: 2013-01-08T23:59:51.597385500Z
2440.1ef4: LastWriteTime: 2012-11-30T05:41:07.715000000Z
2440.1ef4: ChangeTime: 2017-03-04T09:25:31.261814600Z
2440.1ef4: FileAttributes: 0x20
2440.1ef4: Size: 0x67a00
2440.1ef4: NT Headers: 0xe8
2440.1ef4: Timestamp: 0x50b8479b
2440.1ef4: Machine: 0x8664 - amd64
2440.1ef4: Timestamp: 0x50b8479b
2440.1ef4: Image Version: 6.1
2440.1ef4: SizeOfImage: 0x6b000 (438272)
2440.1ef4: Resource Dir: 0x69000 LB 0x530
2440.1ef4: [Version info resource found at 0x90! (ID/Name: 0x1; SubID/SubName: 0x409)]
2440.1ef4: [Raw version resource data: 0x690b0 LB 0x3ac, codepage 0x0 (reserved 0x0)]
2440.1ef4: ProductName: Microsoft® Windows® Operating System
2440.1ef4: ProductVersion: 6.1.7601.18015
2440.1ef4: FileVersion: 6.1.7601.18015 (win7sp1_gdr.121129-1432)
2440.1ef4: FileDescription: Windows NT BASE API Client DLL
2440.1ef4: \SystemRoot\System32\apisetschema.dll:
2440.1ef4: CreationTime: 2013-09-14T10:07:09.137151700Z
2440.1ef4: LastWriteTime: 2013-08-02T02:12:20.275000000Z
2440.1ef4: ChangeTime: 2017-03-04T09:22:28.816379300Z
2440.1ef4: FileAttributes: 0x20
2440.1ef4: Size: 0x1a00
2440.1ef4: NT Headers: 0xc0
2440.1ef4: Timestamp: 0x51fb15ca
2440.1ef4: Machine: 0x8664 - amd64
2440.1ef4: Timestamp: 0x51fb15ca
2440.1ef4: Image Version: 6.1
2440.1ef4: SizeOfImage: 0x50000 (327680)
2440.1ef4: Resource Dir: 0x30000 LB 0x3f8
2440.1ef4: [Version info resource found at 0x48! (ID/Name: 0x1; SubID/SubName: 0x409)]
2440.1ef4: [Raw version resource data: 0x30060 LB 0x398, codepage 0x0 (reserved 0x0)]
2440.1ef4: ProductName: Microsoft® Windows® Operating System
2440.1ef4: ProductVersion: 6.1.7601.18229
2440.1ef4: FileVersion: 6.1.7601.18229 (win7sp1_gdr.130801-1533)
2440.1ef4: FileDescription: ApiSet Schema DLL
2440.1ef4: supR3HardenedWinFindAdversaries: 0x0
2440.1ef4: supR3HardenedWinInitAppBin(0x0): ‘\Device\HarddiskVolume1\Program Files\Oracle\VirtualBox’
2440.1ef4: Calling main()
2440.1ef4: SUPR3HardenedMain: pszProgName=VBoxHeadless fFlags=0x0
2440.1ef4: supR3HardenedWinInitAppBin(0x0): ‘\Device\HarddiskVolume1\Program Files\Oracle\VirtualBox’
2440.1ef4: SUPR3HardenedMain: Respawn #1
2440.1ef4: System32: \Device\HarddiskVolume1\Windows\System32
2440.1ef4: WinSxS: \Device\HarddiskVolume1\Windows\winsxs
2440.1ef4: KnownDllPath: C:\Windows\system32
2440.1ef4: ‘\Device\HarddiskVolume1\Program Files\Oracle\VirtualBox\VBoxHeadless.exe’ has no imports
2440.1ef4: supHardenedWinVerifyImageByHandle: -> 0 (\Device\HarddiskVolume1\Program Files\Oracle\VirtualBox\VBoxHeadless.exe)
2440.1ef4: supR3HardNtEnableThreadCreation:
2440.1ef4: supR3HardNtDisableThreadCreation: pvLdrInitThunk=000000007779c320 pvNtTerminateThread=00000000777c1840
2440.1ef4: supR3HardenedWinDoReSpawn(1): New child 424.2790 [kernel32].
2440.1ef4: supR3HardNtChildGatherData: PebBaseAddress=000007fffffdd000 cbPeb=0x380
2440.1ef4: supR3HardNtPuChFindNtdll: uNtDllParentAddr=0000000077770000 uNtDllChildAddr=0000000077770000
2440.1ef4: supR3HardenedWinSetupChildInit: uLdrInitThunk=000000007779c320
2440.1ef4: supR3HardenedWinSetupChildInit: Start child.
2440.1ef4: supR3HardNtChildWaitFor: Found expected request 0 (PurifyChildAndCloseHandles) after 0 ms.
2440.1ef4: supR3HardNtChildPurify: Startup delay kludge #1/0: 264 ms, 33 sleeps
2440.1ef4: supHardNtVpScanVirtualMemory: enmKind=CHILD_PURIFICATION
2440.1ef4: *0000000000000000-000000000000ffff 0x0001/0x0000 0x0000000
2440.1ef4: *0000000000010000-000000000002ffff 0x0004/0x0004 0x0020000
2440.1ef4: *0000000000030000-0000000000033fff 0x0002/0x0002 0x0040000
2440.1ef4: 0000000000034000-000000000003ffff 0x0001/0x0000 0x0000000
2440.1ef4: *0000000000040000-0000000000040fff 0x0004/0x0004 0x0020000
2440.1ef4: 0000000000041000-00000000001bffff 0x0001/0x0000 0x0000000
2440.1ef4: *00000000001c0000-00000000002bbfff 0x0000/0x0004 0x0020000
2440.1ef4: 00000000002bc000-00000000002bdfff 0x0104/0x0004 0x0020000
2440.1ef4: 00000000002be000-00000000002bffff 0x0004/0x0004 0x0020000
2440.1ef4: 00000000002c0000-000000007776ffff 0x0001/0x0000 0x0000000
2440.1ef4: *0000000077770000-0000000077770fff 0x0002/0x0080 0x1000000 \Device\HarddiskVolume1\Windows\System32\ntdll.dll
2440.1ef4: 0000000077771000-0000000077872fff 0x0020/0x0080 0x1000000 \Device\HarddiskVolume1\Windows\System32\ntdll.dll
2440.1ef4: 0000000077873000-00000000778a1fff 0x0002/0x0080 0x1000000 \Device\HarddiskVolume1\Windows\System32\ntdll.dll
2440.1ef4: 00000000778a2000-00000000778adfff 0x0008/0x0080 0x1000000 \Device\HarddiskVolume1\Windows\System32\ntdll.dll
2440.1ef4: 00000000778ae000-0000000077918fff 0x0002/0x0080 0x1000000 \Device\HarddiskVolume1\Windows\System32\ntdll.dll
2440.1ef4: 0000000077919000-000000007efdffff 0x0001/0x0000 0x0000000
2440.1ef4: *000000007efe0000-000000007ffdffff 0x0000/0x0002 0x0020000
2440.1ef4: *000000007ffe0000-000000007ffe0fff 0x0002/0x0002 0x0020000
2440.1ef4: 000000007ffe1000-000000007ffeffff 0x0000/0x0002 0x0020000
2440.1ef4: 000000007fff0000-000000013fc9ffff 0x0001/0x0000 0x0000000
2440.1ef4: *000000013fca0000-000000013fca0fff 0x0002/0x0080 0x1000000 \Device\HarddiskVolume1\Program Files\Oracle\VirtualBox\VBoxHeadless.exe
2440.1ef4: 000000013fca1000-000000013fd11fff 0x0020/0x0080 0x1000000 \Device\HarddiskVolume1\Program Files\Oracle\VirtualBox\VBoxHeadless.exe
2440.1ef4: 000000013fd12000-000000013fd12fff 0x0080/0x0080 0x1000000 \Device\HarddiskVolume1\Program Files\Oracle\VirtualBox\VBoxHeadless.exe
2440.1ef4: 000000013fd13000-000000013fd58fff 0x0002/0x0080 0x1000000 \Device\HarddiskVolume1\Program Files\Oracle\VirtualBox\VBoxHeadless.exe
2440.1ef4: 000000013fd59000-000000013fd59fff 0x0004/0x0080 0x1000000 \Device\HarddiskVolume1\Program Files\Oracle\VirtualBox\VBoxHeadless.exe
2440.1ef4: 000000013fd5a000-000000013fd5afff 0x0008/0x0080 0x1000000 \Device\HarddiskVolume1\Program Files\Oracle\VirtualBox\VBoxHeadless.exe
2440.1ef4: 000000013fd5b000-000000013fd5ffff 0x0004/0x0080 0x1000000 \Device\HarddiskVolume1\Program Files\Oracle\VirtualBox\VBoxHeadless.exe
2440.1ef4: 000000013fd60000-000000013fd60fff 0x0008/0x0080 0x1000000 \Device\HarddiskVolume1\Program Files\Oracle\VirtualBox\VBoxHeadless.exe
2440.1ef4: 000000013fd61000-000000013fd61fff 0x0004/0x0080 0x1000000 \Device\HarddiskVolume1\Program Files\Oracle\VirtualBox\VBoxHeadless.exe
2440.1ef4: 000000013fd62000-000000013fd65fff 0x0008/0x0080 0x1000000 \Device\HarddiskVolume1\Program Files\Oracle\VirtualBox\VBoxHeadless.exe
2440.1ef4: 000000013fd66000-000000013fdadfff 0x0002/0x0080 0x1000000 \Device\HarddiskVolume1\Program Files\Oracle\VirtualBox\VBoxHeadless.exe
2440.1ef4: 000000013fdae000-000007feffa8ffff 0x0001/0x0000 0x0000000
2440.1ef4: *000007feffa90000-000007feffa90fff 0x0002/0x0080 0x1000000 \Device\HarddiskVolume1\Windows\System32\apisetschema.dll
2440.1ef4: 000007feffa91000-000007fffffaffff 0x0001/0x0000 0x0000000
2440.1ef4: *000007fffffb0000-000007fffffd2fff 0x0002/0x0002 0x0040000
2440.1ef4: 000007fffffd3000-000007fffffdcfff 0x0001/0x0000 0x0000000
2440.1ef4: *000007fffffdd000-000007fffffddfff 0x0004/0x0004 0x0020000
2440.1ef4: *000007fffffde000-000007fffffdffff 0x0004/0x0004 0x0020000
2440.1ef4: *000007fffffe0000-000007fffffeffff 0x0001/0x0002 0x0020000
2440.1ef4: apisetschema.dll: timestamp 0x51fb15ca (rc=VINF_SUCCESS)
2440.1ef4: VBoxHeadless.exe: timestamp 0x5a942b95 (rc=VINF_SUCCESS)
2440.1ef4: ‘\Device\HarddiskVolume1\Program Files\Oracle\VirtualBox\VBoxHeadless.exe’ has no imports
2440.1ef4: ‘\Device\HarddiskVolume1\Windows\System32\apisetschema.dll’ has no imports
2440.1ef4: ‘\Device\HarddiskVolume1\Windows\System32\ntdll.dll’ has no imports
2440.1ef4: supR3HardNtChildPurify: Done after 285 ms and 0 fixes (loop #0).
424.2790: Log file opened: 5.2.8r121009 g_hStartupLog=0000000000000004 g_uNtVerCombined=0x611db100
424.2790: supR3HardenedVmProcessInit: uNtDllAddr=0000000077770000 g_uNtVerCombined=0x611db100
424.2790: ntdll.dll: timestamp 0x4ec4aa8e (rc=VINF_SUCCESS)
424.2790: New simple heap: #1 00000000002c0000 LB 0x400000 (for 1740800 allocation)
2440.1ef4: supR3HardNtEnableThreadCreation:
424.2790: supR3HardenedWinInitAppBin(0x0): ‘\Device\HarddiskVolume1\Program Files\Oracle\VirtualBox’
424.2790: System32: \Device\HarddiskVolume1\Windows\System32
424.2790: WinSxS: \Device\HarddiskVolume1\Windows\winsxs
424.2790: KnownDllPath: C:\Windows\system32
424.2790: supR3HardenedVmProcessInit: Opening vboxdrv stub…
424.2790: supR3HardenedVmProcessInit: Restoring LdrInitializeThunk…
424.2790: supR3HardenedVmProcessInit: Returning to LdrInitializeThunk…
424.2790: Registered Dll notification callback with NTDLL.
424.2790: supHardenedWinVerifyImageByHandle: -> 22900 (\Device\HarddiskVolume1\Windows\System32\kernel32.dll)
424.2790: supR3HardenedWinVerifyCacheInsert: \Device\HarddiskVolume1\Windows\System32\kernel32.dll
424.2790: supR3HardenedMonitor_LdrLoadDll: pName=C:\Windows\system32\kernel32.dll (Input=kernel32.dll, rcNtResolve=0xc0150008) *pfFlags=0xffffffff pwszSearchPath=0000000000000000: [calling]
424.2790: supR3HardenedScreenImage/NtCreateSection: cache hit (Unknown Status 22900 (0x5974)) on \Device\HarddiskVolume1\Windows\System32\kernel32.dll [lacks WinVerifyTrust]
2440.1ef4: Error (rc=258):
2440.1ef4: Timed out after 60001 ms waiting for child request #1 (CloseEvents).
2440.1ef4: Error 258 in supR3HardNtChildWaitFor! (enmWhat=5)
2440.1ef4: Timed out after 60001 ms waiting for child request #1 (CloseEvents).


#3

прям гуглитца https://www.virtualbox.org/ticket/14978

It seems to be the same issue, also with Avira antivir causing it.


#4

Антивирусов нету, отключение брендмауэра винды не спасло.
Смущает, что putty коннектится, то есть в принципе добраться до машины можно. А вот docker-machine - не может.
Ну и если из сообщения об ошибке
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).
взять и выкинуть “–type headless”, то вполне открывается доступная для работы виртуалка. Никаких “terminated unexpectedly”
При этом, пока виртуалка жива docker-machine ls говорит, что у неё стейт Timeout.

Так как времени на разборку с некритичным функционалом жалко, пойду пробовать поднять толстую убунту в виртуалбоксе с большим диском и уже на ней разворачивать цепочку сборки, а винмашину использовать как слейва для выполнения задач.