[SOLVED] How to share Mac host's folders with Ubuntu guest
-
virubix
- Posts: 61
- Joined: 1. Jan 2011, 01:58
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Windows 7
[SOLVED] How to share Mac host's folders with Ubuntu guest
In my VB on Mac mini I have created shared folders pointing to a folder in my home directory with full access as permanent mount. However I do not know where should this directory (folder) appear in Nautilus on Ubuntu? Under Network there is an icon named Windows Network, however clicking on it gives me an error saying that it failed to retrieve share list from the server. I have then also added the pertinent folder in Mac's Shared Folders in System Preferences, but nothing changed even after rebooting VB for every change I made.
Can anybody tell me what I am missing.
Can anybody tell me what I am missing.
Last edited by virubix on 16. Dec 2011, 04:48, edited 1 time in total.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: How to share Mac host's folders with Ubuntu guest
Network share or the VirtualBox shared folders?
VirtualBox shared folders you should read 4.3 Shared folders in your VirtualBox users guide.
VirtualBox shared folders you should read 4.3 Shared folders in your VirtualBox users guide.
-
virubix
- Posts: 61
- Joined: 1. Jan 2011, 01:58
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Windows 7
Re: How to share Mac host's folders with Ubuntu guest
I read all of that many times. I have this working on my Linux host with windows guests. As well as on iMac host also with windows. Trouble is on my Mac mini hpost and Linux guest! 4.3 in VB Manual tells you nothing new which basically I have already described in my 1st post.Perryg wrote:Network share or the VirtualBox shared folders?
VirtualBox shared folders you should read 4.3 Shared folders in your VirtualBox users guide.
-
virubix
- Posts: 61
- Joined: 1. Jan 2011, 01:58
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Windows 7
Re: How to share Mac host's folders with Ubuntu guest
There is some hope
I only do not know what options are required 
Code: Select all
mount -t vboxfs [-o OPTIONS] sharename mountpoint-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: How to share Mac host's folders with Ubuntu guest
Most generally you would use the rw gid uid
These options are in the man page of your guest.
Here is a generic one to follow.
Of course you should verify your uid and gid type id in a terminal and it will tell you.
Oh and the guest additions must be installed (in the guest) before this will work.
These options are in the man page of your guest.
Here is a generic one to follow.
Code: Select all
sudo mount -t vboxsf -o rw,uid=1000,gid=1000 <share name> <mount point>Oh and the guest additions must be installed (in the guest) before this will work.
-
virubix
- Posts: 61
- Joined: 1. Jan 2011, 01:58
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Windows 7
Re: How to share Mac host's folders with Ubuntu guest
I did all that and it blows up
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: How to share Mac host's folders with Ubuntu guest
What do you mean by blows up?
-
virubix
- Posts: 61
- Joined: 1. Jan 2011, 01:58
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Windows 7
Re: How to share Mac host's folders with Ubuntu guest
Thank you very much, I got it working. I did not notice that vboxfs is not spelled naturally! It is actually vboxsf

-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: How to share Mac host's folders with Ubuntu guest
OK now if you would like these to mount at boot. Just edit the /etc/rc.local file and add the same line in there. Be sure exit 0 is the last line.
-
virubix
- Posts: 61
- Joined: 1. Jan 2011, 01:58
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Windows 7
Re: How to share Mac host's folders with Ubuntu guest
Yes, I was going to do that only why the rc.local? istn't the fstab the proper place to do that?
-
virubix
- Posts: 61
- Joined: 1. Jan 2011, 01:58
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Windows 7
Re: [SOLVED] How to share Mac host's folders with Ubuntu gue
Perryg, thank you again. It was a true pleasure to talk to you.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: [SOLVED] How to share Mac host's folders with Ubuntu gue
Because the fstab is sometimes loaded before the VBox modules and have at times failed. It can even halt the boot process if you make a mistake like the vboxfs instead of the vboxsf. The /etc/rc.local is run last after everything else and is more forgiving.
Your welcome.
Your welcome.