I want to have a directory which is accessible on both Windows 7 installed on Ubuntu host, and the Ubuntu as well.
So I have installed the Virtualbox additions on both Windows and Ubuntu.
Then in Ubuntu:
sudo mkdir /media/win7share sudo mount -t vboxsf win7share /media/win7share
/sbin/mount.vboxsf: mounting failed with the error: No such device
- What do I need to type in Shared folders in Virtualbox Manager settings?
- What do I need to set up on Windows?
I've finally found a solution, so here it is as a reference:
- Install Guest additions on guest system (Windows)
- Do not install Guest additions on host system (Ubuntu)
Add user to
sudo usermod -g vboxsf username
NOTE: -g will set the primary group of the user to vboxsf (REPLACING whatever default group she belongs to, and changing all files created with it to vboxsf). "-G" will delete all auxiliary groups of the user (including "admin"!) and replace with vboxsf. The safest bet is to use "-a -G vboxsf username", which appends the vboxsf group to current auxiliary groups for that user, changing nothing else.
Create the dir for the shared docs:
(my mistake was to try to put this in
/media and trying mounting it - this is not necessary as the newest VirtualBox does it for us)
- Go to the VirtualBox options and add the directory
/home/username/sharedto the shared paths.
(in my case the button was grayed probably due the permissions, now solved in 3.)
And that's all. The specified dir will appear in the Windows as a new drive.