VirtualBox Shared Folders Protocol Error in Ubuntu Guest
I was banging my head against my desk trying to make shared folders work in VirtualBox 1.64 on my WinXP notebook inside an Ubuntu 8.04 guest. I kept getting a “protocol error” failure.
Here’s the scenario I was working with:
- I created a Windows folder on my notebook to share to the guests – f:\shared2vms
- I added the folder to the shared folders properties of the Ubuntu VM and named it shared2vms
- I created a folder at /home/username/shared2vms to be the mount point of the VirtualBox shared folder in the Ubuntu guest
For a Linux guest in VirtualBox the command to use the shared folder is “mount -t vboxsf [shared folder name] [mount point]”
So, the command I was using
#sudo mount -t vboxsf shared2vms /home/user/shared2vms
After some creative Google -ing I luckily found this Virtualbox.org forum thread that solved the issue –
virtualbox.org :: View topic – Ubuntu 8.04beta guest shared folders. It wasn’t until I read the very last reply in this thread unit I got the answer for making it work. Here’s the body of that reply:
My environment:
VirtualBox 1.6
Host: Vista
Guest: Ubuntu 8.04
I found out that using
Code: sudo mount …
under Ubuntu 8.04 ends up with “protocol error”.
Running mount as root works.
To make user root available, you have to set root’s password:
Code: sudo passwd
CORRECTION:
Code: sudo mount …
works under one special condition:
Your current working directory must be outside the path of your mount point.
The above command to set the root password correctly is confusing even with the correction, but I used the following command:
#sudo passwd root
First you are prompted for your current user’s password, and then you are prompted to set the new UNIX password for the root user.
After switching to the super user
#su -
and entering the new root password I was able to correctly use the mount command.
#mount -t vboxsf /home/user /home/shared2vms
It even worked for the mount folder in my home directory contrary to the one special condition mentioned above. I was able to access the shared folder when I exited from the super user mode as well.
Related Posts
-
Daniel Rosenstark
-
lightsound952
-
thesilentwarrior
-
Bastien
-
rbrambley
-
Bastien
-
Yoni
-
rbrambley
-
vulcanfk
-
anacron
-
Sourav










