linux 协议错误,在linux客户机上:协议错误,Vagrant无法挂载同步的文件夹_vagrant_开发99编程知识库...
使用一個 Windows 主機(jī)和一個運(yùn)行在in的Linux客戶機(jī)使用同步文件夾,我有一個奇怪的問題。
在第一個引導(dǎo)( 或者在 vagrant destroy 之後) 中,項(xiàng)目文件夾掛載到/vagrant,但在停止並啟動虛擬機(jī)之後,文件夾將不會掛載。
這是vagrant輸出結(jié)束時出現(xiàn)的錯誤消息:...
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem"vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:
mount -t vboxsf -o uid=1000,gid=1000 vagrant/vagrant
The error output from the command was:
: Protocol error
Vagrantfile中沒有同步的文件夾相關(guān)配置選項(xiàng),我只是嘗試使用默認(rèn)同步的文件夾行為。
一些類似的問題提示運(yùn)行Vagrant插件 vagrant-vbguest 可能解決一些類似的問題,但我有這個插件。 同時,虛擬框和已經(jīng)安裝的客戶機(jī)添加都是版本 5.1.10.
電腦重新啟動后,運(yùn)行 sudo mount -t vboxsf vagrant/vagrant 僅給出這裡錯誤:/sbin/mount.vboxsf: mounting failed with the error: Protocol error
因?yàn)槟承┰?sudo mount -t vboxsf vagrant/vagrant ( 大寫V ) 將掛載已經(jīng)同步的文件夾。 首次啟動時 mount | grep vagrant 顯示同步的文件夾名為 vagrant with小寫'v',VirtualBox顯示文件夾的共享名,即使在重新啟動這個文件夾之後。
我真的需要在不給錯誤的情況下正確地使用vagrant行為。 是什麼導(dǎo)致了這種情況發(fā)生?
總結(jié)
以上是生活随笔為你收集整理的linux 协议错误,在linux客户机上:协议错误,Vagrant无法挂载同步的文件夹_vagrant_开发99编程知识库...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: jq父级绑定事件的意义_js、jq事件绑
- 下一篇: yii2 mysql in_yii2 m