Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos Vagrant无法在没有sudo的情况下创建卷目录_Macos_Virtualbox_Vagrant - Fatal编程技术网

Macos Vagrant无法在没有sudo的情况下创建卷目录

Macos Vagrant无法在没有sudo的情况下创建卷目录,macos,virtualbox,vagrant,Macos,Virtualbox,Vagrant,为什么创建卷目录时遇到问题?运行vboxmanage list systemproperties显示/Volumes/untitled,但运行vboxmanage setproperty machinefolder default将其更改为/Users/mm/VirtualBox。现在运行vagrant up给了我一个新错误Progress:90%/Applications/vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/machine.

为什么创建卷目录时遇到问题?

运行
vboxmanage list systemproperties
显示
/Volumes/untitled
,但运行
vboxmanage setproperty machinefolder default
将其更改为
/Users/mm/VirtualBox
。现在运行vagrant up给了我一个新错误
Progress:90%/Applications/vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/machine.rb:214:in“initialize”:权限被拒绝-/Users/mm/something/vagrant/.vagrant/machines/default/virtualbox/id(Errno::EACCES)
chmod 777 on.vagrant/machines/default/virtualbox/id和现在的vagrant up似乎正在愉快地嗡嗡作响。
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'hashicorp/precise64'...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["import", "/Users/foo/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-    precise64/1.1.0/virtualbox/box.ovf", "--vsys", "0", "--vmname", "precise64_1397758443675_63113", "--vsys", "0", "--unit", "9", "--disk", "/Volumes/untitled/precise64_1397758443675_63113/box-disk1.vmdk"]

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting /Users/foo/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise64/1.1.0/virtualbox/box.ovf...
OK.
0%...
Progress state: VBOX_E_IPRT_ERROR
VBoxManage: error: Appliance import failed
VBoxManage: error: Could not create the directory '/Volumes/untitled/precise64_1397758443675_63113' (VERR_ACCESS_DENIED)
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component Appliance, interface IAppliance
VBoxManage: error: Context: "int handleImportAppliance(HandlerArg*)" at line 779 of file     VBoxManageAppliance.cpp