Guest system permission on host machine

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
Steve W.
Posts: 6
Joined: 26. Nov 2014, 17:39

Guest system permission on host machine

Post by Steve W. »

I've been mounting host drives on my guest system, using the standard method:

Code: Select all

sudo mount -t vboxsf -o <options> host_drive /path/to/guest 
and I've run into permission problems along the way. That is, files that I have rwx access to on the host system I have only r access (or no access at all!). I have monkeyed with the uid and gid options, but I don't quite understand that option very well. Ultimately, I have fixed this by changing the permissions on my host machine. But this has got me thinking about how the guest machine is interpreted by the host. So here are my questions for the board:

1. What level user is the guest machine on the host system for the purpose described above? It clearly isn't me, but is it ME (obvs, not), staff, or everyone? I've not been experimenting with this much, I've just set the permissions to rw/rwx for everyone...
2. Can I set up an account on my host machine so that the guest system has proper access to the files on the host? Specifically, can I set it up so that the guest system has the same privileges that my account does on the host? It would get tedious to have to change the permissions each time I mount a different directory.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Guest system permission on host machine

Post by loukingjr »

OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, OSX
Location: U S of A

Re: Guest system permission on host machine

Post by ChipMcK »

Reads like you checked Read-only when you, in the Shared Folders tab, defined the folder to be shared.
Steve W.
Posts: 6
Joined: 26. Nov 2014, 17:39

Re: Guest system permission on host machine

Post by Steve W. »

@ChipMcK - Read only was NOT checked. The problem seems to be that the host doesn't recognize the guest as a privileged enough user. When I changed the folder permissions on the host, my problem went away. I'm just trying to figure out what permissions the host will natively give the guest.

@loukingjr - I'm not sure where to start with this. I'll attach some stuff that may or may not be helpful. I've just started fiddling with this kind of thing, so I'm not sure where to start looking for this. I installed guest additions, but I'm not sure how to figure out the version number and all of that potentially useful info.
Attachments
vmInfo.txt
VBoxManage showvminfo openSUSE
(4.19 KiB) Downloaded 8 times
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Guest system permission on host machine

Post by loukingjr »

Can you attach the vbox.log (compressed) file for your guest?

You need to add your username to the vboxsf group in the guest and you have to have the guest additions installed if you haven't already.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, OSX
Location: U S of A

Re: Guest system permission on host machine

Post by ChipMcK »

Steve W. wrote: what permissions the host will natively give the guest.
Is Volume containing folder external or secondary (not system/boot)?
Steve W.
Posts: 6
Joined: 26. Nov 2014, 17:39

Re: Guest system permission on host machine

Post by Steve W. »

@loukingjr - I don't see a vbox.log file. Should it be in /var/log ?

@ChipMcK - Which volume, on the host or the guest? Host volume is ~/Desktop/<shared_dir>. Guest volume is ~/Documents/<shared_dir>.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Guest system permission on host machine

Post by loukingjr »

with virtualbox open, right click on the guest's name in the left column> show log>save.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Steve W.
Posts: 6
Joined: 26. Nov 2014, 17:39

Re: Guest system permission on host machine

Post by Steve W. »

Thanks. VBox.log attached

One of the things that I've really struggled with from the documentation is knowing whether to do something on the _host_ or the _guest_ system.
Attachments
Vbox.log.zip
Compressed Vbox.log
(14.03 KiB) Downloaded 6 times
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, OSX
Location: U S of A

Re: Guest system permission on host machine

Post by ChipMcK »

Steve W. wrote:~/Desktop
That normally is on the system volume
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Guest system permission on host machine

Post by loukingjr »

I found part of the problem if not all.
00:01:30.005205 Guest Additions information report: Version 4.2.18 r88780 '4.2.18_OSE'
The OSE guest additions from openSUSE are installed and they are out of date. Plus the OSE additions from openSUSE don't support shared folders. You need to uninstall them then install the matching GAs fron the VirtualBox devices menu. You most likely need to install the gcc and kernel-default-dev packages before they will build. I haven't used openSUSE for almost two years so I might be forgetting another package that is needed.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Steve W.
Posts: 6
Joined: 26. Nov 2014, 17:39

Re: Guest system permission on host machine

Post by Steve W. »

Thanks for the help over the holiday. (At least it is a holiday in the USA, not sure if you are here or not, still, the thanks are in order.) :D

gcc package installed. kernel-default-dev is not a package on openSUSE. According to the documentation I also need make, so that is installed. I'm following section 4.2.2.1.3. openSUSE of the documentation for now and will advise if I have another problem. I will need to figure out how to properly update the guest additions, but that is probably in the documentation if I RT(f)M.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Guest system permission on host machine

Post by loukingjr »

Welcome and yes, in the US. Happy belated TDay as well.

I might have the package name backwards. it might have been Kernel-Dev-Default.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Steve W.
Posts: 6
Joined: 26. Nov 2014, 17:39

Re: Guest system permission on host machine

Post by Steve W. »

Finally got it working. Had to add my username to the `vboxsf` group in YaST. Also have to add `-o uid=1000,gid=100` to my mounting command. Now _I_ am the owner of the files on my VM.

Thanks for the help!
Post Reply