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: error: Invalid NIC type 'virtio' specified for NIC 1 #9214

Closed
strakh-alex opened this issue Sep 10, 2020 · 9 comments
Closed

VBoxManage: error: Invalid NIC type 'virtio' specified for NIC 1 #9214

strakh-alex opened this issue Sep 10, 2020 · 9 comments
Labels
co/virtualbox kind/support Categorizes issue or PR as a support question. needs-solution-message Issues where where offering a solution for an error would be helpful os/linux

Comments

@strakh-alex
Copy link

Steps to reproduce the issue:

  1. Fedora 32 VirtualBox
  2. minikube start

Full output of failed command:

Full output of minikube start command used, if not already included:
minikube start
😄 minikube v1.13.0 on Fedora 32
✨ Using the virtualbox driver based on user configuration
👍 Starting control plane node minikube in cluster minikube
🔥 Creating virtualbox VM (CPUs=2, Memory=4000MB, Disk=20000MB) ...
🔥 Deleting "minikube" in virtualbox ...
🤦 StartHost failed, but will try again: creating host: create: creating: /usr/bin/VBoxManage modifyvm minikube --nic1 nat --nictype1 virtio --cableconnected1 on failed:
VBoxManage: error: Invalid NIC type 'virtio' specified for NIC 1

🔥 Creating virtualbox VM (CPUs=2, Memory=4000MB, Disk=20000MB) ...
😿 Failed to start virtualbox VM. Running "minikube delete" may fix it: creating host: create: creating: /usr/bin/VBoxManage modifyvm minikube --nic1 nat --nictype1 virtio --cableconnected1 on failed:
VBoxManage: error: Invalid NIC type 'virtio' specified for NIC 1

❌ Exiting due to GUEST_PROVISION: Failed to start host: creating host: create: creating: /usr/bin/VBoxManage modifyvm minikube --nic1 nat --nictype1 virtio --cableconnected1 on failed:
VBoxManage: error: Invalid NIC type 'virtio' specified for NIC 1

Optional: Full output of minikube logs command:

@afbjorklund
Copy link
Collaborator

Normally it is included... Here is what you get on Ubuntu:

                            [--nic<1-N> none|null|nat|bridged|intnet|hostonly|
                                        generic|natnetwork]
                            [--nictype<1-N> Am79C970A|Am79C973|Am79C960|
                                            82540EM|82543GC|82545EM|
                                            virtio]

So maybe the virtualbox package for Fedora is broken ?

Which version was it ?

@afbjorklund afbjorklund added co/virtualbox os/linux kind/support Categorizes issue or PR as a support question. labels Sep 10, 2020
@afbjorklund afbjorklund changed the title BoxManage: error: Invalid NIC type 'virtio' specified for NIC 1 VBoxManage: error: Invalid NIC type 'virtio' specified for NIC 1 Sep 10, 2020
@afbjorklund
Copy link
Collaborator

Looks similar on Fedora:

                            [--nic<1-N> none|null|nat|bridged|intnet|hostonly|
                                        generic|natnetwork]
                            [--nictype<1-N> Am79C970A|Am79C973|Am79C960|
                                            82540EM|82543GC|82545EM|
                                            virtio]

But the package seems to be missing from the distribution ?
fedora-release-common-32-3.noarch

So just tested with the vendor version (big Download button)
VirtualBox-6.1-6.1.14_140239_fedora32-1.x86_64

https://www.virtualbox.org/

@strakh-alex
Copy link
Author

The VB version is: 6.1.14_RPMFusion r140239
The latest from their repository.
minikube version: v1.13.0

@afbjorklund
Copy link
Collaborator

You can file a bug report with RPMFusion, if you want them to build with "virtio" support.

To get minikube start working, you can use one of the emulated drivers instead:

      --host-only-nic-type='virtio': NIC Type used for host only network. One of Am79C970A, Am79C973, 82540EM, 82543GC, 82545EM, or virtio (virtualbox driver only)
      --nat-nic-type='virtio': NIC Type used for host only network. One of Am79C970A, Am79C973, 82540EM, 82543GC, 82545EM, or virtio (virtualbox driver only)

@afbjorklund
Copy link
Collaborator

afbjorklund commented Sep 10, 2020

Seems to be a small copy/paste typo in the help text there. Oh well.

https://www.virtualbox.org/manual/ch06.html#nichardware

You could also use the kvm2 driver (libvirt)

@poornachandratejasvi
Copy link

even im facing the same error. Can i know how can i fix the issue

@afbjorklund
Copy link
Collaborator

--host-only-nic-type=Am79C973 --nat-nic-type=Am79C973

But please report this rpm bug to the packager (RPMFusion)

@tstromberg tstromberg added the needs-solution-message Issues where where offering a solution for an error would be helpful label Oct 28, 2020
@tstromberg
Copy link
Contributor

Closing as there is a workaround.

@afbjorklund
Copy link
Collaborator

Looking at upstream bugs: https://bugzilla.rpmfusion.org/buglist.cgi?component=VirtualBox&product=Fedora

It seems that it is fixed now: https://bugzilla.rpmfusion.org/show_bug.cgi?id=5747 (in VirtualBox-6.1.16-1.fc32)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/virtualbox kind/support Categorizes issue or PR as a support question. needs-solution-message Issues where where offering a solution for an error would be helpful os/linux
Projects
None yet
Development

No branches or pull requests

4 participants