0
我正在使用Vagrant SSHFS插件而不是rsync
。我安裝了插件:爲什麼流浪者在運行流浪摧毀後要求你重新安裝一個插件?
vagrant plugin install vagrant-sshfs
下面是我的Vagrantfile
:
Vagrant.configure("2") do |config|
config.vm.box = "debian/jessie64"
config.vm.synced_folder "./live-build", "/home/vagrant/live-build", type: "sshfs"
config.vm.provision "shell", path: "./provision/setup.sh"
config.vm.provision "shell", path: "./provision/build.sh"
end
當我運行vagrant up
主機live-build
目錄鏈接,我可以從客戶看到這些文件。
現在,如果我運行:vagrant destroy
然後vagrant up
synced_folder嘗試默認爲rsync
這將導致以下錯誤:
Host path: /Users/jake/OZYProject/
Guest path: /vagrant
Command: "rsync" "--verbose" "--archive" "--delete" "-z" "--copy-links" "--no-owner" "--no-group" "--rsync-path" "sudo rsync" "-e" "ssh -p 2222 -o LogLevel=FATAL -o ControlMaster=auto -o ControlPath=/var/folders/lp/qxycffd53lxdhbhvy34lymrh0000gn/T/ssh.180 -o ControlPersist=10m -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i '/Users/jake/OZYProject/.vagrant/machines/default/virtualbox/private_key'" "--exclude" ".vagrant/" "/Users/jake/OZYProject/" "[email protected]:/vagrant"
Error: symlink has no referent: "/Users/jake/OZYProject/whonix-live-build/config/hooks/0010-disable-kexec-tools.hook.chroot"
...
有什麼奇怪的是,該插件已經安裝:
vagrant plugin list
vagrant-share (1.1.6, system)
vagrant-sshfs (1.3.0)
vagrant-vbguest (0.14.2)
如果我試圖安裝vagrant plugin install vagrant-sshfs
(即使它已經安裝)並重試vagrant up
它將使用sshfs
正確安裝。看來我必須在運行destroy
後安裝vagrant-sshfs
。
這是正常的嗎?
的問題似乎默認'/ vagrant'文件夾下面的這個文件夾。所以在安裝插件後,即使'/ vagrant'與sshfs模式共享? –
有什麼辦法可以禁用默認文件夾,因爲它不是必需的。 – BugHunterUK