неизвестный тип файловой системы 'vboxsf' после vagrant up - PullRequest
0 голосов
/ 04 декабря 2018

Я хочу настроить среду, используя vagrant, но вывести сообщение об ошибке после vagrant up.вот моя спецификация

, которую я использую: - OS X Yosemite версии 10.10.5 - VirtualBox vesion 5.2.6 - Vagrant 2.0.1

и это мой файл Vagrant

Vagrant.configure("2") do |config|
  config.vm.box = "centos/7"
  config.vm.network "private_network", ip: "192.168.33.99" 
  config.vm.synced_folder "./", "/vagrant", type:"virtualbox", :owner => 'apache', :group => 'apache', mount_option: ['dmode=777', 'fmode=755']
end

но я запустил 'vagrant up', это выглядело как ошибка

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=48,gid=48 vagrant /vagrant

The error output from the command was:

mount: unknown filesystem type 'vboxsf'

я запустил этот код

vagrant plugin install vagrant-vbguest
vagrant vbguest

отобразить сообщение об ошибке

The distribution packages containing the headers are probably:
    kernel-devel kernel-devel-3.10.0-862.14.4.el7.x86_64
An error occurred during installation of VirtualBox Guest Additions 5.2.6. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
Redirecting to /bin/systemctl start vboxadd.service
Job for vboxadd.service failed because the control process exited with error code. See "systemctl status vboxadd.service" and "journalctl -xe" for details.
Unmounting Virtualbox Guest Additions ISO from: /mnt

и этот код

vagrant plugin install vagrant-winnfsd

но все равно не работал.кто-нибудь может мне помочь?

evendo, я могу пройти с vagrant ssh.Я не могу обновить любой файл и папку в бродячей папке.

что мне делать

1 Ответ

0 голосов
/ 04 декабря 2018

Я считаю, что это проблема с символической ссылкой, которая может быть решена с помощью команды ln -sf /opt/VBoxGuestAdditions-5.1.20/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf.Здесь также есть тикет об этой конкретной проблеме https://www.virtualbox.org/ticket/16670#comment:3, который, похоже, решен.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...