docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.63k stars 1.96k forks source link

Not able to create VM on Windows 7 #742

Closed arun-gupta closed 9 years ago

arun-gupta commented 9 years ago

Downloaded Virtual Box 4.3.24 and Docker Machine 0.1.1. Creating a machine on Windows 7 just hangs with the following message:

C:\Users\Arun Gupta>.\Downloads\docker-machine_windows-amd64.exe create --driver virtualbox dev ←[34mINFO←[0m[0000] Creating CA: C:\Users\Arun Gupta.docker\machine\certs\ca.pem ←[34mINFO←[0m[0000] Creating client certificate: C:\Users\Arun Gupta.docker\machine\certs \cert.pem ←[34mINFO←[0m[0002] Downloading boot2docker.iso to C:\Users\Arun Gupta.docker\machine\cac he\boot2docker.iso... ←[34mINFO←[0m[0017] Creating SSH key... ←[34mINFO←[0m[0018] Creating VirtualBox VM... ←[34mINFO←[0m[0083] Starting VirtualBox VM... ←[34mINFO←[0m[0087] Waiting for VM to start...

Virtual Box UI shows the VM is running.

How to debug further?

nathanleclaire commented 9 years ago

Hi @arun-gupta, thanks for reporting the issue. Come to think of it, I get the same bug on my Windows machine at home.... there must be an bug with the way that we are figuring out that the machine has started up.

Can you paste the output of running the same command with -D flag at the beginning to show all of the debug output when you get a chance? Thanks.

arun-gupta commented 9 years ago

Try to run the command again gives:

←[31mERRO←[0m[0000] Error creating machine: Machine dev already exists
←[33mWARN←[0m[0000] You will want to check the provider to make sure the machine and assoc
iated resources were properly removed.
←[31mFATA←[0m[0000] Error creating machine

Deleted the machine using VirtualBox UI, and deleted all the associated files. Still getting the same error.

arun-gupta commented 9 years ago

Deleted .docker and .VirtualBox directories and now getting the following message:

C:\Users\Arun Gupta>.\Downloads\docker-machine_windows-amd64.exe -D create --driver virtua
lbox dev
←[34mINFO←[0m[0000] Creating CA: C:\Users\Arun Gupta\.docker\machine\certs\ca.pem
←[34mINFO←[0m[0000] Creating client certificate: C:\Users\Arun Gupta\.docker\machine\certs
\cert.pem
←[34mDEBU←[0m[0001] executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
←[34mDEBU←[0m[0001] STDOUT: Oracle VM VirtualBox Command Line Management Interface Version
 4.3.24
(C) 2005-2015 Oracle Corporation
All rights reserved.

Usage:

  VBoxManage [<general option>] <command>

General Options:

  [-v|--version]            print version number and exit
  [-q|--nologo]             suppress the logo
  [--settingspw <pw>]       provide the settings password
  [--settingspwfile <file>] provide a file containing the settings password

Commands:

  list [--long|-l]          vms|runningvms|ostypes|hostdvds|hostfloppies|
                            intnets|bridgedifs|hostonlyifs|natnets|dhcpservers|
                            hostinfo|hostcpuids|hddbackends|hdds|dvds|floppies|
                            usbhost|usbfilters|systemproperties|extpacks|
                            groups|webcams

  showvminfo                <uuid|vmname> [--details]
                            [--machinereadable]
  showvminfo                <uuid|vmname> --log <idx>

  registervm                <filename>

  unregistervm              <uuid|vmname> [--delete]

  createvm                  --name <name>
                            [--groups <group>, ...]
                            [--ostype <ostype>]
                            [--register]
                            [--basefolder <path>]
                            [--uuid <uuid>]

  modifyvm                  <uuid|vmname>
                            [--name <name>]
                            [--groups <group>, ...]
                            [--description <desc>]
                            [--ostype <ostype>]
                            [--iconfile <filename>]
                            [--memory <memorysize in MB>]
                            [--pagefusion on|off]
                            [--vram <vramsize in MB>]
                            [--acpi on|off]
                            [--pciattach 03:04.0]
                            [--pciattach 03:04.0@02:01.0]
                            [--pcidetach 03:04.0]
                            [--ioapic on|off]
                            [--hpet on|off]
                            [--triplefaultreset on|off]
                            [--hwvirtex on|off]
                            [--nestedpaging on|off]
                            [--largepages on|off]
                            [--vtxvpid on|off]
                            [--vtxux on|off]
                            [--pae on|off]
                            [--longmode on|off]
                            [--synthcpu on|off]
                            [--cpuidset <leaf> <eax> <ebx> <ecx> <edx>]
                            [--cpuidremove <leaf>]
                            [--cpuidremoveall]
                            [--hardwareuuid <uuid>]
                            [--cpus <number>]
                            [--cpuhotplug on|off]
                            [--plugcpu <id>]
                            [--unplugcpu <id>]
                            [--cpuexecutioncap <1-100>]
                            [--rtcuseutc on|off]
                            [--graphicscontroller none|vboxvga|vmsvga]
                            [--monitorcount <number>]
                            [--accelerate3d on|off]
                            [--accelerate2dvideo on|off]
                            [--firmware bios|efi|efi32|efi64]
                            [--chipset ich9|piix3]
                            [--bioslogofadein on|off]
                            [--bioslogofadeout on|off]
                            [--bioslogodisplaytime <msec>]
                            [--bioslogoimagepath <imagepath>]
                            [--biosbootmenu disabled|menuonly|messageandmenu]
                            [--biossystemtimeoffset <msec>]
                            [--biospxedebug on|off]
                            [--boot<1-4> none|floppy|dvd|disk|net>]
                            [--nic<1-N> none|null|nat|bridged|intnet|hostonly|
                                        generic|natnetwork]
                            [--nictype<1-N> Am79C970A|Am79C973|
                                            82540EM|82543GC|82545EM|
                                            virtio]
                            [--cableconnected<1-N> on|off]
                            [--nictrace<1-N> on|off]
                            [--nictracefile<1-N> <filename>]
                            [--nicproperty<1-N> name=[value]]
                            [--nicspeed<1-N> <kbps>]
                            [--nicbootprio<1-N> <priority>]
                            [--nicpromisc<1-N> deny|allow-vms|allow-all]
                            [--nicbandwidthgroup<1-N> none|<name>]
                            [--bridgeadapter<1-N> none|<devicename>]
                            [--hostonlyadapter<1-N> none|<devicename>]
                            [--intnet<1-N> <network name>]
                            [--nat-network<1-N> <network name>]
                            [--nicgenericdrv<1-N> <driver>
                            [--natnet<1-N> <network>|default]
                            [--natsettings<1-N> [<mtu>],[<socksnd>],
                                                [<sockrcv>],[<tcpsnd>],
                                                [<tcprcv>]]
                            [--natpf<1-N> [<rulename>],tcp|udp,[<hostip>],
                                          <hostport>,[<guestip>],<guestport>]
                            [--natpf<1-N> delete <rulename>]
                            [--nattftpprefix<1-N> <prefix>]
                            [--nattftpfile<1-N> <file>]
                            [--nattftpserver<1-N> <ip>]
                            [--natbindip<1-N> <ip>
                            [--natdnspassdomain<1-N> on|off]
                            [--natdnsproxy<1-N> on|off]
                            [--natdnshostresolver<1-N> on|off]
                            [--nataliasmode<1-N> default|[log],[proxyonly],
                                                         [sameports]]
                            [--macaddress<1-N> auto|<mac>]
                            [--mouse ps2|usb|usbtablet|usbmultitouch]
                            [--keyboard ps2|usb
                            [--uart<1-N> off|<I/O base> <IRQ>]
                            [--uartmode<1-N> disconnected|
                                             server <pipe>|
                                             client <pipe>|
                                             file <file>|
                                             <devicename>]
                            [--lpt<1-N> off|<I/O base> <IRQ>]
                            [--lptmode<1-N> <devicename>]
                            [--guestmemoryballoon <balloonsize in MB>]
                            [--audio none|null|dsound]
                            [--audiocontroller ac97|hda|sb16]
                            [--clipboard disabled|hosttoguest|guesttohost|
                                         bidirectional]
                            [--draganddrop disabled|hosttoguest
                            [--vrde on|off]
                            [--vrdeextpack default|<name>
                            [--vrdeproperty <name=[value]>]
                            [--vrdeport <hostport>]
                            [--vrdeaddress <hostip>]
                            [--vrdeauthtype null|external|guest]
                            [--vrdeauthlibrary default|<name>
                            [--vrdemulticon on|off]
                            [--vrdereusecon on|off]
                            [--vrdevideochannel on|off]
                            [--vrdevideochannelquality <percent>]
                            [--usb on|off]
                            [--usbehci on|off]
                            [--snapshotfolder default|<path>]
                            [--teleporter on|off]
                            [--teleporterport <port>]
                            [--teleporteraddress <address|empty>
                            [--teleporterpassword <password>]
                            [--teleporterpasswordfile <file>|stdin]
                            [--tracing-enabled on|off]
                            [--tracing-config <config-string>]
                            [--tracing-allow-vm-access on|off]
                            [--usbcardreader on|off]
                            [--autostart-enabled on|off]
                            [--autostart-delay <seconds>]
                            [--vcpenabled on|off]
                            [--vcpscreens [<display>],...
                            [--vcpfile <filename>]
                            [--vcpwidth <width>]
                            [--vcpheight <height>]
                            [--vcprate <rate>]
                            [--vcpfps <fps>]
                            [--defaultfrontend default|<name>]

  clonevm                   <uuid|vmname>
                            [--snapshot <uuid>|<name>]
                            [--mode machine|machineandchildren|all]
                            [--options link|keepallmacs|keepnatmacs|
                                       keepdisknames]
                            [--name <name>]
                            [--groups <group>, ...]
                            [--basefolder <basefolder>]
                            [--uuid <uuid>]
                            [--register]

  import                    <ovfname/ovaname>
                            [--dry-run|-n]
                            [--options keepallmacs|keepnatmacs]
                            [more options]
                            (run with -n to have options displayed
                             for a particular OVF)

  export                    <machines> --output|-o <name>.<ovf/ova>
                            [--legacy09|--ovf09|--ovf10|--ovf20]
                            [--manifest]
                            [--iso]
                            [--options manifest|iso|nomacs|nomacsbutnat]
                            [--vsys <number of virtual system>]
                                    [--product <product name>]
                                    [--producturl <product url>]
                                    [--vendor <vendor name>]
                                    [--vendorurl <vendor url>]
                                    [--version <version info>]
                                    [--description <description info>]
                                    [--eula <license text>]
                                    [--eulafile <filename>]

  startvm                   <uuid|vmname>...
                            [--type gui|sdl|headless]

  controlvm                 <uuid|vmname>
                            pause|resume|reset|poweroff|savestate|
                            acpipowerbutton|acpisleepbutton|
                            keyboardputscancode <hex> [<hex> ...]|
                            setlinkstate<1-N> on|off |
                            nic<1-N> null|nat|bridged|intnet|hostonly|generic|
                                     natnetwork [<devicename>] |
                            nictrace<1-N> on|off |
                            nictracefile<1-N> <filename> |
                            nicproperty<1-N> name=[value] |
                            nicpromisc<1-N> deny|allow-vms|allow-all |
                            natpf<1-N> [<rulename>],tcp|udp,[<hostip>],
                                        <hostport>,[<guestip>],<guestport> |
                            natpf<1-N> delete <rulename> |
                            guestmemoryballoon <balloonsize in MB> |
                            usbattach <uuid>|<address> |
                            usbdetach <uuid>|<address> |
                            clipboard disabled|hosttoguest|guesttohost|
                                      bidirectional |
                            draganddrop disabled|hosttoguest |
                            vrde on|off |
                            vrdeport <port> |
                            vrdeproperty <name=[value]> |
                            vrdevideochannelquality <percent> |
                            setvideomodehint <xres> <yres> <bpp>
                                            [[<display>] [<enabled:yes|no> |
                                              [<xorigin> <yorigin>]]] |
                            screenshotpng <file> [display] |
                            vcpenabled on|off |
                            vcpscreens all|none|<screen>,[<screen>...] |
                            setcredentials <username>
                                           --passwordfile <file> | <password>
                                           <domain>
                                           [--allowlocallogon <yes|no>] |
                            teleport --host <name> --port <port>
                                     [--maxdowntime <msec>]
                                     [--passwordfile <file> |
                                      --password <password>] |
                            plugcpu <id> |
                            unplugcpu <id> |
                            cpuexecutioncap <1-100>
                            webcam <attach [path [settings]]> | <detach [path]> | <list>

  discardstate              <uuid|vmname>

  adoptstate                <uuid|vmname> <state_file>

  snapshot                  <uuid|vmname>
                            take <name> [--description <desc>] [--live] |
                            delete <uuid|snapname> |
                            restore <uuid|snapname> |
                            restorecurrent |
                            edit <uuid|snapname>|--current
                                 [--name <name>]
                                 [--description <desc>] |
                            list [--details|--machinereadable]
                            showvminfo <uuid|snapname>

  closemedium               disk|dvd|floppy <uuid|filename>
                            [--delete]

  storageattach             <uuid|vmname>
                            --storagectl <name>
                            [--port <number>]
                            [--device <number>]
                            [--type dvddrive|hdd|fdd]
                            [--medium none|emptydrive|additions|
                                      <uuid|filename>|host:<drive>|iscsi]
                            [--mtype normal|writethrough|immutable|shareable|
                                     readonly|multiattach]
                            [--comment <text>]
                            [--setuuid <uuid>]
                            [--setparentuuid <uuid>]
                            [--passthrough on|off]
                            [--tempeject on|off]
                            [--nonrotational on|off]
                            [--discard on|off]
                            [--bandwidthgroup <name>]
                            [--forceunmount]
                            [--server <name>|<ip>]
                            [--target <target>]
                            [--tport <port>]
                            [--lun <lun>]
                            [--encodedlun <lun>]
                            [--username <username>]
                            [--password <password>]
                            [--initiator <initiator>]
                            [--intnet]

  storagectl                <uuid|vmname>
                            --name <name>
                            [--add ide|sata|scsi|floppy|sas]
                            [--controller LSILogic|LSILogicSAS|BusLogic|
                                          IntelAHCI|PIIX3|PIIX4|ICH6|I82078]
                            [--portcount <1-30>]
                            [--hostiocache on|off]
                            [--bootable on|off]
                            [--remove]

  bandwidthctl              <uuid|vmname>
                            add <name> --type disk|network
                                --limit <megabytes per second>[k|m|g|K|M|G] |
                            set <name>
                                --limit <megabytes per second>[k|m|g|K|M|G] |
                            remove <name> |
                            list [--machinereadable]
                            (limit units: k=kilobit, m=megabit, g=gigabit,
                                          K=kilobyte, M=megabyte, G=gigabyte)

  showhdinfo                <uuid|filename>

  createhd                  --filename <filename>
                            [--size <megabytes>|--sizebyte <bytes>]
                            [--diffparent <uuid>|<filename>
                            [--format VDI|VMDK|VHD] (default: VDI)
                            [--variant Standard,Fixed,Split2G,Stream,ESX]

  modifyhd                  <uuid|filename>
                            [--type normal|writethrough|immutable|shareable|
                                    readonly|multiattach]
                            [--autoreset on|off]
                            [--property <name=[value]>]
                            [--compact]
                            [--resize <megabytes>|--resizebyte <bytes>]

  clonehd                   <uuid|inputfile> <uuid|outputfile>
                            [--format VDI|VMDK|VHD|RAW|<other>]
                            [--variant Standard,Fixed,Split2G,Stream,ESX]
                            [--existing]

  convertfromraw            <filename> <outputfile>
                            [--format VDI|VMDK|VHD]
                            [--variant Standard,Fixed,Split2G,Stream,ESX]
                            [--uuid <uuid>]
  convertfromraw            stdin <outputfile> <bytes>
                            [--format VDI|VMDK|VHD]
                            [--variant Standard,Fixed,Split2G,Stream,ESX]
                            [--uuid <uuid>]

  getextradata              global|<uuid|vmname>
                            <key>|enumerate

  setextradata              global|<uuid|vmname>
                            <key>
                            [<value>] (no value deletes key)

  setproperty               machinefolder default|<folder> |
                            hwvirtexclusive on|off |
                            vrdeauthlibrary default|<library> |
                            websrvauthlibrary default|null|<library> |
                            vrdeextpack null|<library> |
                            autostartdbpath null|<folder> |
                            loghistorycount <value>
                            defaultfrontend default|<name>

  usbfilter                 add <index,0-N>
                            --target <uuid|vmname>|global
                            --name <string>
                            --action ignore|hold (global filters only)
                            [--active yes|no] (yes)
                            [--vendorid <XXXX>] (null)
                            [--productid <XXXX>] (null)
                            [--revision <IIFF>] (null)
                            [--manufacturer <string>] (null)
                            [--product <string>] (null)
                            [--remote yes|no] (null, VM filters only)
                            [--serialnumber <string>] (null)
                            [--maskedinterfaces <XXXXXXXX>]

  usbfilter                 modify <index,0-N>
                            --target <uuid|vmname>|global
                            [--name <string>]
                            [--action ignore|hold] (global filters only)
                            [--active yes|no]
                            [--vendorid <XXXX>|""]
                            [--productid <XXXX>|""]
                            [--revision <IIFF>|""]
                            [--manufacturer <string>|""]
                            [--product <string>|""]
                            [--remote yes|no] (null, VM filters only)
                            [--serialnumber <string>|""]
                            [--maskedinterfaces <XXXXXXXX>]

  usbfilter                 remove <index,0-N>
                            --target <uuid|vmname>|global

  sharedfolder              add <uuid|vmname>
                            --name <name> --hostpath <hostpath>
                            [--transient] [--readonly] [--automount]

  sharedfolder              remove <uuid|vmname>
                            --name <name> [--transient]

  guestproperty             get <uuid|vmname>
                            <property> [--verbose]

  guestproperty             set <uuid|vmname>
                            <property> [<value> [--flags <flags>]]

  guestproperty             delete|unset <uuid|vmname>
                            <property>

  guestproperty             enumerate <uuid|vmname>
                            [--patterns <patterns>]

  guestproperty             wait <uuid|vmname> <patterns>
                            [--timeout <msec>] [--fail-on-timeout]

  guestcontrol              <uuid|vmname>

                              exec[ute]
                              --image <path to program> --username <name>
                              [--passwordfile <file> | --password <password>]
                              [--domain <domain>] [--verbose] [--timeout <msec>]
                              [--environment "<NAME>=<VALUE> [<NAME>=<VALUE>]"]
                              [--wait-exit] [--wait-stdout] [--wait-stderr]
                              [--dos2unix] [--unix2dos]
                              [-- [<argument1>] ... [<argumentN>]]

                              copyfrom
                              <guest source> <host dest> --username <name>
                              [--passwordfile <file> | --password <password>]
                              [--domain <domain>] [--verbose]
                              [--dryrun] [--follow] [--recursive]

                              copyto|cp
                              <host source> <guest dest> --username <name>
                              [--passwordfile <file> | --password <password>]
                              [--domain <domain>] [--verbose]
                              [--dryrun] [--follow] [--recursive]

                              createdir[ectory]|mkdir|md
                              <guest directory>... --username <name>
                              [--passwordfile <file> | --password <password>]
                              [--domain <domain>] [--verbose]
                              [--parents] [--mode <mode>]

                              removedir[ectory]|rmdir
                              <guest directory>... --username <name>
                              [--passwordfile <file> | --password <password>]
                              [--domain <domain>] [--verbose]
                              [--recursive|-R|-r]

                              removefile|rm
                              <guest file>... --username <name>
                              [--passwordfile <file> | --password <password>]
                              [--domain <domain>] [--verbose]

                              ren[ame]|mv
                              <source>... <dest> --username <name>
                              [--passwordfile <file> | --password <password>]
                              [--domain <domain>] [--verbose]

                              createtemp[orary]|mktemp
                              <template> --username <name>
                              [--passwordfile <file> | --password <password>]
                              [--directory] [--secure] [--tmpdir <directory>]
                              [--domain <domain>] [--mode <mode>] [--verbose]

                              list <all|sessions|processes|files> [--verbose]

                              process kill --session-id <ID>
                                           | --session-name <name or pattern>
                                           [--verbose]
                                           <PID> ... <PID n>

                              [p[s]]kill --session-id <ID>
                                         | --session-name <name or pattern>
                                         [--verbose]
                                         <PID> ... <PID n>

                              session close  --session-id <ID>
                                           | --session-name <name or pattern>
                                           | --all
                                           [--verbose]

                              stat
                              <file>... --username <name>
                              [--passwordfile <file> | --password <password>]
                              [--domain <domain>] [--verbose]

                              updateadditions
                              [--source <guest additions .ISO>] [--verbose]
                              [--wait-start]
                              [-- [<argument1>] ... [<argumentN>]]

                              watch [--verbose]

  debugvm                   <uuid|vmname>
                            dumpguestcore --filename <name> |
                            info <item> [args] |
                            injectnmi |
                            log [--release|--debug] <settings> ...|
                            logdest [--release|--debug] <settings> ...|
                            logflags [--release|--debug] <settings> ...|
                            osdetect |
                            osinfo |
                            getregisters [--cpu <id>] <reg>|all ... |
                            setregisters [--cpu <id>] <reg>=<value> ... |
                            show [--human-readable|--sh-export|--sh-eval|
                                  --cmd-set]
                                <logdbg-settings|logrel-settings>
                                [[opt] what ...] |
                            statistics [--reset] [--pattern <pattern>]
                            [--descriptions]

  metrics                   list [*|host|<vmname> [<metric_list>]]
                                                 (comma-separated)

  metrics                   setup
                            [--period <seconds>] (default: 1)
                            [--samples <count>] (default: 1)
                            [--list]
                            [*|host|<vmname> [<metric_list>]]

  metrics                   query [*|host|<vmname> [<metric_list>]]

  metrics                   enable
                            [--list]
                            [*|host|<vmname> [<metric_list>]]

  metrics                   disable
                            [--list]
                            [*|host|<vmname> [<metric_list>]]

  metrics                   collect
                            [--period <seconds>] (default: 1)
                            [--samples <count>] (default: 1)
                            [--list]
                            [--detach]
                            [*|host|<vmname> [<metric_list>]]

  natnetwork                add --netname <name>
                            --network <network>
                            [--enable|--disable]
                            [--dhcp on|off]
                            [--port-forward-4 <rule>]
                            [--loopback-4 <rule>]
                            [--ipv6 on|off]
                            [--port-forward-6 <rule>]
                            [--loopback-6 <rule>]

  natnetwork                remove --netname <name>

  natnetwork                modify --netname <name>
                            [--network <network>]
                            [--enable|--disable]
                            [--dhcp on|off]
                            [--port-forward-4 <rule>]
                            [--loopback-4 <rule>]
                            [--ipv6 on|off]
                            [--port-forward-6 <rule>]
                            [--loopback-6 <rule>]

  natnetwork                start --netname <name>

  natnetwork                stop --netname <name>

  hostonlyif                ipconfig <name>
                            [--dhcp |
                            --ip<ipv4> [--netmask<ipv4> (def: 255.255.255.0)] |
                            --ipv6<ipv6> [--netmasklengthv6<length> (def: 64)]]
                            create |
                            remove <name>

  dhcpserver                add|modify --netname <network_name> |
                                       --ifname <hostonly_if_name>
                            [--ip <ip_address>
                            --netmask <network_mask>
                            --lowerip <lower_ip>
                            --upperip <upper_ip>]
                            [--enable | --disable]

  dhcpserver                remove --netname <network_name> |
                                   --ifname <hostonly_if_name>

  extpack                   install [--replace] <tarball> |
                            uninstall [--force] <name> |
                            cleanup

←[34mDEBU←[0m[0001] STDERR:
←[34mINFO←[0m[0002] Downloading boot2docker.iso to C:\Users\Arun Gupta\.docker\machine\cac
he\boot2docker.iso...
←[34mINFO←[0m[0019] Creating SSH key...
←[34mDEBU←[0m[0019] executing: C:\Program Files (x86)\Git\bin\ssh-keygen.exe ssh-keygen -t
 rsa -N  -f C:\Users\Arun Gupta\.docker\machine\machines\dev\id_rsa

Generating public/private rsa key pair.
Your identification has been saved in C:\Users\Arun Gupta\.docker\machine\machines\dev\id_
rsa.
Your public key has been saved in C:\Users\Arun Gupta\.docker\machine\machines\dev\id_rsa.
pub.
The key fingerprint is:
e1:63:ee:0a:94:87:54:7b:2f:64:d2:f9:81:95:06:3e Arun Gupta@MINECRAFT
The key's randomart image is:
+--[ RSA 2048]----+
|      . ....     |
|     . + +o      |
|    . o E..      |
|   . o * = .     |
|    + . S o      |
|   . . o o       |
|    .   .        |
|     . .         |
|      ...        |
+-----------------+
←[34mINFO←[0m[0021] Creating VirtualBox VM...
←[34mDEBU←[0m[0021] Creating 20000 MB hard disk image...
Converting from raw image file="stdin" to file="C:\Users\Arun Gupta\.docker\machine\machin
es\dev\disk.vmdk"...
Creating dynamic image with size 20971520000 bytes (20000MB)...
←[34mDEBU←[0m[0039] executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe createvm
--basefolder C:\Users\Arun Gupta\.docker\machine\machines\dev --name dev --register
←[34mDEBU←[0m[0039] STDOUT: Virtual machine 'dev' is created and registered.
UUID: 37575a53-6c22-487a-b833-aa5aa98aac09
Settings file: 'C:\Users\Arun Gupta\.docker\machine\machines\dev\dev\dev.vbox'

←[34mDEBU←[0m[0039] STDERR:
←[34mDEBU←[0m[0039] executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm
dev --firmware bios --bioslogofadein off --bioslogofadeout off --natdnshostresolver1 on --
bioslogodisplaytime 0 --biosbootmenu disabled --ostype Linux26_64 --cpus 1 --memory 1024 -
-acpi on --ioapic on --rtcuseutc on --cpuhotplug off --pae on --synthcpu off --hpet on --h
wvirtex on --nestedpaging on --largepages on --vtxvpid on --accelerate3d off --boot1 dvd
←[34mDEBU←[0m[0039] STDOUT:
←[34mDEBU←[0m[0039] STDERR:
←[34mDEBU←[0m[0039] executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm
dev --nic1 nat --nictype1 virtio --cableconnected1 on
←[34mDEBU←[0m[0039] STDOUT:
←[34mDEBU←[0m[0039] STDERR:
←[34mDEBU←[0m[0039] executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm
dev --natpf1 ssh,tcp,127.0.0.1,50294,,22
←[34mDEBU←[0m[0039] STDOUT:
←[34mDEBU←[0m[0039] STDERR:
←[34mDEBU←[0m[0039] executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe list host
onlyifs
←[34mDEBU←[0m[0040] STDOUT: Name:            VirtualBox Host-Only Ethernet Adapter #2
GUID:            87b55871-c68b-4acf-a5b7-e2d4af3d57cf
DHCP:            Disabled
IPAddress:       192.168.99.1
NetworkMask:     255.255.255.0
IPV6Address:     fe80:0000:0000:0000:1d46:283f:ea84:fe0c
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 08:00:27:00:c8:d8
MediumType:      Ethernet
Status:          Up
VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #2

Name:            VirtualBox Host-Only Ethernet Adapter
GUID:            4482aee6-e507-441e-a5ae-2f422e584888
DHCP:            Disabled
IPAddress:       192.168.56.1
NetworkMask:     255.255.255.0
IPV6Address:     fe80:0000:0000:0000:9d69:0e8c:627a:2119
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 08:00:27:00:c8:13
MediumType:      Ethernet
Status:          Up
VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter

←[34mDEBU←[0m[0040] STDERR:
←[34mDEBU←[0m[0040] executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm
dev --nic2 hostonly --nictype2 virtio --hostonlyadapter2 VirtualBox Host-Only Ethernet Ada
pter #2 --cableconnected2 on
←[34mDEBU←[0m[0040] STDOUT:
←[34mDEBU←[0m[0040] STDERR:
←[34mDEBU←[0m[0040] executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe storagect
l dev --name SATA --add sata --hostiocache on
←[34mDEBU←[0m[0040] STDOUT:
←[34mDEBU←[0m[0040] STDERR:
←[34mDEBU←[0m[0040] executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe storageat
tach dev --storagectl SATA --port 0 --device 0 --type dvddrive --medium C:\Users\Arun Gupt
a\.docker\machine\machines\dev\boot2docker.iso
←[34mDEBU←[0m[0040] STDOUT:
←[34mDEBU←[0m[0040] STDERR:
←[34mDEBU←[0m[0040] executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe storageat
tach dev --storagectl SATA --port 1 --device 0 --type hdd --medium C:\Users\Arun Gupta\.do
cker\machine\machines\dev\disk.vmdk
←[34mDEBU←[0m[0040] STDOUT:
←[34mDEBU←[0m[0040] STDERR:
←[34mDEBU←[0m[0040] executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe guestprop
erty set dev /VirtualBox/GuestAdd/SharedFolders/MountPrefix /
←[34mDEBU←[0m[0040] STDOUT:
←[34mDEBU←[0m[0040] STDERR:
←[34mDEBU←[0m[0040] executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe guestprop
erty set dev /VirtualBox/GuestAdd/SharedFolders/MountDir /
←[34mDEBU←[0m[0040] STDOUT:
←[34mDEBU←[0m[0040] STDERR:
←[34mINFO←[0m[0040] Starting VirtualBox VM...
←[34mDEBU←[0m[0040] executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe showvminf
o dev --machinereadable
←[34mDEBU←[0m[0040] STDOUT: name="dev"
groups="/"
ostype="Linux 2.6 / 3.x (64 bit)"
UUID="37575a53-6c22-487a-b833-aa5aa98aac09"
CfgFile="C:\\Users\\Arun Gupta\\.docker\\machine\\machines\\dev\\dev\\dev.vbox"
SnapFldr="C:\\Users\\Arun Gupta\\.docker\\machine\\machines\\dev\\dev\\Snapshots"
LogFldr="C:\\Users\\Arun Gupta\\.docker\\machine\\machines\\dev\\dev\\Logs"
hardwareuuid="37575a53-6c22-487a-b833-aa5aa98aac09"
memory=1024
pagefusion="off"
vram=8
cpuexecutioncap=100
hpet="on"
chipset="piix3"
firmware="BIOS"
cpus=1
pae="on"
longmode="on"
synthcpu="off"
bootmenu="disabled"
boot1="dvd"
boot2="dvd"
boot3="disk"
boot4="none"
acpi="on"
ioapic="on"
biossystemtimeoffset=0
rtcuseutc="on"
hwvirtex="on"
nestedpaging="on"
largepages="on"
vtxvpid="on"
vtxux="on"
VMState="poweroff"
VMStateChangeTime="2014-10-18T18:35:45.649000000"
monitorcount=1
accelerate3d="off"
accelerate2dvideo="off"
teleporterenabled="off"
teleporterport=0
teleporteraddress=""
teleporterpassword=""
tracing-enabled="off"
tracing-allow-vm-access="off"
tracing-config=""
autostart-enabled="off"
autostart-delay=0
defaultfrontend=""
storagecontrollername0="SATA"
storagecontrollertype0="IntelAhci"
storagecontrollerinstance0="0"
storagecontrollermaxportcount0="30"
storagecontrollerportcount0="30"
storagecontrollerbootable0="on"
"SATA-0-0"="C:\Users\Arun Gupta\.docker\machine\machines\dev\boot2docker.iso"
"SATA-ImageUUID-0-0"="b760f043-b572-4cb4-a551-6aa078824c5f"
"SATA-tempeject"="off"
"SATA-IsEjected"="off"
"SATA-1-0"="C:\Users\Arun Gupta\.docker\machine\machines\dev\disk.vmdk"
"SATA-ImageUUID-1-0"="2f128781-eaa5-485f-b650-4d2ff82fb176"
"SATA-2-0"="none"
"SATA-3-0"="none"
"SATA-4-0"="none"
"SATA-5-0"="none"
"SATA-6-0"="none"
"SATA-7-0"="none"
"SATA-8-0"="none"
"SATA-9-0"="none"
"SATA-10-0"="none"
"SATA-11-0"="none"
"SATA-12-0"="none"
"SATA-13-0"="none"
"SATA-14-0"="none"
"SATA-15-0"="none"
"SATA-16-0"="none"
"SATA-17-0"="none"
"SATA-18-0"="none"
"SATA-19-0"="none"
"SATA-20-0"="none"
"SATA-21-0"="none"
"SATA-22-0"="none"
"SATA-23-0"="none"
"SATA-24-0"="none"
"SATA-25-0"="none"
"SATA-26-0"="none"
"SATA-27-0"="none"
"SATA-28-0"="none"
"SATA-29-0"="none"
natnet1="nat"
macaddress1="0800279518F9"
cableconnected1="on"
nic1="nat"
nictype1="virtio"
nicspeed1="0"
mtu="0"
sockSnd="64"
sockRcv="64"
tcpWndSnd="64"
tcpWndRcv="64"
Forwarding(0)="ssh,tcp,127.0.0.1,50294,,22"
hostonlyadapter2="VirtualBox Host-Only Ethernet Adapter #2"
macaddress2="080027A603AE"
cableconnected2="on"
nic2="hostonly"
nictype2="virtio"
nicspeed2="0"
nic3="none"
nic4="none"
nic5="none"
nic6="none"
nic7="none"
nic8="none"
hidpointing="ps2mouse"
hidkeyboard="ps2kbd"
uart1="off"
uart2="off"
lpt1="off"
lpt2="off"
audio="none"
clipboard="disabled"
draganddrop="disabled"
vrde="off"
usb="off"
ehci="off"
VRDEActiveConnection="off"
VRDEClients=0
vcpenabled="off"
vcpscreens=0
vcpfile="C:\Users\Arun Gupta\.docker\machine\machines\dev\dev\dev.webm"
vcpwidth=1024
vcpheight=768
vcprate=512
vcpfps=25
GuestMemoryBalloon=0

←[34mDEBU←[0m[0040] STDERR:
←[34mDEBU←[0m[0040] executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm d
ev --type headless
←[34mDEBU←[0m[0042] STDOUT: Waiting for VM "dev" to power on...
VM "dev" has been successfully started.

←[34mDEBU←[0m[0042] STDERR:
←[34mINFO←[0m[0042] Waiting for VM to start...
sthulb commented 9 years ago

I ended up in this loop today as well.

myfear commented 9 years ago

Can't reproduce with: docker-machine_windows-amd64.exe version 0.2.0 (8b9eaf2) host running in VirtualBox 4.3.18 r96516 On Windows 7 Ultimate N SP1 (patched to latest) installed as main OS.

Can reproduce with: the same or other versions of Virtualbox but having Windows 7 run INSIDE VirtualBox already. So, it seems as if the double layer of indirection in here does some harm.

nartamonov commented 9 years ago

Same error with docker-machine 0.3.0-rc2:

C:\Users\artamonov>docker-machine create --driver virtualbox dev4
Creating VirtualBox VM...
Creating SSH key...
Starting VirtualBox VM...
Starting VM...
Error creating machine: Too many retries.  Last error: Maximum number of retries
 (60) exceeded
You will want to check the provider to make sure the machine and associated reso
urces were properly removed.

Windows 7 SP1 VirtualBox 4.3.28 r100309

Boran commented 9 years ago

Same on docker-machine version 0.3.0 (0a251fe), virtual box 4.3.28 (freshly installed)

In a separate window "docker-machine ls" list the machine as running, but env does not work:

bash.exe"-3.1$ docker-machine env dev open C:\Users\myuser.docker\machine\machines\dev\ca.pem: The system cannot find the file specified.

There is a ca.pem, but it is a directory higher at C:\Users\myuser.docker\machine\certs

After copying ca.pem, cert.pem > server.pem , key.pem>server-key.pem , to C:\Users\myuser.docker\machine\machines\dev, "docker-machine env dev" no longer complains, but hangs.

So its looks like the cert configuration that is broken on windows?

nathanleclaire commented 9 years ago

cc @ahmetalpbalkan @johngossman can you reproduce this issue?

ahmetb commented 9 years ago

yes I can see an error from machine -D create -d virtualbox too (gist):

STDERR:
SSH binary not found, using native Go implementation
About to run SSH command:
ip addr show dev eth1
SSH cmd err, output: <nil>: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group defaultqlen 1000
    link/ether 08:00:27:90:59:91 brd ff:ff:ff:ff:ff:ff
    inet 192.168.99.100/24 brd 192.168.99.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe90:5991/64 scope link
       valid_lft forever preferred_lft forever

SSH returned: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:90:59:91 brd ff:ff:ff:ff:ff:ff
    inet 192.168.99.100/24 brd 192.168.99.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe90:5991/64 scope link
       valid_lft forever preferred_lft forever

END SSH

Daemon not responding yet: dial tcp 192.168.99.100:2376: ConnectEx tcp: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Daemon not responding yet: dial tcp 192.168.99.100:2376: ConnectEx tcp: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Daemon not responding yet: dial tcp 192.168.99.100:2376: ConnectEx tcp: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

and goes into a loop... For more info here's the network settings of the VM on VirtualBox:

image image

donbora commented 9 years ago

Getting the same issue on Windows 7 Enterprise SP1 & Boot2Docker.

docker-Machine is able to create VirtualBox VMs but does not seem to be able to create certs. (tried twice dev & dev1) $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM dev virtualbox Running tcp://192.168.99.100:2376 dev1 virtualbox Running tcp://192.168.99.101:2376

Tried to regenerate certificates & it does not go through after 60 retries $ docker-machine regenerate-certs dev Regenerate TLS machine certs? Warning: this is irreversible. (y/n): y Regenerating TLS certificates Maximum number of retries (60) exceeded

Is there a workaround for this ?

caylorme commented 9 years ago

I'm seeing this issue as well.

ddmrs commented 9 years ago

Same problem here with windows 8.1:

ddmrs commented 9 years ago

For your info, the boot2docker installer is able to create the required ca's and certs. Maybe it can help to look/compare how it is done there.

caylorme commented 9 years ago

Same OS and problems that ddmrs had. Certs are not created and cannot use docker-machine env or many other commands on the machine.

cteyton commented 9 years ago

Same on windows 8.1 for docker-compose 0.3.1 and virtualbox 5.0.0.

I have this error trace :

STDERR:
Using SSH client type: external
About to run SSH command:
ip addr show dev eth1
&{C:\Program Files (x86)\Git\bin\ssh.exe [C:\Program Files (x86)\Git\bin\ssh.exe
 -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no
-o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o Con
nectTimeout=10 -i C:\Users\OtherUser\.docker\machine\machines\themis2\id_rsa -p
61179 docker@localhost ip addr show dev eth1] []  <nil> <nil> <nil> [] <nil> <ni
l> <nil> <nil> false [] [] [] [] <nil>}
SSH cmd err, output: <nil>: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500
qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:6a:e1:48 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::a00:27ff:fe6a:e148/64 scope link
       valid_lft forever preferred_lft forever

SSH returned: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fa
st state UP group default qlen 1000
    link/ether 08:00:27:6a:e1:48 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::a00:27ff:fe6a:e148/64 scope link
       valid_lft forever preferred_lft forever

END SSH
MatLeid commented 9 years ago

I've got the same problem.

My specs:

Windows 7 Professional (64) Version 6.1.7601 Service Pack 1 Build 7601

Virtualbox 4.3.30 Tried docker-machine(s) 0.2.0 , 0.3.0, 0.4.0-rc1

none of the worked.

mattn commented 9 years ago

I got same. Windows8.1 virtualbox5.

port 2375 is not opened.

mattn commented 9 years ago

it sesms docker open tls as 0.0.0.0:2376. probably, something wrong in commands of iptables.

liweiqi-CN commented 9 years ago

i got the same problem

D:\Docker Toolbox\kitematic\resources\resources\docker-machine.exe -D create -d virtualbox --virtualbox-memory 2048 default returned non zero exit code. Stderr: Converting from raw image file="stdin" to file="C:\Users\disk.vmdk"... Creating dynamic image with size 20971520000 bytes (20000MB)... Error creating machine: exit status 1 You will want to check the provider to make sure the machine and associated resources were properly removed.

kweathermon commented 9 years ago

I have the same problem too Windows 8.1 Virtualbox 4.3.30 docker-machine 0.4.1

jurosh commented 9 years ago

Same issue, Windows 7 Prof. VBox 4.3.30 Docker 1.8.1

After first run computer says something like that IP is already used in your network - maybe it can be related. VB machine is running but docker cannot connect.

morkot commented 9 years ago

Seems like it's connected to VirtualBox Host Only Network adapter stopping work properly. And reinstalling of VirtualBox just delete virtual network interface,

Environment:

Windows 8.1 Docker Toolbox 1.8.1b

> ./VBoxManage.exe --version
5.0.2r102096
Workaround
  1. in VirtualBox go to Files->Preferences
  2. Choose Network
  3. Switch to 'Host only Networks'
  4. Delete adapters
  5. docker-machine restart <macine>
prbond commented 9 years ago

See pull resquest #1674 and issues #1673 Build docker-machine 0.5.0-dev close problem for me

chefhoobajoob commented 9 years ago

@prbond - is there a low-impedance way to get whatever binaries are needed to fix this issue on a Windows 7 system where the latest Docker Toolbox has been run?

nathanleclaire commented 9 years ago

The master builds for Docker Machine are available at https://docker-machine-builds.evanhazlett.com/latest

chefhoobajoob commented 9 years ago

@nathanleclaire: Thank you! The binaries there work like a charm on my system now.

nathanleclaire commented 9 years ago

:+1:

nathanleclaire commented 9 years ago

Since it seems like most users in this thread have their issue resolved, I'm going to go ahead and close this thread. Please re-open if you experience any issues.

GustavSt commented 9 years ago

Do I understand it correctly if this is fixed in 0.5? current release is 0.4.1 right? when will 0.5 be released?

GustavSt commented 9 years ago

0.5.0-dev did not work for me. Same error only max number is 5 tries now

abacaj commented 9 years ago

how do you build/use the binaries on windows? @nathanleclaire

GustavSt commented 9 years ago

downloaded from here:

The master builds for Docker Machine are available at https://docker-machine-builds.evanhazlett.com/latest

nathanleclaire commented 9 years ago

@GustavSt Can you paste the output of running the create with latest and the --debug (as in docker-machine --debug create flag set? Thanks!

GustavSt commented 9 years ago

It seems it complains about ssh binary not found. I followed the installation guide here and it clearly state to add ssh.exe, supposedly located in the git/bin-folder to path. Two issues there for me though. Firstly in my git/bin folder there is no ssh.exe, only sh.exe, bash.exe and git.exe. Secondly, my git installation is in program files and in the installation guide it says program files(86x). Any ideas there?

nathanleclaire commented 9 years ago

@GustavSt It should default to using --native-ssh if no SSH binary is found. Did you install git using the latest Msysgit? And can you please paste the debug output in a Gist? Thanks.

GustavSt commented 9 years ago

Hmm, it works now it seems... not sure what the difference was with last week. Thanks