Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VBoxManage.exe: error: Invalid NIC number #7417

Closed
cdreier opened this issue Jun 10, 2016 · 22 comments · Fixed by #7419
Closed

VBoxManage.exe: error: Invalid NIC number #7417

cdreier opened this issue Jun 10, 2016 · 22 comments · Fixed by #7419

Comments

@cdreier
Copy link

cdreier commented Jun 10, 2016

any help is much appreciated!

Vagrant version

Vagrant 1.8.3

Host operating system

windows 10

Guest operating system

tried diffrent boxes, ubuntu and mint

Vagrantfile

default vagrant file, with vagrant init

Debug output

$ $ vagrant.exe up
==> default: Checking if box 'janihur/ubuntu-1404-desktop' is up to date...
==> default: Clearing any previously set network interfaces...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["modifyvm", "60a76137-2c0e-46ab-a50e-7a37a6865051", "--nic2", "none", "--nic3", "none", "--nic4", "none", "--nic5", "none", "--nic6", "none", "--nic7", "none", "--nic8", "none", "--nic9", "none", "--nic10", "none", "--nic11", "none", "--nic12", "none", "--nic13", "none", "--nic14", "none", "--nic15", "none", "--nic16", "none", "--nic17", "none", "--nic18", "none", "--nic19", "none", "--nic20", "none", "--nic21", "none", "--nic22", "none", "--nic23", "none", "--nic24", "none", "--nic25", "none", "--nic26", "none", "--nic27", "none", "--nic28", "none", "--nic29", "none", "--nic30", "none", "--nic31", "none", "--nic32", "none", "--nic33", "none", "--nic34", "none", "--nic35", "none", "--nic36", "none"]

Stderr: VBoxManage.exe: error: Invalid NIC number 9
VBoxManage.exe: error: Invalid NIC number 10
VBoxManage.exe: error: Invalid NIC number 11
VBoxManage.exe: error: Invalid NIC number 12
VBoxManage.exe: error: Invalid NIC number 13
VBoxManage.exe: error: Invalid NIC number 14
VBoxManage.exe: error: Invalid NIC number 15
VBoxManage.exe: error: Invalid NIC number 16
VBoxManage.exe: error: Invalid NIC number 17
VBoxManage.exe: error: Invalid NIC number 18
VBoxManage.exe: error: Invalid NIC number 19
VBoxManage.exe: error: Invalid NIC number 20
VBoxManage.exe: error: Invalid NIC number 21
VBoxManage.exe: error: Invalid NIC number 22
VBoxManage.exe: error: Invalid NIC number 23
VBoxManage.exe: error: Invalid NIC number 24
VBoxManage.exe: error: Invalid NIC number 25
VBoxManage.exe: error: Invalid NIC number 26
VBoxManage.exe: error: Invalid NIC number 27
VBoxManage.exe: error: Invalid NIC number 28
VBoxManage.exe: error: Invalid NIC number 29
VBoxManage.exe: error: Invalid NIC number 30
VBoxManage.exe: error: Invalid NIC number 31
VBoxManage.exe: error: Invalid NIC number 32
VBoxManage.exe: error: Invalid NIC number 33
VBoxManage.exe: error: Invalid NIC number 34
VBoxManage.exe: error: Invalid NIC number 35
VBoxManage.exe: error: Invalid NIC number 36

Expected behavior

box should start

Actual behavior

a lot of invalid NIC numbers

Steps to reproduce

  1. vagrant init choose/abox
  2. vagrant up

References

#6125
cambridge-healthcare/hi_sinatra-docker#5

@sethvargo
Copy link
Contributor

Hi @cdreier

Thank you for opening an issue. Could you please share the complete debug output as a GitHub gist? What version of VirtualBox are you using?

@cdreier
Copy link
Author

cdreier commented Jun 10, 2016

Hi @sethvargo

thanks a lot for your fast response!

i use a fresh install from virtual box, version 5.0.20 r106931

and my complete debug output: https://gist.github.com/cdreier/9b5beb38473e9221dfe71ad04b58f73b

also i tried the git bash, cmd and cmd as admin, everywhere the same issue

@apestov
Copy link

apestov commented Jun 10, 2016

Confirm the problem. It is reproduced with Windows10/Vagrant 1.8.3/VirtualBox 5.0.20 and hashicorp/precise64 box.

Looks like it is caused by the recent change "Set maximum network adapters to 36 [GH-7293, GH-7286]". Indeed if change back max_network_adapters from 36 to 8 at C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.8.3\plugins\providers\virtualbox\driver\base.rb it starts successfully.

@jasongerard
Copy link

@apestov This fixed my issue as well.

@cdreier
Copy link
Author

cdreier commented Jun 11, 2016

thanks a lot for you fast help! everything is working again :-)

@Steve-MP
Copy link

@apestov Wow, thanks for finding a solution so quickly! I had the same problem on the same setup as you and your solution corrected it.

@alexcwatt
Copy link

@apestov Thanks! I am just getting started with Vagrant today and ran into this issue too. It's great to have it working!

@zhenkyle
Copy link

@apestov Thanks! It's working for me.

@hyamamoto
Copy link

@apestov thanks, my problem on win10 also went away after changing a value of max_network_adapters.

  • virtualbox 5.0.20 r106931
  • vagrant 1.8.3

@rthideaway
Copy link

same problem with ubuntu/xenial64 and other boxes as well, the update of vagrant totally killed our workflow, we needed to downgrade immediatelly for the time being

@majkinetor
Copy link

I confirm that changing from 36 to 8 does the job - Win7, vagrant 1.8.3, vbox 5.0.20

@gregruth
Copy link

Fixed on Win10 for me too

@Namax0r
Copy link

Namax0r commented Jun 13, 2016

@apestov your solution fixed the issue for me on:
Windows 7
Vagrant 1.8.3
VirtualBox-5.0.20 r106931

@virgofx
Copy link

virgofx commented Jun 14, 2016

Please release new version

@kushal25
Copy link

The fix worked for me too. Thanks!!

@apestov
Copy link

apestov commented Jun 14, 2016

@sethvargo Thank you for the prompt Vagrant 1.8.4 release with that issue fixed!

@vmartsen-amplify
Copy link

Worked for me! Thanks a lot!

@vitaliy-zinchenko
Copy link

It helped me. Thanks!

@rthideaway
Copy link

many many many thanks for new release! it fixed all the issues! even nfs mounting under windows working again!

@Bodom78
Copy link

Bodom78 commented Jun 14, 2016

Ran into this issue after a fresh install of Windows. Changing max_network_adapters to 8 fixes this issue for me as well.

@kalapakim
Copy link

Worked for me, thanks!!

@ghost
Copy link

ghost commented Apr 3, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.