-
Notifications
You must be signed in to change notification settings - Fork 2k
Creating VirtualBox machine no longer works after rc4 #2136
Comments
Although strangely, I've just tried reverting to rc2 (I couldn't use rc3 due to #2093), but it's still doing it. Strange that I've seen it on both my work machine (yesterday) and my personal laptop (today) after upgrading to rc4 though. Are there any caches stored anywhere other than the |
I am facing similar problem on Only way, I am able to fix it by retstarting the machine to restart VirtualBox service. Also before restarting machine, delete newly created hostonly network. I started using Docker machine recently so canot confirm the behaviour on older versions, but I found this issue on |
I think this problem was faced with earlier builds too. #1996 |
This isn't the same issue as I'm seeing. I only have one Docker Machine, and there aren't any VirtualBox host only network interfaces created. |
@kunalkushwaha @dracan Can you all please both make a gist.github.com of the output of running If you can get it in today, even better as the release is planned for tomorrow :) |
I got an error when this call is issued to VirtualBox: (default) DBG | COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm default --natpf1 delete ssh |
Please find output of |
@kunalkushwaha Please try clearing all host-only networks and attempting the 0.5.0 release when you get a chance. |
It is still reproducible. Steps to reproduce this error.
NOTE: If windows start with fresh boot, Until, windows dont go into sleep mode, this error does not occur. |
Sorry for the huge delay in getting you the output of my command. Below is the debug output. This is with the very latest 1.5.0 version. This was run when I had no machines, I've deleted my One point to note is that the hostonly interface that gets created in virtualbox is called 'VirtualBox Host-Only Ethernet Adapter #3'. I can't find a way of resetting this #3 postfix. I wonder if this is the issue? Is Docker Machine expecting the name without it? The output below suggests that's the case.
|
@nathanleclaire Gist out debug output after upgrading to 0.5 and clearing all host only network interfaces |
Is there anything else I can provide that will help debug this? Or do you have an idea of what it might be and I could investigate further myself? |
For me it helped to update to latest Virtualbox 5.0.10 on my machine and install a fresh copy of the docker toolbox... |
It worked on my machine when I done this, but failed on two of my colleagues machines. Whatever the problem is, it appears to be rather fickle 🎱 |
@rawkode If you could Gist the debug output in the failing cases it would be great. We might not be able to fix it right away but we're always looking for extra information on host system state to add for our tests (which we are currently beefing up). |
https://gist.github.com/gregory/3b3c4768df89adb3780d docker-machine 0.5.1 worked latest version of VirtualBox(5.0.10r104061) |
Having this issue as well. |
@gregory As mentioned in the error line https://gist.github.com/gregory/3b3c4768df89adb3780d#file-debug-docker-machine-L202, you have conflicting / invalid host only interfaces. I'd recommend removing all of them that you can from the VirtualBox GUI -- (in menu bar: VirtualBox => Preferences => Network => Host-only networks). In your case, looks like |
@caleb-allen Please remove any existing machines and post output of |
@nathanleclaire removing the invalid host only interfaces from VirtualBox did the trick. |
Nice to hear @caleb-allen. Maybe in the future we can do so automatically, but I think it's hard to do safely. |
Closing this issue since OP (@dracan) has not checked in for a while. |
I am facing a similar problem. issue #2497 |
Clearing all host-only networks and $HOME/.docker folder does the trick for me. |
I feel rather silly now, but in-case anyone else is daft enough to not realise: This stopped working for me because docker-machine creates VM's on the same subnet as our internal network (192.168.99) - |
I had the same problem followed the suggestion above from @zhangcheng-aa, worked great. |
Hit same problem recreating a machine with same name but more memory. Following advice from @zhangcheng-aa worked for me too. |
@zhangcheng-aa fix did the trick. |
Just adding to the mix here, having tried most things @rawkode's fix worked for me. Windows 10, recently everything broke, and this has got me up and running again. Incidentally, contrary to past experience and lots of comments, having multiple host-only adaptors didn't cause an issue after having created the vm with the So the full command is: |
I get this problem on a regular basis. I delete the docker machine, recreate it, then a few days later the problem reappears. Debug output is here |
FWIW: If you have a VPN client running, try to turn it off and then try. |
As said by Ajeet-Ganga if system is connected to any VPN, first disconnect it and do below If you are using Docker Quickstart Terminal relauch it But that is not the root solution, need to check how it can be resolved infact when its connected to VPN... |
Disconnecting from VPN solved this problem for me. Thanks for the suggestion, @Ajeet-Ganga! |
Are you able to connect infact, when vpn is connected, if so please share fix details i will try with my system |
I'm facing the same issue in Arch Linux with virtualbox 5.1.10 r112026. I share my situation and solution in case anyone still not getting it resolved. First please check your hostonly network, if it does not have any ip address, then you met same problem as me.
In my case, the hostonly network was created but there is no IP address assigned to it, which cause it can not route from host to guest vm. Here is my solution: Add ip address manually to your hostonly network, assume you use default cidr:
and the route will automatically be added:
then docker-machine can connect to the guest vm. Hope it helps. |
Faced the same scenario as @justlaputa (Arch Linux, virtualbox 5.1.22 r115126, docker-machine 0.11.0) however the scenario was a little different for me. Not only was the IP address not assigned, the |
For those with a firewall in place, maybe you'll have to open the port 2376: |
Hi, Client: which is better than before but still it doesn't work.... Please provide any info if you can... |
Since grabbing the latest version (rc4), I now get this output when trying to create a machine ...
(see the first line in the quote above for the command I'm using)
This is on Windows 10, and I've seen this happen on two machines - my work machine, and my personal laptop.
I've tried deleting my entire .docker folder and all VirtualBox machines, but it doesn't make a difference. I don't have any VirtualBox hostonly interfaces other than the default VirtualBox one.
No machines seem to have been created in VirtualBox after this command fails.
The text was updated successfully, but these errors were encountered: