{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/machine/issues/3228","repository_url":"https://api.github.com/repos/docker/machine","labels_url":"https://api.github.com/repos/docker/machine/issues/3228/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/3228/comments","events_url":"https://api.github.com/repos/docker/machine/issues/3228/events","html_url":"https://github.com/docker/machine/issues/3228","id":143301984,"number":3228,"title":"Docker-machine hangs at startvm on openstack host instance.","user":{"login":"dgonzo","id":361559,"avatar_url":"https://avatars.githubusercontent.com/u/361559?v=3","gravatar_id":"","url":"https://api.github.com/users/dgonzo","html_url":"https://github.com/dgonzo","followers_url":"https://api.github.com/users/dgonzo/followers","following_url":"https://api.github.com/users/dgonzo/following{/other_user}","gists_url":"https://api.github.com/users/dgonzo/gists{/gist_id}","starred_url":"https://api.github.com/users/dgonzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgonzo/subscriptions","organizations_url":"https://api.github.com/users/dgonzo/orgs","repos_url":"https://api.github.com/users/dgonzo/repos","events_url":"https://api.github.com/users/dgonzo/events{/privacy}","received_events_url":"https://api.github.com/users/dgonzo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-24T16:58:37Z","updated_at":"2016-03-24T16:58:37Z","closed_at":null,"body":"I've been stuck for a day on trying to get docker-machine to work again in my environment.\r\n\r\n- headless\r\n- Ubuntu 14.04\r\n- Inside Openstack\r\n- Oracle VM VirtualBox Manager 5.0.16\r\n- Docker version 1.10.3, build 20f81dd\r\n- Docker Machine Version: 0.6.0, build e27fb87\r\n\r\nThis worked before though some versions have changed.\r\n\r\nIt hangs at `starting vm` step. The full debug output is below.\r\n\r\nWhen I try and start the vm from virtualbox the machine is locked and it's not running:\r\n\r\n#### Other info\r\nThis issue is also posted to stackoverflow in case it turns out to not be a docker-machine issue. http://stackoverflow.com/questions/36205410/how-do-i-fix-docker-machine-hanging-during-startvm\r\n\r\nAfter reviewing several similar issues here and on openstack I'm not sure that what I'm seeing is different. But those all appear to be within a Mac OS context.\r\n\r\nIf my issue turns out to not docker-machine specific but rather virtualbox then just close this issue.\r\n\r\n# Logs\r\n\r\n\r\n    $ vboxmanage list runningvms\r\n    <blank>\r\n\r\n    $ vboxmanage list vms\r\n    \"default\" {13e41ac4-5079-4bf4-a583-39464be22294}\r\n\r\n    $ vboxmanage startvm default\r\n    VBoxManage: error: The machine 'default' is already locked by a session (or being locked or unlocked)\r\n    VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine,\r\n    callee nsISupports\r\n    VBoxManage: error: Context: \"LaunchVMProcess(a->session, sessionType.raw(), env.raw(), progress.asOutParam())\" at line\r\n    589 of file VBoxManageMisc.cpp\r\n\r\n\r\nDebug output of `docker-machine -D create --driver virtualbox default`\r\n\r\n\r\n\tDocker Machine Version:  0.6.0, build e27fb87\r\n\tFound binary path at /usr/local/bin/docker-machine\r\n\tLaunching plugin server for driver virtualbox\r\n\tPlugin server listening at address 127.0.0.1:56657\r\n\t() Calling .GetVersion\r\n\tUsing API Version  1\r\n\t() Calling .SetConfigRaw\r\n\t() Calling .GetMachineName\r\n\t(flag-lookup) Calling .GetMachineName\r\n\t(flag-lookup) Calling .DriverName\r\n\t(flag-lookup) Calling .GetCreateFlags\r\n\tFound binary path at /usr/local/bin/docker-machine\r\n\tLaunching plugin server for driver virtualbox\r\n\tPlugin server listening at address 127.0.0.1:60210\r\n\t() Calling .GetVersion\r\n\tUsing API Version  1\r\n\t() Calling .SetConfigRaw\r\n\t() Calling .GetMachineName\r\n\t(default) Calling .GetMachineName\r\n\t(default) Calling .DriverName\r\n\t(default) Calling .GetCreateFlags\r\n\t(default) Calling .SetConfigFromFlags\r\n\tRunning pre-create checks...\r\n\t(default) Calling .PreCreateCheck\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage --version\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | 5.0.16r105871\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | local Boot2Docker ISO version:  v1.10.3\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage list hostonlyifs\r\n\t(default) DBG | STDOUT:\r\n\t(default) Calling .GetConfigRaw\r\n\t(default) DBG | STDERR:\r\n\tCreating machine...\r\n\t(default) Calling .Create\r\n\t(default) DBG | local Boot2Docker ISO version:  v1.10.3\r\n\t(default) Copying /home/ubuntu/.docker/machine/cache/boot2docker.iso to /home/ubunt\r\n\tu/.docker/machine/machines/default/boot2docker.iso...\r\n\t(default) Creating VirtualBox VM...\r\n\t(default) Creating SSH key...\r\n\t(default) DBG | Creating disk image...\r\n\t(default) DBG | Creating 20000 MB hard disk image...\r\n\t(default) DBG | Writing magic tar header\r\n\t(default) DBG | Writing SSH key tar header\r\n\t(default) DBG | Calling inner createDiskImage\r\n\t(default) DBG | &{/usr/bin/VBoxManage [/usr/bin/VBoxManage convertfromraw stdin /ho\r\n\tme/ubuntu/.docker/machine/machines/default/disk.vmdk 20971520000 --format VMDK] []\r\n\t <nil> <nil> <nil> [] <nil> <nil> <nil> <nil> false [] [] [] [] <nil>}\r\n\t(default) DBG | Starting command\r\n\t(default) DBG | Copying to stdin\r\n\t(default) DBG | Filling zeroes\r\n\t(default) DBG | Converting from raw image file=\"stdin\" to file=\"/home/ubuntu/.docke\r\n\tr/machine/machines/default/disk.vmdk\"...\r\n\t(default) DBG | Creating dynamic image with size 20971520000 bytes (20000MB)...\r\n\t(default) DBG | Closing STDIN\r\n\t(default) DBG | Waiting on cmd\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage createvm --basefolder /home/ubuntu/.do\r\n\tcker/machine/machines/default --name default --register\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | Virtual machine 'default' is created and registered.\r\n\t(default) DBG | UUID: 13e41ac4-5079-4bf4-a583-39464be22294\r\n\t(default) DBG | Settings file: '/home/ubuntu/.docker/machine/machines/default/defau\r\n\tlt/default.vbox'\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | VM CPUS: 1\r\n\t(default) DBG | VM Memory: 1024\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage modifyvm default --firmware bios --bio\r\n\tslogofadein off --bioslogofadeout off --bioslogodisplaytime 0 --biosbootmenu disabl\r\n\ted --ostype Linux26_64 --cpus 1 --memory 1024 --acpi on --ioapic on --rtcuseutc on\r\n\t--natdnshostresolver1 off --natdnsproxy1 off --cpuhotplug off --pae on --hpet on --\r\n\thwvirtex on --nestedpaging on --largepages on --vtxvpid on --accelerate3d off --boo\r\n\tt1 dvd\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage modifyvm default --nic1 nat --nictype1\r\n\t 82540EM --cableconnected1 on\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage storagectl default --name SATA --add s\r\n\tata --hostiocache on\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage storageattach default --storagectl SAT\r\n\tA --port 0 --device 0 --type dvddrive --medium /home/ubuntu/.docker/machine/machine\r\n\ts/default/boot2docker.iso\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage storageattach default --storagectl SAT\r\n\tA --port 1 --device 0 --type hdd --medium /home/ubuntu/.docker/machine/machines/def\r\n\tault/disk.vmdk\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage guestproperty set default /VirtualBox/\r\n\tGuestAdd/SharedFolders/MountPrefix /\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage guestproperty set default /VirtualBox/\r\n\tGuestAdd/SharedFolders/MountDir /\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | setting up shareDir\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage sharedfolder add default --name hosth$\r\n\tme --hostpath /home --automount\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage setextradata default VBoxInternal2/Sh$\r\n\tredFoldersEnableSymlinksCreate/hosthome 1\r\n\t(default) DBG | STDOUT:\r\n\t(default) Starting the VM...\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage showvminfo default --machinereadable\r\n\t(default) DBG | STDOUT:\r\n\t(default) Check network to re-create if needed...\r\n\t(default) DBG | name=\"default\"\r\n\t(default) DBG | groups=\"/\"\r\n\t(default) DBG | ostype=\"Linux 2.6 / 3.x / 4.x (64-bit)\"\r\n\t(default) DBG | UUID=\"13e41ac4-5079-4bf4-a583-39464be22294\"\r\n\t(default) DBG | CfgFile=\"/home/ubuntu/.docker/machine/machines/default/default/def$\r\n\tult.vbox\"\r\n\t(default) DBG | SnapFldr=\"/home/ubuntu/.docker/machine/machines/default/default/Sn$\r\n\tpshots\"\r\n\t(default) DBG | LogFldr=\"/home/ubuntu/.docker/machine/machines/default/default/Log$\r\n\t\"\r\n\t(default) DBG | hardwareuuid=\"13e41ac4-5079-4bf4-a583-39464be22294\"\r\n\t(default) DBG | memory=1024\r\n\t(default) DBG | pagefusion=\"off\"\r\n\t(default) DBG | vram=8\r\n\t(default) DBG | cpuexecutioncap=100\r\n\t(default) DBG | hpet=\"on\"\r\n\t(default) DBG | chipset=\"piix3\"\r\n\t(default) DBG | firmware=\"BIOS\"\r\n\t(default) DBG | cpus=1\r\n\t(default) DBG | pae=\"on\"\r\n\t(default) DBG | longmode=\"on\"\r\n\t(default) DBG | cpuid-portability-level=0\r\n\t(default) DBG | bootmenu=\"disabled\"\r\n\t(default) DBG | boot1=\"dvd\"\r\n\t(default) DBG | boot2=\"dvd\"\r\n\t(default) DBG | boot3=\"disk\"\r\n\t(default) DBG | boot4=\"none\"\r\n\t(default) DBG | acpi=\"on\"\r\n\t(default) DBG | ioapic=\"on\"\r\n\t(default) DBG | biossystemtimeoffset=0\r\n\t(default) DBG | rtcuseutc=\"on\"\r\n\t(default) DBG | hwvirtex=\"on\"\r\n\t(default) DBG | nestedpaging=\"on\"\r\n\t(default) DBG | largepages=\"on\"\r\n\t(default) DBG | vtxvpid=\"on\"\r\n\t(default) DBG | vtxux=\"on\"\r\n\t(default) DBG | paravirtprovider=\"default\"\r\n\t(default) DBG | VMState=\"poweroff\"\r\n\t(default) DBG | VMStateChangeTime=\"2016-03-24T03:54:17.472000000\"\r\n\t(default) DBG | monitorcount=1\r\n\t(default) DBG | accelerate3d=\"off\"\r\n\t(default) DBG | accelerate2dvideo=\"off\"\r\n\t(default) DBG | teleporterenabled=\"off\"\r\n\t(default) DBG | teleporterport=0\r\n\t(default) DBG | teleporteraddress=\"\"\r\n\t(default) DBG | teleporterpassword=\"\"\r\n\t(default) DBG | tracing-enabled=\"off\"\r\n\tdefault) DBG | tracing-allow-vm-access=\"off\"\r\n\t(default) DBG | tracing-config=\"\"\r\n\t(default) DBG | autostart-enabled=\"off\"\r\n\t(default) DBG | autostart-delay=0\r\n\t(default) DBG | defaultfrontend=\"\"\r\n\t(default) DBG | storagecontrollername0=\"SATA\"\r\n\t(default) DBG | storagecontrollertype0=\"IntelAhci\"\r\n\t(default) DBG | storagecontrollerinstance0=\"0\"\r\n\t(default) DBG | storagecontrollermaxportcount0=\"30\"\r\n\t(default) DBG | storagecontrollerportcount0=\"30\"\r\n\t(default) DBG | storagecontrollerbootable0=\"on\"\r\n\t(default) DBG | \"SATA-0-0\"=\"/home/ubuntu/.docker/machine/machines/default/boot2dock\r\n\ter.iso\"\r\n\t(default) DBG | \"SATA-ImageUUID-0-0\"=\"2141c200-10bb-423e-b8d6-1c1f19cb0999\"\r\n\t(default) DBG | \"SATA-tempeject\"=\"off\"\r\n\t(default) DBG | \"SATA-IsEjected\"=\"off\"\r\n\t(default) DBG | \"SATA-1-0\"=\"/home/ubuntu/.docker/machine/machines/default/disk.vmdk\r\n\t\"\r\n\t(default) DBG | \"SATA-ImageUUID-1-0\"=\"0c13f050-288e-4f46-aa81-d6631df91894\"\r\n\t(default) DBG | \"SATA-2-0\"=\"none\"\r\n\r\n\t…\r\n\t(default) DBG | natnet1=\"nat\"\r\n\t(default) DBG | macaddress1=\"080027CA8B47\"\r\n\t(default) DBG | cableconnected1=\"on\"\r\n\t(default) DBG | nic1=\"nat\"\r\n\t(default) DBG | nictype1=\"82540EM\"\r\n\t(default) DBG | nicspeed1=\"0\"\r\n\t(default) DBG | mtu=\"0\"\r\n\t(default) DBG | sockSnd=\"64\"\r\n\t(default) DBG | sockRcv=\"64\"\r\n\t(default) DBG | tcpWndSnd=\"64\"\r\n\t(default) DBG | tcpWndRcv=\"64\"\r\n\t(default) DBG | nic2=\"none\"\r\n\t(default) DBG | nic3=\"none\"\r\n\t(default) DBG | nic4=\"none\"\r\n\t(default) DBG | nic5=\"none\"\r\n\t(default) DBG | nic6=\"none\"\r\n\t(default) DBG | nic7=\"none\"\r\n\t(default) DBG | nic8=\"none\"\r\n\t(default) DBG | hidpointing=\"ps2mouse\"\r\n\t(default) DBG | hidkeyboard=\"ps2kbd\"\r\n\t(default) DBG | uart1=\"off\"\r\n\t(default) DBG | uart2=\"off\"\r\n\t(default) DBG | uart3=\"off\"\r\n\t(default) DBG | uart4=\"off\"\r\n\t(default) DBG | lpt1=\"off\"\r\n\t(default) DBG | lpt2=\"off\"\r\n\t(default) DBG | audio=\"none\"\r\n\t(default) DBG | clipboard=\"disabled\"\r\n\t(default) DBG | draganddrop=\"disabled\"\r\n\t(default) DBG | vrde=\"off\"\r\n\t(default) DBG | usb=\"off\"\r\n\t(default) DBG | ehci=\"off\"\r\n\t(default) DBG | xhci=\"off\"\r\n\t(default) DBG | SharedFolderNameMachineMapping1=\"hosthome\"\r\n\t(default) DBG | SharedFolderPathMachineMapping1=\"/home\"\r\n\t(default) DBG | vcpenabled=\"off\"\r\n\t(default) DBG | vcpscreens=0\r\n\t(default) DBG | vcpfile=\"/home/ubuntu/.docker/machine/machines/default/default/defa\r\n\tult.webm\"\r\n\t(default) DBG | vcpwidth=1024\r\n\t(default) DBG | vcpheight=768\r\n\t(default) DBG | vcprate=512\r\n\t(default) DBG | vcpfps=25\r\n\t(default) DBG | GuestMemoryBalloon=0\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | Searching for hostonly interface for IPv4: 192.168.99.1 and Mask: f\r\n\tfffff00\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage list hostonlyifs\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | Not found\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage hostonlyif create\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | Interface 'vboxnet0' was successfully created\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage list hostonlyifs\r\n\t(default) DBG | STDOUT:\r\n\t(default) Found a new host-only adapter: \"vboxnet0\"\r\n\t(default) DBG | Name:            vboxnet0\r\n\t(default) DBG | GUID:            786f6276-656e-4074-8000-0a0027000000\r\n\t(default) DBG | DHCP:            Disabled\r\n\t(default) DBG | IPAddress:       192.168.56.1\r\n\t(default) DBG | NetworkMask:     255.255.255.0\r\n\t(default) DBG | IPV6Address:\r\n\t(default) DBG | IPV6NetworkMaskPrefixLength: 0\r\n\t(default) DBG | HardwareAddress: 0a:00:27:00:00:00\r\n\t(default) DBG | MediumType:      Ethernet\r\n\t(default) DBG | Status:          Down\r\n\t(default) DBG | VBoxNetworkName: HostInterfaceNetworking-vboxnet0\r\n\t(default) DBG |\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage hostonlyif ipconfig vboxnet0 --ip 192.\r\n\t168.99.1 --netmask 255.255.255.0\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage list dhcpservers\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | NetworkName:    HostInterfaceNetworking-vboxnet0\r\n\t(default) DBG | IP:             192.168.99.6\r\n\t(default) DBG | NetworkMask:    255.255.255.0\r\n\t(default) DBG | lowerIPAddress: 192.168.99.100\r\n\t(default) DBG | upperIPAddress: 192.168.99.254\r\n\t(default) DBG | Enabled:        Yes\r\n\t(default) DBG |\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | Removing orphan DHCP servers...\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage list hostonlyifs\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | Name:            vboxnet0\r\n\t(default) DBG | GUID:            786f6276-656e-4074-8000-0a0027000000\r\n\t(default) DBG | DHCP:            Disabled\r\n\t(default) DBG | IPAddress:       192.168.99.1\r\n\t(default) DBG | NetworkMask:     255.255.255.0\r\n\t(default) DBG | IPV6Address:\r\n\t(default) DBG | IPV6NetworkMaskPrefixLength: 0\r\n\t(default) DBG | HardwareAddress: 0a:00:27:00:00:00\r\n\t(default) DBG | MediumType:      Ethernet\r\n\t(default) DBG | Status:          Up\r\n\t(default) DBG | VBoxNetworkName: HostInterfaceNetworking-vboxnet0\r\n\t(default) DBG |\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | Adding/Modifying DHCP server \"192.168.99.6\"...\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage list dhcpservers\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | NetworkName:    HostInterfaceNetworking-vboxnet0\r\n\t(default) DBG | IP:             192.168.99.6\r\n\t(default) DBG | NetworkMask:    255.255.255.0\r\n\t(default) DBG | lowerIPAddress: 192.168.99.100\r\n\t(default) DBG | upperIPAddress: 192.168.99.254\r\n\t(default) DBG | Enabled:        Yes\r\n\t(default) DBG |\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage modifyvm default --nic2 hostonly --nic\r\n\ttype2 82540EM --nicpromisc2 deny --hostonlyadapter2 vboxnet0 --cableconnected2 on\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage modifyvm default --natpf1 delete ssh\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | VBoxManage: error: Code NS_ERROR_INVALID_ARG (0x80070057) - Invalid\r\n\t argument value (extended info not available)\r\n\t(default) DBG | VBoxManage: error: Context: \"RemoveRedirect(Bstr(ValueUnion.psz).ra\r\n\tw())\" at line 1767 of file VBoxManageModifyVM.cpp\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage modifyvm default --natpf1 ssh,tcp,127.\r\n\t0.0.1,41915,,22\r\n\t(default) DBG | STDOUT:\r\n\t(default) DBG | STDERR:\r\n\t(default) DBG | COMMAND: /usr/bin/VBoxManage startvm default --type headless\r\n\r\n"}}