Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
OrganizationAdvent CalendarQiitadon (β)
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

MacOS MojaveでVirtualBoxがインストールできないときの対策

More than 1 year has passed since last update.




  • MacBookPro corei7 16GB 512GB
  • macOS 10.14.5 Mojave


  1. VirtualBoxがインストールできない。
  2. インストールできてもvagrant up できない。


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
mbp:MyCentOS kawahara$ vagrant ssh
VM must be running to open SSH connection. Run `vagrant up`
to start the virtual machine.
mbp:MyCentOS kawahara$ vagrant status
Current machine states:

default                   aborted (virtualbox)

The VM is in an aborted state. This means that it was abruptly
stopped without properly closing the session. Run `vagrant up`
to resume this virtual machine. If any problems persist, you may
have to destroy and restart the virtual machine.
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=500,gid=500 vagrant /vagrant

The error output from the command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device




  • Macのセキュリティが厳しくてVirtualBoxインスコできひんやん!
  • なんやて!そんならセキュリティガバガバにして強制インスコや!
  • さすがにそれはやりすぎやろ!
  • せや!オラクルさんだけ特別に通行証渡したらええやん?


  1. Macをセーフモードで起動。(⌘+R押しっぱなし)
  2. メニューバーからターミナルを起動。
  3. ターミナルで下記のコードを入力しEnter。
  4. Macを通常モードで再起動。
spctl kext-consent add VB5E2TV963



Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
フリーランスエンジニア。 バックエンド: Ruby, RailsAPI, RSpec フロントエンド: JavaScript, Vue, Jest データベース: MySQL クラウド: AWS コンテナ: Docker・docker-compose IaC: Terraform CI/CD: CircleCI


No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
Help us understand the problem. What is going on with this article?