Cannot run vagrant up on infrastucture: unknown filesystem type 'vboxsf'

The version is vagrant 2.2.7 on Windows 10 1909

the error is:

        infrastructure: Box Provider: virtualbox
        infrastructure: Box Version: >= 0
    ==> infrastructure: Loading metadata for box 'centos/7'
        infrastructure: URL: https://vagrantcloud.com/centos/7
    ==> infrastructure: Adding box 'centos/7' (v1905.1) for provider: virtualbox
        infrastructure: Downloading: https://vagrantcloud.com/centos/boxes/7/versions/1905.1/providers/virtualbox.box
        infrastructure: Download redirected to host: cloud.centos.org
        infrastructure:
    ==> infrastructure: Successfully added box 'centos/7' (v1905.1) for 'virtualbox'!
    ==> infrastructure: Importing base box 'centos/7'...
    ==> infrastructure: Matching MAC address for NAT networking...
    ==> infrastructure: Checking if box 'centos/7' version '1905.1' is up to date...
    ==> infrastructure: Setting the name of the VM: m310_infrastructure_1580623994491_5746
    ==> infrastructure: Fixed port collision for 22 => 2222. Now on port 2200.
    ==> infrastructure: Clearing any previously set network interfaces...
    ==> infrastructure: Preparing network interfaces based on configuration...
        infrastructure: Adapter 1: nat
        infrastructure: Adapter 2: hostonly
    ==> infrastructure: Forwarding ports...
        infrastructure: 22 (guest) => 2200 (host) (adapter 1)
    ==> infrastructure: Running 'pre-boot' VM customizations...
    ==> infrastructure: Booting VM...
    ==> infrastructure: Waiting for machine to boot. This may take a few minutes...
        infrastructure: SSH address: 127.0.0.1:2200
        infrastructure: SSH username: vagrant
        infrastructure: SSH auth method: private key
        infrastructure:
        infrastructure: Vagrant insecure key detected. Vagrant will automatically replace
        infrastructure: this with a newly generated keypair for better security.
        infrastructure:
        infrastructure: Inserting generated public key within guest...
        infrastructure: Removing insecure key from the guest if it's present...
        infrastructure: Key inserted! Disconnecting and reconnecting using new SSH key...
    ==> infrastructure: Machine booted and ready!
    ==> infrastructure: Checking for guest additions in VM...
        infrastructure: No guest additions were detected on the base box for this VM! Guest
        infrastructure: additions are required for forwarded ports, shared folders, host only
        infrastructure: networking, and more. If SSH fails on this machine, please install
        infrastructure: the guest additions and repackage the box to continue.
        infrastructure:
        infrastructure: This is not an error message; everything may continue to work properly,
        infrastructure: in which case you may ignore this message.
    ==> infrastructure: Setting hostname...
    ==> infrastructure: Configuring and enabling network interfaces...
    ==> infrastructure: Rsyncing folder: /cygdrive/f/tutorial/m310/ => /vagrant
    ==> infrastructure: Mounting shared folders...
        infrastructure: /home/vagrant/shared => F:/tutorial/m310/shared
    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 home_vagrant_shared /home/vagrant/shared

    The error output from the command was:

    mount: unknown filesystem type 'vboxsf'

As per the instructions, you need to install vbguest before running vagrant up:
vagrant plugin install vagrant-vbguest
vagrant up infrastructure

1 Like

Thanks!
I installed the plugin before database, and it fired error, and uninstalled the plugin.
I think the best way is running vagrant up database, install plugin, and vagrant up infrastructure