sudo なしで vagrant up するとおこられちゃう。
The VirtualBox VM was created with a user that doesn't match the
current user running Vagrant. VirtualBox requires that the same user
be used to manage the VM that was created. Please re-run Vagrant with
that user. This is not a Vagrant issue.
The UID used to create the VM was: 0
Your UID is: 501
そこで・・・ググった結果と実行結果
1) ~/.vagrant.d/data/lock.fpcollision.lock の権限を自分にする
でもこれで解決するのは、vagrant自体をちゃんと自分の権限でインストールしてた場合の話。
今回はうまくいかず。
2)/usr/bin の権限を自分にする
これはとりあえずやっておく。
それでもそのまま vagrant up しても同じエラーがでるのでしかたなく・・・・
3)vagrant を再インストール
今までたいして使ってなかったしw
うまくいった。
再インストール時にsudo使うことはありませんでした。
さて、いよいよ
vagrant up
すると、質問された。
sudo: effective uid is not 0, is sudo installed setuid root?
これで解決。
「sudo: effective uid is not 0, is sudo installed setuid root?
」と表示され、sudoコマンドが使えない場合は、ディスクユーティリティを使え (Mac)
http://qiita.com/dogwood008/items/50a13760c11f8a9b45a1
sudoでvagrant起動してると、VirtualBoxも起動中のマシンとして出してくれなかったんだけど、
これでちゃんと出してくれるようになった。