簡體   English   中英

將Windows中的Vagrant文​​件夾與VirtualBox同步

[英]Sync Vagrant folder in Windows with VirtualBox

我不了解可以找到的答案,因此,我將嘗試再次詢問。 我正在使用VirtualBox的虛擬機上使用Vagrant。 我的主機裝有Windows 10。

根據https://www.vagrantup.com/docs/synced-folders/basic_usage.html,我應該編輯Vagrantfile以包含config.vm.synced_folder "src/", "/srv/website" 在理解第二個參數時沒有任何問題(客戶機上的一個)。

我有兩個問題:

1:如果我的Vagrantfile位於C:\\ Users \\ mabj \\ Documents \\ vagrant \\ test2中,而我要同步的文件夾位於C:\\ Users \\ mabj \\ Documents \\ code \\ test2中,那么我應該在第一個參數中寫什么(主機)?

2:使用Windows和VirtualBox,是否必須添加任何可選參數?

(1)config.vm.synced_folder“ ../../code/test2”,“ / synced_folder”

*來自VM同步文件夾中的將是/ synced_folder

(2)否

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM