Page 1 of 1
problem with sharing on macosx (linux guest)
Posted: 30. Oct 2010, 22:22
by graysky
Running OSX 10.6 and have specified a "Full" share to ~/data within Virtualbox. I'm running a Linux guest and have mounted the share to /media/share but when I mount it, it mounts with 666 permissions (dr-xr-xr-x). I can't figure out how to mount it with 755. The empty mount point is 755 before mounting by the way.
Mounting via
Code: Select all
sudo mount -t vboxsf -o uid=1000,gid=100 share /media/share
Thoughts?
I read the following guide by the way:
http://forums.virtualbox.org/viewtopic.php?f=29&t=15868
Re: problem with sharing on macosx (linux guest)
Posted: 30. Oct 2010, 22:42
by Perryg
after the -o put additional switches. See example below.
Code: Select all
sudo mount -t vboxsf -o rw,uid=1000,gid=1000 share /media/share
See this and more in your Linux guest by typing
man mount in the terminal
Note: I figured you missed a 0 in your example and added it to mine.
Re: problem with sharing on macosx (linux guest)
Posted: 31. Oct 2010, 00:01
by graysky
I'll give the rw a try... the group id is actually 100, not 1000.
Re: problem with sharing on macosx (linux guest)
Posted: 31. Oct 2010, 00:11
by Perryg
really? How did you get you user in a system group?
Re: problem with sharing on macosx (linux guest)
Posted: 31. Oct 2010, 00:42
by graysky
Perryg wrote:really? How did you get you user in a system group?
It's the default for users, from /etc/groups:
Re: problem with sharing on macosx (linux guest)
Posted: 11. Nov 2010, 01:37
by ajmadison
I did search, but might not have used the right magic keywords.
Short version: I get the error "No such device" when I do the mount. I've created the shared folder (named Shared) under Devices. I did the mkdir /media/Shared. I run the mount:
mount -t vboxsf Shared /media/Shared
and get back no such device.
I have done this, and running it successfully on a Windows XP machine w/o any issue.
I have a MacBook Pro 10.6 running VB 3.2.10. Maybe my first issue is not having installed Guest Additions properly (or at all). I can get the iso to show up under the VM, but as I recall, isn't that to install device drivers on the Host machine?? This is what I recall doing with VB Guest Additions on my Windoze desktop. So maybe my first issue is not understanding Guest Additions on the mac. I've also played with adding -o uid=100,gid=100 to the mount line (as described above) and still get "No such device."
I'd really like to get the MacBook to share files with the Linux VM. Then I have a portable machine which I can do useful work.
Thanks in advance...
Re: problem with sharing on macosx (linux guest)
Posted: 11. Nov 2010, 04:35
by Perryg
The installation of the guest additions (in the guest) are mandatory to be able to use shared folders.
Re: problem with sharing on macosx (linux guest)
Posted: 11. Nov 2010, 19:33
by ajmadison
Perryg wrote:The installation of the guest additions (in the guest) are mandatory to be able to use shared folders.
ThankYouThankYouThankYouThankYou
I had it 1/2 right on the Mac Hosted Linux. The guest additions were "installed". But until I reran the sh ./VBoxLinuxAdditions-X86.run did I discover that I didn't have dkms installed. Course this forced a cascade of other rpms that needed to be installed, like kernel headers and gcc, but I have that drill down. Once I had dkms, I rebuilt a kernel that actually used the Guest additions. And the display is full screen now.
Ugh, a little knowledge is a dangerous thing.