Error while setting up Vagrant box for Bahmni

While installing the varant I encountered the following error. please have a look and let me know what to do next.

vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'bahmni-team/bahmni' could not be found. Attempting to find and install... default: Box Provider: virtualbox default: Box Version: >= 0 ==> default: Loading metadata for box 'bahmni-team/bahmni' default: URL: ==> default: Adding box 'bahmni-team/bahmni' (v0.78.5257.1) for provider: virtualbox default: Downloading: ==> default: Box download is resuming from prior download progress ==> default: Successfully added box 'bahmni-team/bahmni' (v0.78.5257.1) for 'virtualbox'! ==> default: Importing base box 'bahmni-team/bahmni'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'bahmni-team/bahmni' is up to date... ==> default: Setting the name of the VM: bahmni-vagrant_default_1451697118113_34488 ==> 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: ["hostonlyif", "create"] Stderr: 0%... Progress state: NS_ERROR_FAILURE VBoxManage: error: Failed to create the host-only adapter VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterface, interface IHostNetworkInterface VBoxManage: error: Context: "int handleCreate(HandlerArg*, int, int*)" at line 68 of file VBoxManageHostonly.cpp

Hello @puneet1984,

Can you try the following commands to recreate the vagrant box:

> vagrant destroy
> vagrant up

If this doesn’t start properly, can you please let us know which OS are you using, and what is the version of Virtual Box, and version of Vagrant that you have installed?

Can you also try googling for the above error to see if you get some possible solutions (since this seems like a vagrant/virtual box issue).


It was virtual box error. I uninstalled and installed new copy and it’s working now.

1 Like

Thanks for confirming!

@puneet1984 what version of VirtualBox did you reinstall?