Page 1 of 1

Settings are stored where?

Posted: 12. Dec 2013, 15:54
by MordyT
Hi team,
I am setting up and deploying vBox for our school students to use. They need an environment that is isolated (except one share) where they can work without restrictions.
I was reading up on this and everyone is saying (use vboxsdl) use vbox and lock down the gui/etc through vbox manage commands - which I can do.
What I now need to know is where are those settings saved so I can push those out to the school PCs. Maybe a XML file?
Need location/name for both global and vm specific restrictions.

In addition, any tips, tricks, etc that you have (yes, I already know about chapter 9) would always be appreciated.
Thanks!

Re: Settings are stored where?

Posted: 12. Dec 2013, 17:01
by mpack
See section 10.1 of the user manual.

Re: Settings are stored where?

Posted: 12. Dec 2013, 17:43
by MordyT
That talks about where the vm files for the machines are.
I need the files that control stuff such as GUI/customizations restrictions.

Thanks,

Re: Settings are stored where?

Posted: 12. Dec 2013, 18:01
by mpack
You asked where the settings are saved. They are saved in the files mentioned. Are you asking for the config fields to be itemized? AFAIK that information is only in the source code. XMLs are meant to be manipulated using VBoxManage or the GUI.

Re: Settings are stored where?

Posted: 12. Dec 2013, 19:00
by MordyT
Hi,
First let me thank you for all your help so far.
I have created a deployable package of virtualbox. That will push out the system to the PC that students use. However, I need to lock down the GUI that they see. In chapter 9, it talks about using commands in vBoxManage, such as GUI/Restrictions noSelector. I need to apply that setting to many many computers at once.

According to h t t p s://forums.virtualbox.o r g/viewtopic.php?f=6&t=55553 (see last post), these restrictions are saved in a virtualbox.xml file.
What I am looking for is where is this file (that has global settings) stored?
If they are stored in the $Home area (mentioned in section 10.1), that is fine. But I suspect they are in the c:\program files\oracle\virtualbox\ directory?

Once I know where the file is, I can send that file out with group policy. Otherwise, I will need to modify my deployment package with a script to run the commands locally. And more scripts if we ever need to change anything. It gets messy.

Re: Settings are stored where?

Posted: 12. Dec 2013, 19:14
by mpack
Global settings are stored in VirtualBox.xml, which is stored in the <userhome>\.VirtualBox folder.

Nothing is stored in the Program Files\... area except executables. Nothing changeable.

Re: Settings are stored where?

Posted: 12. Dec 2013, 20:48
by MordyT
mpack wrote:Global settings are stored in VirtualBox.xml, which is stored in the <userhome>\.VirtualBox folder.

Nothing is stored in the Program Files\... area except executables. Nothing changeable.
Thank you for that information.

Is there anyway to change the settings for all users that use a PC without copying that file to each and every one?

Re: Settings are stored where?

Posted: 12. Dec 2013, 20:51
by mpack
You can override the path to VirtualBox.xml using the VBOX_USER_HOME environment variable.

Re: Settings are stored where?

Posted: 12. Dec 2013, 20:55
by MordyT
mpack wrote:You can override the path to VirtualBox.xml using the VBOX_USER_HOME environment variable.
Perfect. I was reading something about that in the manual earlier.
I will attempt that and be back if I have more questions.

Thank you again for all your help!