My shared folder/clipboard stopped to work for some cause may be due to a patch installation on my virtual machine.
sudo mount -t vboxsf Shared_Folder ~/SF/
Gave following result:
VirtualBox: mount.vboxsf: mounting failed with the error: No such device
I was able to solve this problem to stop vbox add and do a setup after that:
sudo ./vboxadd setup
we are able to solve this issue by following those steps; first of all install Oracle Virtual Box as follows:
run as super-user
deb http://download.virtualbox.org/virtualbox/debian stretch contrib and after type
ctrl+X to save and quit respectively
run from the terminal:
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add -
apt-get install virtualbox-5.2
apt-get install dkms
After, download the .iso image from the Oracle Repository and choosing the version you need on the basis of your host OS and install GuestAdditions by selecting from the virtual machine window menu
Device > Insert ISO image for GuestAdditions
and follow what suggested by the installation guide. Finally, go through
Devices > Shared Folder
and select the path in which is contained the folder you need to share
After searching internet a lot i got some info regrading this from VirtualBox.org itself. In this new version of Guest Additions it has missed a symlink while installation. It breaks the path of /sbin/mount.vboxsf so that the mount command fails.
Using this command i was able to fix the bug.
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
The normal way to get that done from the link provided by Norbert
sudo mount -t vboxsf [-o OPTIONS] sharename mountpoint
So your command should be
sudo mount -t vboxsf [-o OPTIONS] sharename /media/songs
To mount a shared folder during boot, add the following entry to
sharename /media/songs vboxsf defaults 0 0
In case you're using share folders, then you need to install Virtual Box Guest additions inside your virtual machine to support that feature.
If you're using Vagrant (OS X:
brew cask install vagrant), run:
vagrant plugin install vagrant-vbguest
In case it fails, check the logs, e.g.
vagrant ssh -c "cat /var/log/vboxadd-install.log"
It can also be happen maybe you're just missing the kernel header files.
Inside VM, you must install Guest Additions, kernel headers and start the service and double check if kernel extension is running.
This depends on the guest operating system, so here are brief steps:
Install kernel include headers (required by VBoxLinuxAdditions).
sudo apt-get update && sudo apt-get install kernel-devel
sudo yum update && sudo yum -y install kernel-headers kernel-devel
Install Guest Additions (this depends on the operating system).
sudo apt-get -y install dkms build-essential linux-headers-$(uname -r) virtualbox-guest-additions-iso
If you can't find it, check by
aptitude search virtualbox.
sudo apt-get -y install build-essential module-assistant virtualbox-ose-guest-utils
If you can't find it, check by
dpkg -l | grep virtualbox.
manually by downloading the iso file inside VM (e.g.
wget) and installing it, e.g.
wget http://download.virtualbox.org/virtualbox/5.0.16/VBoxGuestAdditions_5.0.16.iso -P /tmp
sudo mount -o loop /tmp/VBoxGuestAdditions_5.0.16.iso /mnt
sudo sh -x /mnt/VBoxLinuxAdditions.run # --keep
cd ~/install && sh -x ./install.sh /mnt/VBoxLinuxAdditions.run
Double check that kernel extensions are up and running:
Start/restart the service:
sudo /opt/VBoxGuestAdditions*/init/vboxadd setup (add
sudo sh -x to debug)
sudo /etc/init.d/vboxadd-service start
sudo /etc/init.d/vboxdrv setup
sudo service VBoxService start