213

I upgraded my Windows 10 to the last update yesterday and now, when I launch vagrant up command, I get this error :

==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'poweroff' state. Please verify everything is configured
properly and try again.

If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the
VirtualBox GUI is open.

The primary issue for this error is that the provider you're using
is not properly configured. This is very rarely a Vagrant issue.

When I try with GUI I have this error :

Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter' (VERR_INTNET_FLT_IF_NOT_FOUND).
Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND).

I have re-installed VirtualBox 5.0.10 and the extension pack, reconfigured Host-Only Ethernet Adapter, but always the same error...

Any ideas?

callmemath
  • 8,185
  • 4
  • 37
  • 50

24 Answers24

512

I found a solution

  1. Open Windows Network Connections
  2. Right click on VirtualBox Host only adapter that created
  3. Choose properties
  4. Check "VirtualBox NDIS6 Bridged Networking driver"
  5. disable and Enable the adapter

Image

JustMe
  • 6,065
  • 3
  • 19
  • 17
  • 35
    In my case it was just disabled. – StalkAlex Nov 21 '15 at 16:55
  • 8
    I cannot believe it - was searching for this for hours. Was disabled for me, too. (Now, Genymotion as well as Xamarin Android Player can correctly create the interface. Somehow this broke during an update, and reinstalling VBox did not fix it.) Many thanks! – Andreas Reiff Nov 25 '15 at 14:07
  • 1
    I bet you get a gold badge, for having not accepted answer :) However, you might not use Bridged adapter at all and this solution is not so universal. +1 for not needing reinstall. – venimus Jan 07 '16 at 15:10
  • It did not help me, moreover, it broke my chrome. To get Chrome working I updated the VirtualBox and rebooted computer. Chrome is working now again as it was, Edge - is not working. – Yevgeniy Afanasyev Mar 06 '16 at 23:43
  • 1
    It is amazing that 5 months later this issue still keeps coming back after every Virtualbox update. You would think that by now they worked out a solution... – mastazi Apr 14 '16 at 02:23
  • Strange, when I installed 5.1.14, it is already disabled, and enabling it is the solutions. – Kosmas Jan 23 '17 at 06:15
  • I tried using Kitematic etc. none of these worked. Then I tried this .Thanks a ton!! – Ashutosh Mar 04 '17 at 18:41
  • 1
    The only thing that worked for me was reinstall virtual box – Jason Joslin Aug 21 '17 at 23:56
  • In my laptop there is no built in Ethernet port. So after installing VM it won't adding host only adapter to adapter list. Then I tried it with my other laptop which having Ethernet port. It worked ! Because of this I couldn't run genemotion. If someone find solution for this let me know. – sashiksu May 01 '19 at 19:56
  • Worked for me, just in case if others are in the same boat as I am. I had to perform the above steps in Hyper-V virtual Ethernet Adapter, and other adapters like VirualBox host-only network#3 and Ethernet 5 - VirtualBox Host-Only Ethernet Adapter(names might differ in your machine)... hope it helps. – Pavan_Obj Aug 20 '19 at 05:12
  • This is helpful. Worked with windows 10 and Oracle VM virtualbox 6.0.10 perfectly – Darshana Oct 24 '19 at 01:49
  • Worked for me (Windows 10 with VirtualBox 6.1.0 r135406). – HarleyDavidson Jan 10 '20 at 13:14
  • Apparently this also happens when you install virtualbox but don't restart and try to open a VM. – amrit May 06 '20 at 22:04
  • 1
    It works, but it seems that we also have to disable and reenable the Host-Only adapter. – styshoo May 15 '20 at 06:05
  • After I upgraded my win 10 to win 11 I got this error when I ran vagrant up. Your solution worked fine. tks – Jader Feb 13 '22 at 12:08
  • 1
    I had this problems after a windows update. For me, disabling, the enabling the adapter was all that I needed. – Jay Elston Jun 02 '22 at 16:34
  • Same here after removing plenty of virtual host adapter created by VirtualBox. Thank you very much for your trick : disabling, then re-enabling was necessary for me – sdespont Jan 05 '23 at 19:54
  • I was using ChatGPT for over a day and it could not solve this issue where the solution was so simple. Thanks – Abhishek Jun 08 '23 at 20:54
146

There is a known issue with the new NDIS6 driver, you can install it to use the NDIS5 driver

Try reinstalling it with a parameter (Run as administrator)

> VirtualBox-5.0.11-104101-Win.exe -msiparams NETWORKTYPE=NDIS5

This worked for me.

Update: Newer versions made it easier to pick the NDIS driver from within the installation wizard - just pick NDIS5 when asked.

ref: https://www.virtualbox.org/manual/ch02.html#install-win-performing

venimus
  • 5,907
  • 2
  • 28
  • 38
  • 1
    I've tried everything in this post and the only thing that worked for me was to downgrade VirtualBox to 4.2.22. Even 4.2.36 didn't work. S**t, lost a lot of time to this issue. – Rav Dec 07 '15 at 19:09
  • 1
    After following these steps, I received the error "Nonexistant host networking interface, name 'VirtualBox NDIS 6.0 Miniport Driver'. I needed to then manually remove the associated Network adapters. – Joel Skrepnek Dec 08 '15 at 22:55
  • 1
    This did the trick for me too. Was having issues with Xamarin Android Player, which installs VM Ware for you – Thomas Hagström Jan 13 '16 at 18:15
  • 1
    This is the real solution. I burned 4 hours of my time for this issue. I can eat my snacks now. Thank you! – jjz Mar 07 '16 at 15:23
  • 1
    Thanks much :) I struggled for last 2 days to bring it back. I Have network adapter NDIS6. This was not at all working. So reinstalled VBox manually with option NDIS5 and it started working. My question is, even though my network device shown as NDIS6, I use NDIS5 during install. Does it cause any problems ? – Ashoka K Jun 16 '16 at 07:35
  • I had the same issue when trying to get started with fabric8. Only this solution helped me with VirtualBox-5.0.22-108108-Win on Windows 8.1. – Zhaidarbek Jun 29 '16 at 05:22
  • helped me to solve the issue with 5.0.24r108355 on Win8 – paulus Jul 11 '16 at 07:01
  • Worked for me with VirtualBox 5.1.2 on Windows 7. Thanks a lot, dude! – gadamiak Aug 03 '16 at 19:58
  • 1
    Thank you... I am on VirtualBox 5.1.6 on Windows 7. This works! – code4kix Oct 04 '16 at 20:49
  • 1
    Don't forget **Run as administrator** CMD – Iman Marashi Mar 22 '17 at 21:41
51
  • Open Network and Sharing Center and go to the Change adapter settings in the sidebar.

  • Right-click on the host-only adapter in the list of adapters and then Configure button -> Driver tab -> Update driver button.

  • Select Browse my computer ... and in the next dialog select Let me pick .... You should see the list with just host-only driver in it.

  • Select it and click next. After the driver is updated, please try using host-only network in a VM again.

Pallav Jha
  • 3,409
  • 3
  • 29
  • 52
Abhishek Prusty
  • 862
  • 9
  • 15
38

I tried the above options, but in vain. Eventually I uninstalled docker-toolbox (1.11.x) and virtualbox(5.16.x) and CHECKED the following option in the docker-toolbox installer GUI (by default the NDIS5 option was unchecked)

NDIS5 driver option unchecked

Also the virtualadapter in network connections had "Bridge Networking Driver" option UNCHECKED and that worked fine for me

Bridge Networking Driver option unchecked

machzqcq
  • 1,029
  • 13
  • 15
  • Works, Thanks a lot, I too have encountered this problem when trying to run Docker tools. Maybe it should be tagged as docker as well? – GenEric35 Apr 28 '16 at 14:43
  • I had to do a couple of things before I was able to select this - first, manually install the VBox network driver .infs (browse to \Drivers\network, and install all the infs in the subfolders), and then second, I had to click the 'Install' button in the above dialog to manually add the VirtualBox (...) Networking Driver service (this is Windows 10). – spronkey Jun 16 '16 at 12:59
  • This worked in my case. I tried disabling/reenabling the NDIS6 driver as suggested above, but it didn't help. What I ended up doing was uninstall VBox, grab Docker Toolbox 1.11.2 from GitHub (since the current installer 1.12.1 removes the checkbox options from the setup), and reinstall VBox with the NDIS5 option checked. Thanks! – McGlothlin Oct 06 '16 at 23:44
  • 1
    I did just this but it didn't help me; until I found out that I also need to delete previously created network adapters. Also, don't forget to uninstall both Docker Toolbox and VirtualBox. Removing Docker Toolbox will not also remove VirtualBox. +1 – Gajotres Oct 12 '16 at 14:07
  • Thank you very much. Thanks to this solution, I was able to leave the office. Thank you again. – byzz Jun 23 '20 at 09:59
32

The same error occurred when I updated Windows. Tried everything. Nothing worked.

Finally, went to Device Manager-> Network Adapters Disabled and enabled the Virtualbox Host only Adapter

And it worked!

12

Restart your PC


Sadly, https://stackoverflow.com/a/33733454/2191572 did not work for me in Windows 10 x64 with VirtualBox 5.2.6

The box was already checked and a simple restart fixed it.

After years of telling people to try restarting, I failed to follow my own golden advice; face, meet palm.

MonkeyZeus
  • 20,375
  • 4
  • 36
  • 77
7

I had the same problem after upgrading from Windows 7 to Windows 10. Tried all the popular answers which did not work. Finally, I understood that Windows had changed the name of the adapter. Virtual Box was configured to use Realtek PCIe GBE Family Controller while device manager had this as Realtek PCIe GBE Family Controller #2. Selecting proper controller fixed the problem.

enter image description here enter image description here

user1921819
  • 3,290
  • 2
  • 22
  • 28
  • Thank you! Last image helped a lot. I was looking the adaptor in Windows networks settings but adapter#2 was hidden, so I cannot restart it. I found it in device manager, unable-enable it and worked! – jjsantoso Apr 17 '21 at 18:47
6

Uninstall Virtualbox and install the latest version, at the time of this answer it's 5.12. I installed Vagrant which automatically installed Virtualbox 5.10. I ran into this issue after installing the Windows 1511 update, uninstalling the Vagrant provided Virtualbox and installing the latest version fixed this.

Jared
  • 39,513
  • 29
  • 110
  • 145
4

The two answers did not solve my issue but combining them, I was able to solve the problem. My situation was I was trying to install and run Docker on a Windows 7 pc and kept getting an error: "Looks like something went wrong... Press any key to continue..."

After much digging, I was able to relate the issue to the host network adapter that was created by Docker. I had the NDIS6 driver installed but it was enabled. I tried to uncheck, disable, recheck, enable etc but it did not help.

I then uninstalled VB and reinstalled as per the first answer to get the NDIS5 driver. This was unchecked, so checking it I was able to move past this issue.

csaket
  • 41
  • 3
4

I just ran into this problem with VirtualBox 5.1 on Windows 8. It turns out the problem was with the Kaspersky virus protection I have installed. It added the "Kaspersky Anti-Virus NDIS 6 Filter" on the host-only adapter on the windows side. When I disabled that filter the VM started properly:

host-only network adapter properties

rdolson
  • 71
  • 1
  • 1
    In my case it was Avast .. and I uninstalled it from that properties window.. now its fine and working – Ehsan Waris Mar 06 '17 at 14:23
  • Thank you for pointing to an antivirus! In my case it was Kaspersky Secure Connection tool installed (but disabled). After I uninstalled it, the problem was solved. – Serge S. Oct 22 '20 at 06:54
4

ON WINDOWS 10 After spending 3 frustrating hours of uninstalling & re-installing minikube, virtualbox that did not resolve the problem, I saw the network adapters in my Control Panel->Network and Internet->Network Connections window. There were 3 enabled "VirtualBox Host-Only Ethernet Adapter" ones. I disabled them all. enter image description here Then on services screen (run->services.msc) find the Tcp/Ip NetBIOS helper and restart it.

A new network adapter with a proper name like "VirtualBox Host-Only Network #3" will be created. Now type: minikube delete mnikube start It worked for me. hope It helped someone! I hate this :)

ylev
  • 2,313
  • 1
  • 23
  • 16
3

I have worked around for a while, all you need to do is open VirtualBox,

File > Preferences / Network > Host-Only Networks

You will see VirtualBox Host-Only Ethernet Adapter

click on it, and edit.

My IP settings for vagrant VM was 192.168.10.10, you should edit up to your VM IP

Here is my Network settings;

Network Details: Adapter Settings

Network Details: DHCP Server Settings

2

I have Windows 8.1 and had this problem with VirtualBox 5.0.16.105871. I tried every suggestion I found here, virtual box site, and other forums. None worked for me. I had this error when tried to start a VM with host-only interface:

Failed to open a session for the virtual machine LinuxVMDev0.

Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter' (VERR_INTNET_FLT_IF_NOT_FOUND).

Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND).

Result Code: E_FAIL (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

Finally the only solution that worked for me was:

  1. Uninstall 5.0.16
  2. Install version 4.3.36 that did not have this problem (at least in my PC)
  3. Without uninstalling 4.3.36, install version 5.0.16 in the default way

(Always installing as Administrator, i.e. running the installer as administrator).

That worked for me after trying different solution during days.

rodolk
  • 5,606
  • 3
  • 28
  • 34
2

I found a solution for my problem, There was a conflict in my network adapters, I simply disabled the one who appears in the error message, then started again the running command, and a new adapter has been created after many approval messages from windows.

I hope this solution could help in some cases.

Hany Sakr
  • 2,591
  • 28
  • 27
2

If the accepted https://stackoverflow.com/a/33733454/8520387 doesn't work for you, then disable other enabled Ethernet Cards. After this try to run your vagrant script again and it will create a new Network Card for you. For me it was #3

enter image description here

Vedant Pareek
  • 391
  • 3
  • 9
1

My solution was updating VirtualBox.

I first ran into this issue after fresh install of Docker toolbox(v1.12.5) on my Windows 8.1. What worked for me was update of VirtualBox. Then I had the same problem after some Windows Update, and updating VirtualBox fixed the issue again.

annag
  • 101
  • 7
  • I simply updated VirtualBox to (current) version Version 5.2.4 r119785 and the problem went away ... – Calcutta Jan 04 '18 at 10:14
1

Fo me, updating VirtualBox to 5.1.23 fixed the issue. You can download this version for Windows from the official website.

g00glen00b
  • 41,995
  • 13
  • 95
  • 133
Aliaga Aliyev
  • 415
  • 1
  • 6
  • 22
1

In my case I just do :

1- update the Hyper-V config like this picture. enter image description here

2- reboot machine.

3- run virtualbox

4- run vagrant up

Dali
  • 135
  • 2
  • 13
0

For me, disable and enable the network connection wasn't enough to make it work. I had to delete the content of the .docker repository in my home user (c:/Users/your_user/.docker/). After doing that i reinstall Docker Toolbox and VitualBox and use machzqcq tips to check the install virtualbox with NDIS5 driver.

I found the answer here : https://github.com/docker/toolbox/issues/473

Martin Stievenart
  • 275
  • 1
  • 3
  • 14
0

You can try disabling the "VirtualBox NDIS6 Bridged Networking Driver" on all but your actual physical network adapter(s) before attempting to create the VirtualBox host-only adapter again.

See this answer.

maltem-za
  • 1,225
  • 2
  • 16
  • 23
0

After a Windows 10 update my VirtualBox Host-Only Ethernet Adapter was actually gone from the OS' network adapters (view these under Control Panel -> Network and Sharing Center -> Change adapter settings). Had to reinstall VirtualBox to bring that back to the OS.

Then in the newer version of VirtualBox, the host-only adapters are under Global Tools (top right) -> Host Network Manager. Make sure the DHCP Server is enabled for the adapter.

Example config: enter image description here

Voicu
  • 16,921
  • 10
  • 60
  • 69
  • I went into these settings via `File>Host Network Manager`, then I removed and recreated the problematic network. I just let it create with default settings. – Lemmings19 Sep 12 '20 at 07:04
0

I tried every single thing on this page (and thanks everyone!). Nothing worked. After literally hours and hours, I finally got it working.

My problem was that I had no error preceding "something went wrong in step ´Checking status on default´".

This line in the start.sh script failed.

VM_STATUS="$( set +e ; "${DOCKER_MACHINE}" status "${VM}" )"

Running the following line from the Command Prompt worked and returned "Running".

D:\Dev\DockerToolbox\docker-machine.exe status default

So I started following all the fixes in Github link and found the fix.

In the start.sh script, I changed the line

VM_STATUS="$( set +e ; "${DOCKER_MACHINE}" status "${VM}" )"

to

VM_STATUS="$(${DOCKER_MACHINE} status ${VM})"
Milind
  • 2,760
  • 1
  • 16
  • 12
0

Open Control Panel >> Network and Sharing Center. Now click on Change Adapter Settings. Right click on the adapter whose Name or the Device Name matches with VirtualBox Host-Only Ethernet Adapter # 3 and click on Properties. Click on the Configure button.

Now click on the Driver tab. Click on Update Driver. Select Browse my computer for drivers. Now choose Let me pick from a list of available drivers on my computer. Select the choice you get and click on Next. Click Close to finish the update. Now go back to your Terminal/Powershell/Command window and repeat the vagrant up command. It should work fine this time.

https://www.howtoforge.com/setup-a-local-wordpress-development-environment-with-vagrant/

Community
  • 1
  • 1
Sadee
  • 3,010
  • 35
  • 36
0

for me, I had to delete the .virtualbox & .docker folder In my user directory... which worked out fine