Machine: ์ด๋ฏธ ์„ค์น˜๋œ Virtualbox ๋ฐ Git๊ณผ ํ•จ๊ป˜ ์‚ฌ์šฉ ๋ถˆ๊ฐ€

์— ๋งŒ๋“  2016๋…„ 04์›” 29์ผ  ยท  4์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: docker/machine

์ด๋ฏธ ์ตœ์‹  Virtualbox์™€ git์ด ์žˆ์œผ๋ฏ€๋กœ ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ์„ ์‚ฌ์šฉํ•  ๋•Œ ์ด ์˜ต์…˜์˜ ์„ ํƒ์„ ์ทจ์†Œํ•ฉ๋‹ˆ๋‹ค.
Windows์šฉ git๊ณผ Virtualbox ๊ฒฝ๋กœ๊ฐ€ ๋ชจ๋‘ env PATH์— ์ถ”๊ฐ€๋˜์—ˆ์ง€๋งŒ ์˜ฌ๋ฐ”๋ฅธ git bash๋ฅผ ๊ฐ€๋ฆฌํ‚ค๋„๋ก "Docker Quickstart Terminal" ๋ฐ”ํƒ• ํ™”๋ฉด ๋ฐ”๋กœ ๊ฐ€๊ธฐ๋ฅผ ์ˆ˜์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. , ๋‹ค์Œ๊ณผ ๊ฐ™์ด ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

  • VirtualBox-5.0.20-106931-์Šน
  • 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์œผ๋กœ ์—…๊ทธ๋ ˆ์ด๋“œํ•œ ํ›„ ๋น„์Šทํ•œ ๋ฌธ์ œ(๋„์ปค๊ฐ€ ์‹œ์ž‘๋˜์ง€ ์•Š์Œ)๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

๋‹ค์Œ์„ ํ†ตํ•ด Windows 10 + Docker + VirtualBox๋ฅผ ๋‹ค์‹œ ์ž‘๋™ํ•  ์ˆ˜ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค.

  • ์ตœ์‹  Docker ๋„๊ตฌ(1.11.1) ์žฌ์„ค์น˜, ์„ค์น˜๋œ VirtualBox ์œ ์ง€
  • ์ด์ „ '๊ธฐ๋ณธ' Docker VirtualBox ์ด๋ฏธ์ง€ ์‚ญ์ œ
  • VirtualBox ๋„คํŠธ์›Œํฌ ๊ตฌ์„ฑ์—์„œ 'ํ˜ธ์ŠคํŠธ ์ „์šฉ ๋„คํŠธ์›Œํฌ' ์ œ๊ฑฐ
  • ๋‹ค์Œ ์˜ค๋ฅ˜์—†์ด ๋‹ค์‹œ ๋ชจ๋“  ๋‚ด์žฅ์„ ๋‹ค์‹œ ์‹คํ–‰ '๋„์ปค ๋น ๋ฅธ ํ„ฐ๋ฏธ๋„'.

์˜ˆ, @PaulSchulz ๊ฐ€ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค. ๋” ๋ถ€๋“œ๋Ÿฝ๊ณ  ๊ฐ€๊นŒ์šด ๋ˆˆ ์„ค์น˜๋ฅผ ์œ„ํ•ด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

  1. ๋ฒ„์ถ”์–ผ๋ฐ•์Šค ์ œ๊ฑฐ
  2. Docker ๋„๊ตฌ ์ƒ์ž ์ œ๊ฑฐ
  3. ์ปดํ“จํ„ฐ ๋‹ค์‹œ ์‹œ์ž‘
  4. ์ตœ์‹  Virtualbox 5.0.20์„ ์„ค์น˜ํ•˜๊ณ  ๋ชจ๋“  ๊ฒƒ์„ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค.
  5. ์˜ฌ๋ฐ”๋ฅธ bash(์ตœ์‹  git ์„ค์น˜)๋ฅผ ๊ฐ€๋ฆฌํ‚ค๋„๋ก Docker ๋น ๋ฅธ ์‹œ์ž‘ ๋ฐ”๋กœ ๊ฐ€๊ธฐ๋ฅผ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.
  6. ๋น ๋ฅธ ์‹œ์ž‘ ๋ฐ”๋กœ ๊ฐ€๊ธฐ๋ฅผ ์—ด๊ธฐ ์ „์— TERM ๋ณ€์ˆ˜๊ฐ€ ์žฌ์ •์˜๋˜์ง€ ์•Š์•˜๋Š”์ง€ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค.
  7. Virtualbox์—์„œ ์ˆจ๊ฒจ์ง„ VM์ด ์‹œ์ž‘/๋ถ€ํŒ…๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.
  8. Docker ์…ธ => _SUCCESS_์—์„œ ์‚ญ์ œ๋ฉ๋‹ˆ๋‹ค.

์™€, ์งœ์ฆ๋‚˜๋Š” ๊ฒƒ ๊ฐ™๋‹ค

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰