Page 1 of 1

Using VBoxSDL with unprivileged users

Posted: 18. May 2009, 17:50
by Fargo73
Hi

I'm new to this forum, and recently started working on VirtualBox, which I think is very good. :wink:
But I got one problem.

I have this scenario:
Host: Windows 2003 Server
Guests: Windows 2000 Pro
VirtualBox has been installed and configured as Administrator, and my VMs work just as expected.
Now I need to access these virtual machines from unprivileged users (members of group Users) and I wanted to use VBoxSDL to do it.

Unfortunately I do not find a way to make it work.
My xml files and vdi files are kept in C:\Documents and Settings\Administrator\.VirtualBox.

If I try to run VBoxVDL from one of these users, I will get this error message:
C:\Program Files\Sun\xVM VirtualBox>VBoxSDL --startvm my-vm
Sun VirtualBox SDL GUI version 2.2.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Failed to create VirtualBox object! Error info:
Could not lock the settings file 'C:\Documents and Settings\user1\.VirtualBox\VirtualBox.xml' (VERR_SHARING_VIOLATION)
(component VirtualBox).

Even if the above file is owned by the user.

Is there a way to migrate VMs I have created as admin and run them with unprivileged users?
Consider that I would need to have different users to run a VM each. And that is the only thing they should do (so they have to be limited on everything else).
Every user would have a batch script to run its own VM.
Any hint? :idea:

Thank you :P

Re: Using VBoxSDL with unprivileged users

Posted: 18. May 2009, 18:27
by vbox4me2
See the manual, section "9 Advanced topics" and give the users group access to where ever you move the xml's to.

Re: Using VBoxSDL with unprivileged users

Posted: 20. May 2009, 22:18
by Fargo73
Thanks vbox4me2!
This hint helped me solve my problem.