0

有谁知道我在哪里可以找到 Windows 上 vagrant 的主文件夹?我试过/home/vagrant在windows文件资源管理器中输入,但它仍然没有弹出。我还尝试通过重新配置 vagrant 文件来使用 vagrant 的同步文件夹选项,但这也不起作用。这是来自 vagrantfile 的代码:

Vagrant.configure("2") do |config|
config.vm.synced_folder "c:/Users/Vanessa", "/home/vagrant"
config.vm.box = "mrgcastle/ubuntu-lucid32"
config.vm.box_version = "1.0.0.0"
end

有没有人有什么建议?感谢您提前提供的所有帮助

4

1 回答 1

0

Not sure what you are asking but follow this steps if you find what you want:

  1. ssh into vagrant from the folder which has your Vagrantfile. For me the path is C:\TaskMaster\sandbox and inside sandbox folder run vagrant ssh.

  2. Once you are in run: cd /home/ and do ls.

  3. cd vagrant

enter image description here

Let me know if you have a different question.

于 2019-10-10T19:15:40.560 回答