Получение ошибки 'vboxsf' всякий раз, когда я пытаюсь открыть окно centos7.
Я запускаю vagrant init в каталоге. Затем я захожу в каталог и редактирую файл. И запускаю vagrant up. Эточто я положил в бродячий файл: -
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "Centos7" do |master|
master.vm.provider "virtualbox"
master.vm.box = "centos/7"
master.vm.hostname = "web.mylab.local"
master.vm.network :private_network, ip: "198.168.56.7"
config.vm.synced_folder ".", "/vagrant", type: "virtualbox"
master.vm.provision "shell", inline: <<-SHELL
sudo sed -1 "s/PasswordAuthentication.*/PasswordAuthentication
yes/g" /etc/ssh/sshd_config
sudo systemct1 restart sshd
SHELL
end
end
**This is the error message i get:-**
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:
mount: unknown filesystem type 'vboxsf'