Vagrant up error, changing ownership of /vagrant: not a directory

被刻印的时光 ゝ 提交于 2019-11-30 13:49:00

I've just made it through.

  • So you have Vagrant and the latest VirtualBox.
  • Restart your computer now if you didn't do it after any of the installations
  • Uninstall Vbox 5.0
  • Restart the computer again
  • Download and install 4.3.30 for amd/x86
  • Run vagrant up and there you are

Mitchell confirmed for us that this was a bug in the latest version, it's fixed by now: look at this issue and the relevant commit https://github.com/mitchellh/vagrant/issues/5933

So, here is how I actually managed to fix it.

The newest versions of Vagrant (1.3.5) and VirtualBox (4.3.4) do not play together at all on Windows. So, I kept Vagrant 1.3.5 and went down to VirtualBox 4.2.2.

Once you have that, you have to get rid of a couple folders so that everything resets itself correctly:

 Users\<<USERNAME>>\.VirtualBox
Users\<<USERNAME>>\.vagrant.d

Delete those before trying to run

vagrant up

With that, I was able to get everything running again. However, I have noticed that running vagrant up does go a tad slower than it had been previously. I can live with that though. Thank you for all of your help and suggestions.

Currently Vagrant (<=1.7.3) has a bug with VirtualBox 5.0. According to

https://github.com/mitchellh/vagrant/issues/5933

Vagrant 1.7.4 will have a fix for VB 5.0. It can be applied in-tree though, as I mention on the Github issue.

If you get this message then, try to match VirtualBox version on host machine, that will solve the problem.

default: The guest additions on this VM do not match the installed version of default: VirtualBox! In most cases this is fine, but in rare cases it can default: prevent things such as shared folders from working properly. If you see default: shared folder errors, please make sure the guest additions within the default: virtual machine match the version of VirtualBox you have installed on default: your host and reload your VM. default: default: Guest Additions Version: 4.3.10 default: VirtualBox Version: 5.0

not 100% sure but what it seems like, vagrant is trying to map it's default "/vagrant" folder to your local C:/Users/Work/Homestead/Homestead. If the local does not exist or has some permission errors, /vagrant will not be created and the next command on it will fail. Have a look if C:/Users/Work/Homestead/Homestead is created. And also I do not see this mapping in your yaml. /vagrant => C:/Users/Work/Homestead/Homestead. Is your config not being overwritten with something?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!