解決yum update更新後Vagrant up遇到不能掛載共享目錄/vagrant
阿新 • • 發佈:2019-02-12
故障
vagrant管理的centos虛擬機器在做過 yum -y update 後更新了系統以及核心
然後下一次vagrant up的時候共享目錄不能掛載到/vagrant目錄( /sbin/mount.vboxsf: mounting failed with the error: No such device)
詳細資訊
1234567891011 | Failed tomount folders inLinux guest.Thisisusually becausethe"vboxsf"filesystem isnotavailable.Please verify thatthe guest |
搜尋資料知道原因是yum update更新了核心,但是沒有更新VirtualBox的連線的問題。
需要執行
1 | sudo/etc/init.d/vboxadd setup |
修復即可