MAC: vagrant up : keep getting error - VBoxManage: error: Failed to create the host-only adapter

-1

i am keep getting following error when trying to up my vm with vagrant. I installed vagrant on my mac and trying out to bringup nagois vm setup up.

vagrant config file contains following

enter code here


Vagrant.configure("2") do |config|
   config.vm.define "nagios" do |nagios|
     nagios.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
     nagios.vm.network "private_network", ip: "192.168.140.10"
     nagios.vm.synced_folder "nagios/", "/usr/local/nagios/etc"
     nagios.vm.synced_folder "nagiosgraph/", "/usr/local/nagiosgraph/etc"
     nagios.vm.box = "bento/ubuntu-16.04"
end

==> web: 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

vagrant
virtualbox
nagios
vagrantfile
vagrant-provision
asked on Stack Overflow May 20, 2020 by user7180655

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0