Limit guest OS access?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
cat2005
Posts: 52
Joined: 11. Aug 2009, 03:45
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux & Windows
Location: Kansas City, MO

Limit guest OS access?

Post by cat2005 »

Assume I have a linux host with 3 different accounts and only 2 of the 3 have virtual box access.

1) No virtual box access
2) Yes virtual box access
3) Yes virtual box access

Assume I have 2 guest OS. I want user #2 to only access 1 guest OS and user #3 to access both guest OS.

Is this possible?
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Limit guest OS access?

Post by vbox4me2 »

Yes by using groups and assigning proper rights to the xml folder(s) and VDI location(s).
cat2005
Posts: 52
Joined: 11. Aug 2009, 03:45
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux & Windows
Location: Kansas City, MO

Re: Limit guest OS access?

Post by cat2005 »

vbox4me2 wrote:Yes by using groups and assigning proper rights to the xml folder(s) and VDI location(s).

I have a dumb followup question: Would this be done through your host OS or the Virtualbox console?
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Re: Limit guest OS access?

Post by TerryE »

Host OS access control. It is quite trick to set up especially if your host OS allows multi-user log on. Basically you need to use the VBOX_USER_HOME env variable (see UG) so that the users all point to the same .VirtualBox hierarchy. You can use group membership and group access (or ACLs on Windows) to control if an individual user has access to a given VM. Probably the easiest way is to open everything to the three users apart from the VM directories. Note that if users attempts to access a "forbidden" VM then they error message that they will get will be somewhat confusing for them.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
cat2005
Posts: 52
Joined: 11. Aug 2009, 03:45
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux & Windows
Location: Kansas City, MO

Re: Limit guest OS access?

Post by cat2005 »

Hmm....I may try that when I get that far.

Thanks.
Post Reply