Перейти к содержимому

Бродяга не может смонтировать общие папки

1

Вот мой Vagrantfile:

Vagrant.configure("2") do |config| config.vm.box = "laravel/homestead" config.vm.network "private_network", ip: "192.168.33.10" config.vm.hostname = "vagrant"  config.vm.synced_folder ".", "/root/shared", :mount_options => ["dmode=777", "fmode=666"] end 

Вот вывод, который я получаю при запуске:

https://pastebin.com/mXiv2EPw/?e=1

В частности, есть это:

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 dmode=777,fmode=666,uid=1000,gid=1000 root_shared /root/shared  The error output from the command was:  : No such file or directory 

Я сделал vagrant plugin install vagrant-vbguestи получил это:

Installing the 'vagrant-vbguest' plugin. This can take a few minutes... Installed the plugin 'vagrant-vbguest (0.13.0)'! 

Я сделал vagrant vbguest(очевидно, виртуальная машина должна быть запущена для vagrant vbguestзапуска):

[default] GuestAdditions 5.1.16 running --- OK. 

Я также столкнулся с этой ошибкой с scotch / box:

Vagrant.configure("2") do |config| config.vm.box = "scotch/box" config.vm.network "private_network", ip: "192.168.33.10" config.vm.hostname = "vagrant"  config.vm.synced_folder ".", "/root/shared", :mount_options => ["dmode=777", "fmode=666"] end 

Я использую laravel / hometead v2.0.0, VirtualBox 5.1.16 r113841 (Qt5.6.2) и Vagrant 1.9.3.

Есть идеи?

957 просмотров
neubert спросил 9 лет назад
N 1 732

1 ответ

0
Принятый ответ

Похоже, что последняя версия Virtualbox (5.1.18) исправила это. Цитирование https://www.virtualbox.org/wiki/Changelog ,

  • Общие папки: исправлен доступ к имени файла без учета регистра (регрессия 5.1.16; только для гостей Windows; ошибка # 16549 )
  • Общие папки: исправлен доступ к длинным путям (регрессия 5.1.16; только для гостей Windows; ошибки # 14651, # 16564 )
neubert ответил 9 лет назад
N 1 732