2016-04-15 367 views
1

Error while running vagrantVirtualBox虛擬機創建與用戶不匹配的當前用戶運行Vagrant

我是新來的Windows。我使用Windows 10.當我在我的機器上運行流浪漢時,UID有一些問題。請查看圖片瞭解更多信息。

雖然我跑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 as created. Please re-run Vagrant with 
that user. This is not a Vagrant issue. 

The UID used to create the VM was: 1000 
Your UID is: 0 
+0

我發現[Linux中的類似問題](http://stackoverflow.com/questions/31644222/vagrant-not-starting-up-user-that-c​​reated-vm-doesnt-match-current-user/32977467)但我不知道如何在Windows 10中應用這種情況。 –

回答

3

找到這條道路,並更改爲0

.vagrant /機/默認/ VirtualBox虛擬/ creator_uid

2

在Windows文件夾中。 Vagrant與Vagrantfile位於同一個文件夾中。 由於默認設置不可用,因此您可能必須在每個虛擬機中進行編輯,但路徑相同:vagrant/machines/(name of the vm)/virtualbox/creator_uid

4

看起來您是以sudo身份登錄的,因此UID不同。註銷sudo,並像普通用戶那樣嘗試流浪。

如果以上不工作,然後更新下面的文件

VI .vagrant /機/默認/ VirtualBox虛擬/ creator_uid

在它

讓我加0知道這是否有幫助。

0

刪除當前工作目錄中的.vagrant目錄並重新運行vagrant up命令。 由於將Vagranfile/s從一個系統複製/備份到另一個系統,因此出現錯誤。用戶身份證的流氓惡作劇,以提高環境.. 希望它可以幫助歡呼..! :))

+0

請格式化您的答案並修改拼寫錯誤。 –

0

當我第一次(管理員)使用vagrant up提升特權時,發生在我身上(在後續運行中)。

相關問題