升级了mac系统后(),vagrant up就报错

vagrant--code NS_ERROR_FAILURE (0x80004005)_vagrant

 dz0400819@MacBook-Pro  ~/Desktop/prometheus/host1  vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/focal64' version '20211026.0.0' is up to date...
==> default: A newer version of the box 'ubuntu/focal64' for provider 'virtualbox' is
==> default: available! You currently have version '20211026.0.0'. The latest is version
==> default: '20220615.0.0'. Run `vagrant box update` to update.
==> 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: Running 'pre-boot' VM customizations...
==> 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", "801c0d76-e4aa-47fd-8a07-ee33d6aa668f", "--type", "headless"]

Stderr: VBoxManage: error: The virtual machine 'host1_default_1655774873312_14466' has terminated unexpectedly during startup because of signal 10
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine


我的处理方法

在vagrantfile中加如下内容

config.vm.provider "virtualbox" do |vb|
vb.gui = true
end

vagrant--code NS_ERROR_FAILURE (0x80004005)_vagrant_02

添加后就能vagrant up了

参考

​https://stackoverflow.com/questions/52689672/virtualbox-ns-error-failure-0x80004005-macos​