有关于权限请问老师怎么解决呢?我搜了不少办法了!
来源:2-4 Vagrant&VirtualBox for Mac
斯芬克斯01
2019-11-16
在外部启动 vagrant up 就会报错 ,但是如果加上sudo就可以启动,在是vm里面没有 up的镜像,不用sudo 就启动就报错。求告知。难道另外装一次vagrant?
-------------------------------------------- (err)
➜ docker vagrant up
/opt/vagrant/embedded/gems/gems/vagrant-2.2.6/lib/vagrant/util/which.rb:37: warning: Insecure world writable dir /opt/vagrant/embedded in PATH, mode 040777
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: 10
另外装软件也会提示:
--------------------------------------------(err)
警告:目录权限不一致 /opt/vagrant/embedded/rgloader/
文件系统:777 软件包:755
2回答
-
慕标9046666
2019-11-16
切换到root用户,授权chmod -R 777 /opt/vagrant,然后在Vagrantfile目录下vagrant up,不要sudo vagrant up否则建的虚拟机在root下,当前用户VirtualBox里就看不到
00 -
麦兜搞IT
2019-11-16
您好,您的操作系统是什么,Mac么?您安装virtualbox和vagrant是正常安装的么?因为我也是Mac系统没有您说的这个问题,一时也无法去重现您的问题,无法重现我也就不能特别准确的回答。
052019-11-19
相似问题