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
- Vagrant Documentation
- Discover Vagrant Boxes
- Vagrant簡介
- Vagrant Vs, DockerDocker
- Vagrant 總結
- Vagrant詳細教程
- Vagrant phpstorm xdebug 配置PHPORM
- vagrant命令彙總
- vagrant 相關命令
- Vagrant 環境搭建
- Vagrant 的基本使用
- Vagrant (二) - 日常操作
- Vagrant 入門指南
- vagrant介紹及使用
- 【Vagrant】建立PG15
- Vagrant 搭建 CentOS 環境CentOS
- VirtualBox與Vagrant的使用
- Kubernetes叢集搭建(vagrant)
- Vagrant package 打包 Homestead boxPackage
- vagrant 常用命令
- Homestead Vagrant 版本問題
- Vagrant常用命令
- Vagrant (一) - 基本知識
- Vagrant (三) - 網路配置
- Vagrant (四) - Box的用法
- Vagrant 遇到的問題
- Vagrant 安裝ubuntu 16.04Ubuntu
- vagrant up 啟動超時
- Vagrant 利用代理加速下載
- Vagrant 在 Windows 下的使用Windows
- Vagrant : SSH auth method: private key
- vagrant & centos & phpstorm & xdebug 除錯CentOSPHPORM除錯
- Vagrant 新增 root 使用者
- MAC 下 Vagrant 安裝 DokkuMac
- 不用 Vagrant SSH 登入 Homestead
- Vagrant的SSH連線小技巧
- 用 Ansible 來交付 Vagrant 例項