machine icon indicating copy to clipboard operation
machine copied to clipboard

Docker-Machine : "Error creating machine: exit status 1"

Open fenngwd opened this issue 11 years ago • 39 comments

Hello,

I am a new-comer. I am trying to use Docker.But I have some problem. When I click 'Quick Start Terminal', here is the error I am getting:

Starting machine default...
exit status 1
Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.

And I re-run the 'docker-machine env default, here is what i am getting:

default is not running. Please start this with docker-machine start default.

And I cat the log in ~/.docker/machine/machines/default/default/Logs/VBox.log:

VirtualBox VM 5.0.2 r102096 darwin.amd64 (Aug 13 2015 18:38:03) release log
00:00:00.022523 Log opened 2015-08-17T13:58:50.429529000Z
00:00:00.022524 Build Type: release
00:00:00.022537 OS Product: Darwin
00:00:00.022543 OS Release: 14.4.0
00:00:00.022548 OS Version: Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64
00:00:00.022643 DMI Product Name: MacBookPro12,1
00:00:00.022696 DMI Product Version: 1.0
00:00:00.022704 Host RAM: 8192MB total, 3446MB available
00:00:00.022705 Executable: /Applications/VirtualBox.app/Contents/MacOS/VBoxHeadless
00:00:00.022705 Process ID: 7403
00:00:00.022706 Package type: DARWIN_64BITS_GENERIC
00:00:00.024332 Installed Extension Packs:
00:00:00.024343   None installed!
00:00:00.025363 Console: Machine state changed to 'Starting'
00:00:00.052800 SUP: Loading failed for VMMR0.r0 (/Applications/VirtualBox.app/Contents/MacOS/VMMR0.r0) rc=VERR_VMM_SMAP_BUT_AC_CLEAR
00:00:00.052936 PDMLdr: pdmR3LoadR0U: pszName="VMMR0.r0" rc=VERR_VMM_SMAP_BUT_AC_CLEAR szErr="SUPR3LoadModule: supLoadModule returned VERR_VMM_SMAP_BUT_AC_CLEAR"
00:00:00.052960 VMSetError: /Users/vbox/tinderbox/mac-rel/src/VBox/VMM/VMMR3/VM.cpp(595) int vmR3CreateU(UVM*, uint32_t, int (*)(UVM*, VM*, void*), void*); rc=VERR_VMM_SMAP_BUT_AC_CLEAR
00:00:00.052974 VMSetError: Failed to load VMMR0.r0
00:00:00.053155 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={Failed to load VMMR0.r0 (VERR_VMM_SMAP_BUT_AC_CLEAR)}, preserve=false aResultDetail=0
00:00:00.053286 Console: Machine state changed to 'PoweredOff'
00:00:00.055651 Power up failed (vrc=VERR_VMM_SMAP_BUT_AC_CLEAR, rc=NS_ERROR_FAILURE (0X80004005))

I am using macbook pro with yosemite. Docker verison is 1.8.1, build d12ea79. And I use Docker Toolbox.

Please help me to figure this out. Thanks.

fenngwd avatar Aug 17 '15 14:08 fenngwd

I fixed this by uninstalling virtualbox and reinstalling.

vanrysss avatar Aug 17 '15 23:08 vanrysss

@vanrysss I have tried reinstalling virtualbox and Docker Toolbox. But nothing changed.

fenngwd avatar Aug 18 '15 02:08 fenngwd

I believe VirtualBox 5 is incompatible with docker-machine. I solve this issue by installing VirtualBox 4.3

https://www.virtualbox.org/wiki/Download_Old_Builds_4_3

ghost avatar Aug 18 '15 12:08 ghost

@yanke-guo You are right. I tried VirtualBox 4.3. It works right. It should be a problem of virtualbox 5. Thanks.

fenngwd avatar Aug 18 '15 13:08 fenngwd

This is an issue with virtualbox which is solved in test builds. https://www.virtualbox.org/ticket/14412

I have just installed virtualbox from https://www.virtualbox.org/wiki/Testbuilds and it solved the issue.

phildav avatar Aug 18 '15 14:08 phildav

@phildav Thank you. I will tried it.

fenngwd avatar Aug 18 '15 14:08 fenngwd

This is an issue for VirtualBox-5.0.2 on Windows-8.1 too. Upgrading to the current VirtualBox-Testbuild (5.0.3) solved the issue too. Thank you for that hint!!!

hrbu avatar Aug 18 '15 20:08 hrbu

+1 Works!

gegere avatar Aug 19 '15 20:08 gegere

:+1: thanks!

kanasite avatar Aug 20 '15 09:08 kanasite

Virtualbox test builds as recommended by @phildav worked for me on OSX 10.10.4

hopsoft avatar Aug 20 '15 13:08 hopsoft

I keep getting the problem on OSX 10.10.4 docker-machine version 0.4.1 (e2c88d6) Docker version 1.8.1, build d12ea79 VBoxManage -v 5.0.3r102220 Command: $ docker-machine -D create -d virtualbox --virtualbox-disk-size 2000 dev It hangs at here forever: Daemon not responding yet: dial tcp 192.168.99.100:2376: operation timed out Daemon not responding yet: dial tcp 192.168.99.100:2376: operation timed out Daemon not responding yet: dial tcp 192.168.99.100:2376: operation timed out

duynguyenvan avatar Aug 20 '15 15:08 duynguyenvan

It works after rebooting my machine. Thanks @phildav and all.

duynguyenvan avatar Aug 20 '15 16:08 duynguyenvan

Having the same issue on OSX 10.10.4 with VB 4.3.30.

dirkhainc3 avatar Aug 27 '15 05:08 dirkhainc3

@dirkhainc3 Did you reboot your mac?

fenngwd avatar Aug 27 '15 05:08 fenngwd

I had the same problem, and resolved it by starting the virtualbox gui and removing all the VMs, many of which were inaccessible. There were several duplicates, probably artifacts of my repeated install attempts.

calebhaye avatar Aug 27 '15 17:08 calebhaye

@phildav Thank you, save my life

wangyuelucky avatar Aug 28 '15 03:08 wangyuelucky

works for me:

  • OS X 10.10.5 14F27
  • https://www.virtualbox.org/wiki/Download_Old_Builds_5_0
  • removing all VMs

step1profit avatar Aug 28 '15 04:08 step1profit

@CaptainFeng Yes I did. In fact I didn't get a choice b/c when using VB 4.2.12 it would reproducibly crash my system. I ended up getting further with using the VB test build @phildav pointed out but ended up with contains that did not have a network connection. Right now I completely wiped Docker and VB of my system (for VB this script is really helpful: http://www.virtualbox.org/svn/vbox/trunk/src/VBox/Installer/darwin/DiskImage/VirtualBox_Uninstall.tool ) I will try a clean install of docker-machine and VB 5.0.2. #102096 which has worked for a colleague. If that does not work I will try @step1profit 's suggestion.

dirkhainc3 avatar Aug 28 '15 23:08 dirkhainc3

I got the same error after installing Docker toolbar yesterday on Windows 8.1 x64. However, I re-ran just to see what happened and it opened up just fine, so I'd recommend running Docker twice and seeing what happens.

scottAnselmo avatar Sep 02 '15 15:09 scottAnselmo

@step1profit 's suggestion seems to be the only way to get it to work with 10.10.5 (14F27). Thanks for posting!

dirkhainc3 avatar Sep 02 '15 16:09 dirkhainc3