看一下,我vagrant 用不了

masterdeMac-mini:centos7 master$ vagrant up

Bringing machine 'default' up with 'virtualbox' provider...

==> default: Importing base box 'centos7'...

==> default: Matching MAC address for NAT networking...

==> default: Setting the name of the VM: centos7_default_1523959353396_31662

==> default: Clearing any previously set forwarded ports...

Vagrant is currently configured to create VirtualBox synced folders with

the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant

guest is not trusted, you may want to disable this option. For more

information on this option, please refer to the VirtualBox manual:


  https://www.virtualbox.org/manual/ch04.html#sharedfolders


This option can be disabled globally with an environment variable:


  VAGRANT_DISABLE_VBOXSYMLINKCREATE=1


or on a per folder basis within the Vagrantfile:


  config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false

==> 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", "57b8db5c-68dc-45ad-9d0c-96e93b43dcd6", "--type", "headless"]


Stderr: VBoxManage: error: The virtual machine 'centos7_default_1523959353396_31662' has terminated unexpectedly during startup with exit code 1 (0x1)

VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine



剑荷
浏览 3677回答 1
1回答

little_newbee

同学你好,我也有这个问题,找到了答案,是新版的mac系统设置的不允许virtualbox安装时修改底层配置信息,打开系统偏好设置->安全性与隐私->文件保险箱->点击allow。再次安装virtualbox,再次启动vagrant up 就可以了。我个人是这样解决的。 
打开App,查看更多内容
随时随地看视频慕课网APP