Can NOT setup Vagrant env

Hi MongoDB,

I had difficulty to set up the vagrant environment.

I downloaded both VirtualBox 6.1 and 6.0.16.

Both have following errors:
D:\LUY_PRIVATE\2020\mongodb_m103_cluster_admin\m103\m103-vagrant-env>vagrant status
Current machine states:

mongod-m103 poweroff (virtualbox)

The VM is powered off. To restart the VM, simply run vagrant up

D:\LUY_PRIVATE\2020\mongodb_m103_cluster_admin\m103\m103-vagrant-env>vagrant up
Bringing machine ‘mongod-m103’ up with ‘virtualbox’ provider…
==> mongod-m103: 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: E_FAIL
VBoxManage.exe: error: Failed to create the host-only adapter
VBoxManage.exe: error: SetupDiCreateDeviceInfo failed (0x00000005)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage.exe: error: Context: “enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)” at line 94 of file VBoxManageHostonly.cpp

Please help.

Thanks a lot,

There was another “hostonlyif” probelm that we dealt with recently, but your stack trace is slightly different and might be a permissions issue.

Have a look at post #4 of the aforementioned thread and share the screenshots of the more detailed error message you get from doing it manually.

1 Like