Run VirtualBox using Vagrant


I tried to run VirtualBox using Vagrant with the code written in below and it's not working. Can someone tell me how to make it work?

masaakitakane@MBA ~ % cd
masaakitakane@MBA ~ % cd MyVagrant
masaakitakane@MBA MyVagrant % cd MyCentOS
masaakitakane@MBA MyCentOS % vagrant init bento/centos-6.8
`Vagrantfile` already exists in this directory. Remove it before
running `vagrant init`.
masaakitakane@MBA MyCentOS % sed -i '' -e 's/# 
"private_network", ip: ""/ "private_network", 
ip: ""/' Vagrantfile
masaakitakane@MBA MyCentOS % vagrant up
Bringing machine 'default' up with 'virtualbox' provider... ==> default: 
Checking if box 'bento/centos-6.8' version '2.3.4' is up to 
==> 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 
HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 
95 of file VBoxManageHostonly.cpp

masaakitakane@MBA MyCentOS % 
asked on Stack Overflow Jul 19, 2020 by masaaki takane • edited Jul 19, 2020 by Dashrath Mundkar

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0