Vagrant:NS_ERROR_FAILURE
Vagrant:NS_ERROR_FAILURE
環境:macOS11.0.1
1. 前言
macOS10.15.7升級最新的11.0.1過後,使用Vagrant建立CentOS7虛擬機器啟動提示如下錯誤。
You're running an up-to-date version of Vagrant!
yimt@MacBook-Pro centos7-docker % vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "517d8765-baba-4661-8aef-8f87cee74139", "--type", "headless"]
Stderr: VBoxManage: error: The virtual machine 'centos7-docker_default_1605406732336_15153' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
2. 解決方法
2.1. 重啟VirtualBox
# 重啟命令
sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart
# 提示
Loading VBoxDrv.kext
Extension with identifiers org.virtualbox.kext.VBoxNetFlt,org.virtualbox.kext.VBoxNetAdp,org.virtualbox.kext.VBoxDrv,org.virtualbox.kext.VBoxUSB not approved to load. Please approve using System Preferences.
Error: Failed to load org.virtualbox.kext.VBoxDrv
Loading VBoxUSB.kext
Extension with identifiers org.virtualbox.kext.VBoxDrv,org.virtualbox.kext.VBoxNetFlt,org.virtualbox.kext.VBoxNetAdp,org.virtualbox.kext.VBoxUSB not approved to load. Please approve using System Preferences.
Error: Failed to load org.virtualbox.kext.VBoxUSB
Loading VBoxNetFlt.kext
Extension with identifiers org.virtualbox.kext.VBoxNetAdp,org.virtualbox.kext.VBoxDrv,org.virtualbox.kext.VBoxNetFlt,org.virtualbox.kext.VBoxUSB not approved to load. Please approve using System Preferences.
Error: Failed to load org.virtualbox.kext.VBoxNetFlt
Loading VBoxNetAdp.kext
Extension with identifiers org.virtualbox.kext.VBoxUSB,org.virtualbox.kext.VBoxDrv,org.virtualbox.kext.VBoxNetAdp,org.virtualbox.kext.VBoxNetFlt not approved to load. Please approve using System Preferences.
Error: Failed to load org.virtualbox.kext.VBoxNetAdp
Executing: /usr/bin/kmutil unload -b org.virtualbox.kext.VBoxNetAdp
Executing: /usr/bin/kmutil unload -b org.virtualbox.kext.VBoxNetFlt
Executing: /usr/bin/kmutil unload -b org.virtualbox.kext.VBoxUSB
Executing: /usr/bin/kmutil unload -b org.virtualbox.kext.VBoxDrv
Fatal error: VirtualBox
2.2. 檢查重啟失敗提示
不同原因可能提示不同按照自己失敗的原因去查詢解決方案
Please approve using System Preferences.
提示需要去系統首選項授權,也就是:系統偏好設定->安全與隱私->通用。裡面有提示需要允許VirtualBox執行一些特殊操作,我這裡面允許過後是提示需要重啟,重啟完成就可以正常操作。
相關文章
- Vagrant for EmacsMac
- Vagrant Documentation
- 使用Vagrant(一):搭建Vagrant執行環境
- Vagrant簡介
- Vagrant 總結
- Vagrant Vs, DockerDocker
- vagrant命令彙總
- Vagrant 環境搭建
- Vagrant (二) - 日常操作
- Vagrant詳細教程
- vagrant 相關命令
- vagrant打包分發
- Vagrant 入門指南
- vagrant使用簡介
- Discover Vagrant Boxes
- Vagrant (一) - 基本知識
- Vagrant (三) - 網路配置
- Vagrant 搭建 CentOS 環境CentOS
- vagrant 常用命令
- Vagrant常用命令
- mac下安裝vagrantMac
- 【Vagrant】建立PG15
- vagrant介紹及使用
- Vagrant 在 Windows 下的使用Windows
- Vagrant 利用代理加速下載
- Vagrant phpstorm xdebug 配置PHPORM
- Vagrant package 打包 Homestead boxPackage
- Homestead Vagrant 版本問題
- Vagrant 安裝ubuntu 16.04Ubuntu
- MAC 下 Vagrant 安裝 DokkuMac
- 使用 Vagrant 快速搭建 CentOS7CentOS
- Vagrant 開啟 smb 檔案共享
- Vagrant box 命令彙總彙總
- Kubernetes叢集搭建(vagrant)
- 如何安裝並設定 Vagrant
- Vagrant 中配置區域網埠
- 在Mac下安裝使用VagrantMac
- Vagrant的SSH連線小技巧