Shared folder between Mac Host/Linux Guest

Discussions related to using VirtualBox on Mac OS X hosts.
CorinnaG
Posts: 8
Joined: 4. Apr 2014, 12:56

Shared folder between Mac Host/Linux Guest

Post by CorinnaG »

Hey all,

I just can not get the shared folder to run between my Mac host (OS X 10.9.2) and a VM Linux/Ubuntu guest. The folder is set up on my host and I tried re-installing the guest additions on my guest but still I can not see the files in the shared folder.
I tried re-installing the VM, having the shared folder within different directories, re-installed the guest additions in two different ways etc. So I ran out of ideas what the problem could be.....

Furthermore, I have the drag'n'drop activated "bidirectional", but can only drop host --> guest and not the other way round, if that would work, then the
shared folder is of course not needed anymore.

Any help is more then appreciated!

Greetz,

Corinna
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Shared folder between Mac Host/Linux Guest

Post by loukingjr »

Drag n Drop only works in one direction. If you have an "X" on the shared folder in the guest you need to add your user name to the vboxsf group.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
CorinnaG
Posts: 8
Joined: 4. Apr 2014, 12:56

Re: Shared folder between Mac Host/Linux Guest

Post by CorinnaG »

Thanks for the quick reply.
But why does it only work in one direction, when I can choose between "host->guest", "guest->host" and "bidirectional" ? These are the options within VM.

Concerning the shared folder, I do not have am "X" on the shared folder. After mounting it, and open the correct directory, the shared folder is just empty.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Shared folder between Mac Host/Linux Guest

Post by loukingjr »

CorinnaG wrote:Thanks for the quick reply.
But why does it only work in one direction, when I can choose between "host->guest", "guest->host" and "bidirectional" ? These are the options within VM.

Concerning the shared folder, I do not have am "X" on the shared folder. After mounting it, and open the correct directory, the shared folder is just empty.
as far as the directions,because it's not fully implemented yet.

how did you set up the shared folder?
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
CorinnaG
Posts: 8
Joined: 4. Apr 2014, 12:56

Re: Shared folder between Mac Host/Linux Guest

Post by CorinnaG »

Interesting.... but confusing that they still display it in this way.

- Created a VMshare folder on my host (tried different locations).
- Latest version of VM installed, where I have a *.vdi (Linux/Ubuntu) as the guest installed.
- Set up the shared folder in the VM (with VM shutdown) under Settings, locating the folder, choosing Full access and Auto-mount.
- Starting the VM.
- In the Home Directory I have a "mount" icon, click on it, Terminal opens, typing in of password, terminal closes.
- Then my shared folder content should be visible under home/host -> But it is empty.

Colleagues who provided me with this *.vdi have no idea why it does not work, since on their Macs it works :(
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Shared folder between Mac Host/Linux Guest

Post by loukingjr »

the easiest way to create shared folders in Ubuntu based guests is to select Shared Folders>Click Add>Select Folder Path>Other then point to whatever folder you want to share on your Mac.
restart the guest. the shared folder will be in /Media in Ubuntu.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
CorinnaG
Posts: 8
Joined: 4. Apr 2014, 12:56

Re: Shared folder between Mac Host/Linux Guest

Post by CorinnaG »

Exactly what I did - and the test files I have in my shared folder on my host can not be seen in my guest (simple *.txt files).

But in my case I also do not have a /Media directory in Ubuntu.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Shared folder between Mac Host/Linux Guest

Post by loukingjr »

CorinnaG wrote:Exactly what I did - and the test files I have in my shared folder on my host can not be seen in my guest (simple *.txt files).

But in my case I also do not have a /Media directory in Ubuntu.
you have to have a media directory. open the file manager in Ubuntu, click on file system, you'll see it.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
CorinnaG
Posts: 8
Joined: 4. Apr 2014, 12:56

Re: Shared folder between Mac Host/Linux Guest

Post by CorinnaG »

Yes found the folder, but then this pops-up:
Although I clicked in the Home directory on the mount icon and typed in the password given to me within the terminal.
Attachments
Untitled.png
Untitled.png (96.2 KiB) Viewed 22780 times
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Shared folder between Mac Host/Linux Guest

Post by loukingjr »

you have to add yourself to the vboxsf group. the easiest way is to open the terminal in Ubuntu and type..

Code: Select all

sudo adduser <your user name> vboxsf
do not include the brackets.

then restart Ubuntu.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
CorinnaG
Posts: 8
Joined: 4. Apr 2014, 12:56

Re: Shared folder between Mac Host/Linux Guest

Post by CorinnaG »

The command results in the following:

adduser: Only one or two names allowed.

And still nothing after a restart!
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Shared folder between Mac Host/Linux Guest

Post by loukingjr »

CorinnaG wrote:The command results in the following:

adduser: Only one or two names allowed.

And still nothing after a restart!
oh dear. :D you need to type in your user/login name. i.e.

Code: Select all

sudo adduser john vboxsf
substitute your login in name for john.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
CorinnaG
Posts: 8
Joined: 4. Apr 2014, 12:56

Re: Shared folder between Mac Host/Linux Guest

Post by CorinnaG »

We are talking now about the login name for my host or for my guest? ;)
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Shared folder between Mac Host/Linux Guest

Post by loukingjr »

guest.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
CorinnaG
Posts: 8
Joined: 4. Apr 2014, 12:56

Re: Shared folder between Mac Host/Linux Guest

Post by CorinnaG »

Ha, it was my guest login in name :D

IT WORKED !!!!!!!!!!!!!

Awesome !!! Thank you so much for your help !!!!!!!
Post Reply