VBoxManage: error: Failed to create the host-only adapter

==> database: 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 HostNetworkInterfaceWrap, interface IHostNetworkInterface

VBoxManage: error: Context: “RTEXITCODE handleCreate(HandlerArg *)” at line 94 of file VBoxManageHostonly.cpp

Hi @jangid,

For resolving this error you need to disable the Secure Boot on your machine.

Please follow these steps to disable Secure Boot:

  • Click simultaneously the shortcut Restart + Shift key.
  • Click Troubleshoot → Advanced options → Start-up Settings → Restart.
  • Click repeatedly the F10 key (BIOS setup), before the “Startup Menu” opens.
  • Go to Boot Manager and disable the option Secure Boot. …
  • Save the changes and reboot.

I hope it helps!!

Please let me know, if you have any questions.


1 Like