[Resolved] Shared Folders

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Circuits
Posts: 18
Joined: 4. Oct 2018, 18:40

[Resolved] Shared Folders

Post by Circuits »

Hi guys, I have read a few threads on sharing folders from the host machine to the virtual machine; however, the solutions offered don't seem to be working. My host machine is Ubuntu 16.04 and the guest is Ubuntu 10.04. I got as far as running the VBox_GAs_5.2.18 virtual CD and it seemed to have installed itself correctly. Then I made sure I was part of the vboxsf user group and i ran the command:

sudo mount -t vboxsf share ~/

from inside of the folder where I want the folders to reside which is called HostFiles. The error report was:

/sbin/mount.vboxsf: mounting failed with the error: Protocol error

Is there a way for me to debug this error?

On a side note and this might be relevant I am not sure... there is a Network folder called bznlinux038 (the name of the host computer) but there is nothing in that directory save another directory called print$. If i try to access that folder it requests a password. None of the passwords work lol there are 3 possible passwords that I can think of but none of them work.
Last edited by socratis on 5. Oct 2018, 04:28, edited 1 time in total.
Reason: Marked as [Resolved].
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Shared Folders

Post by mpack »

Please post a VM log file. With the VM fully shut down, right click and "Show Log" in the GUI, save "VBox.log" (no other file) to a zip, and attach the zip here.
Circuits
Posts: 18
Joined: 4. Oct 2018, 18:40

Re: Shared Folders

Post by Circuits »

Figured it out.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Shared Folders

Post by socratis »

Two notes:
  1. Please don't delete your posts, the context gets lost.
  2. Do you mind posting what is it exactly that you figured out? It will help other users with a similar problem.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Circuits
Posts: 18
Joined: 4. Oct 2018, 18:40

Re: Shared Folders

Post by Circuits »

Sure, I did not realize but the folder on your VM and the folder you are trying to mount had to be the same name. Also, I had to select the auto-mount checkbox in Shared Folders.
Circuits
Posts: 18
Joined: 4. Oct 2018, 18:40

Re: Shared Folders

Post by Circuits »

There is one problem though. For some reason I have to re-run the mount command every time I reset the computer. Is this just a behavior I am going to have to deal with?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Shared Folders

Post by socratis »

Circuits wrote:I did not realize but the folder on your VM and the folder you are trying to mount had to be the same name.
Not true. Your folder and the name of the share can be completely different, that's why you have that option in the first place, otherwise it would be set automatically and be a read-only indicator.
Circuits wrote:Also, I had to select the auto-mount checkbox in Shared Folders.
That's actually what did it. ;)
Circuits wrote:I have to re-run the mount command every time I reset the computer.
It sounds like you have a snapshot (or more). When you "reset" the computer, you revert to a previous snapshot. That previous snapshot did not include the shared folder and/or the auto-mount enabled. So, by reverting to the previous snapshot, you are also reverting your settings to a state where there's no auto-mounted shared folders.

What you need to do is to reset the VM, then enable auto-mount, then take a new snapshot, and then delete the previous snapshot. Then when you "reset" the VM, the settings would be there.

And please do not go crazy with the snapshots. One is enough, just enough for the "reset" (or what I call "Undo" ;)) option...

Marking as [Resolved].
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply