Why am I getting 'Protocol error' reading shared folder?

Discussions about using Linux guests in VirtualBox.
Post Reply
yurivict
Posts: 7
Joined: 5. Oct 2010, 15:39
Primary OS: FreeBSD
VBox Version: OSE other
Guest OSses: Ubuntu

Why am I getting 'Protocol error' reading shared folder?

Post by yurivict »

I run Ubuntu guest on FreeBSD host (I know it's not supported but it works fine)

My question is that I am getting 'Protocol error' when I try to read the folder in guest.
It mounts without an error.

What might be the problem?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Why am I getting 'Protocol error' reading shared folder?

Post by Sasquatch »

Protocol error with which application? Gedit? Nautilus? Terminal?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
yurivict
Posts: 7
Joined: 5. Oct 2010, 15:39
Primary OS: FreeBSD
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Why am I getting 'Protocol error' reading shared folder?

Post by yurivict »

Any application. For example 'ls' prints:
ls: cannot open directory host-yuri/: Protocol error
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Why am I getting 'Protocol error' reading shared folder?

Post by Sasquatch »

Then something really is not right there. Are you sharing a private folder from the Host like your My Documents or profile folder?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
yurivict
Posts: 7
Joined: 5. Oct 2010, 15:39
Primary OS: FreeBSD
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Why am I getting 'Protocol error' reading shared folder?

Post by yurivict »

I am sharing my home directory.
It's not private. Its name on the host is /home/yuri, and I am trying to mount it in the guest as /home/yuri/host-yuri
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Why am I getting 'Protocol error' reading shared folder?

Post by Sasquatch »

And that's the problem. you can't share your entire home folder. You have to pick a subfolder.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
yurivict
Posts: 7
Joined: 5. Oct 2010, 15:39
Primary OS: FreeBSD
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Why am I getting 'Protocol error' reading shared folder?

Post by yurivict »

This was it. Thanks!

I have a suggestion: VirtualBox GUI should warn users if they select home directory or any other directory not allowed to be shared. This will save a lot of time for many people in the future.
Or maybe just allow sharing the home directory. This should be no big deal on UNIX systems.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Why am I getting 'Protocol error' reading shared folder?

Post by Sasquatch »

And that's the problem too. For some, it gives errors like yours, for others, like me, it just works without any issue. I have shared my home folder with an XP VM and it's mapped without problems. I can read and write on it. I also have my /home shared with an Ubuntu VM, no issues either. It's a though problem to fix.
For now, avoid sharing personal folders.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply