VirtualBox

Opened 7 years ago

Last modified 7 years ago

#16698 closed defect

Stderr: VBoxManage: error: The host network interface named 'vboxnet3' could not be found — at Initial Version

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

Description

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 (0)

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy