VirtualBox

Opened 7 years ago

Closed 7 years ago

#16698 closed defect (invalid)

Stderr: VBoxManage: error: The host network interface named 'vboxnet3' could not be found

Reported by: Lucky27 Owned by:
Component: network Version: VirtualBox 5.1.20
Keywords: docker network Cc:
Guest type: Linux Host type: Linux

Description (last modified by Frank Mehnert)

Hi,

I'm trying to run virtualbox and vagrant inside a docker redhat 7 container, I'm using image similar to this https://hub.docker.com/r/blacklabelops/virtualbox/. Using 5.1.20 of virtualbox and vagrant 1.9.3.

I'm getting below error when I try to run vagrant inside container with this setting in Vagrantfile config.vm.network "private_network", ip: "10.0.10.21".

There was an error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.

Command:

["hostonlyif", "ipconfig", "vboxnet3", "--ip", "10.0.10.1", "--netmask", "255.255.255.0"]

Stderr:

VBoxManage: error: The host network interface named 'vboxnet3' could not be found
VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component HostWrap, interface IHost, callee nsISupports
VBoxManage: error: Context: "FindHostNetworkInterfaceByName(Bstr(pszName).raw(), hif.asOutParam())" at line 231 of file VBoxManageHostonly.cpp'''

It works If I remove above setting from vagrantfile..I'm mounting /dev/vboxdrv and /dev/vboxnetctl from host to the container..Could you pls let me know If I need to mount any other files or need to update the container?

Change History (2)

comment:1 by Frank Mehnert, 7 years ago

Description: modified (diff)
priority: blockermajor

comment:2 by Frank Mehnert, 7 years ago

Resolution: invalid
Status: newclosed

Sorry, this bugtracker is about VirtualBox not Vagrant. The above VirtualBox error message says that the host-only network interface vboxnet3 cannot be found. Maybe that interface needs to be created first, I don't know.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use