I solved a similar problem as the output from vagrant up was as follows:
Installing Virtualbox Guest Additions 5.0.4 - guest version is 4.3. Verifying archive integrity... All good. Uncompressing VirtualBox 5.0.4 Guest Additions for Linux........... VirtualBox Guest Additions installer Removing installed version 4.3.14 of VirtualBox Guest Additions... Copying additional installer modules ... Installing additional modules ... Removing existing VirtualBox non-DKMS kernel modules[ OK ] Building the VirtualBox Guest Additions kernel modules Building the main Guest Additions module[FAILED] (Look at /var/log/vboxadd-install.log to find out what went wrong)
and then later
Failed to mount folders in Linux guest. This is usually because the "vboxsf" file system is not available. Please verify that the guest additions are properly installed in the guest and can work properly. The command attempted was: mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant /vagrant mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant
Symptoms
My stroller script worked for quite some time, but yesterday I changed the physical hardware for my drives by moving the drives from the Lenovo T520 to T530. Ok with this, I had to update several drivers.
Thus, I was not able to run my firewall script on new hardware on the same drive.
Cause
The reason was the new graphics card, the NVIDIA graphics card. This card has a GPU processor that connects to every process on the computer and tries to determine if it uses a GPU or not. By default, the GPU on my machine was configured to connect the GPU to each running process.
This processor connecting this NVIDIA effectively uses VirtualBox so that VBGuestAdditions cannot correctly install drivers or at least say that something is missing.
Decision
Open NVIDIA Control => 3D Settings → Manage 3D Settings. Then select the "Program Settings" tab.
Now the trick is to add VirtualBox.exe to the "1. Select a program to configure" drop-down list, and then set "2. Select your preferred graphics handler for this program" to "Integrated Graphics"
It does the whole trick. Vagrant up spins the machine and does not throw the message "Failed to install folders on the Linux guest system"
I’m exploring this program again and again for the whole day.