Re: [vbox-dev] Location of VirtualBox configuration file

2016-11-21 Thread Knut St. Osmundsen
Hi Malcom. On 2016-11-20 7:55 PM, Malcolm Clarke wrote: > > Dear Max > > Still no response. > > Looking at path-win.cpp, the following code is unclear > > > RTDECL(int) RTPathUserHome(char *pszPath, size_t cchPath) > { [snip] > > Assuming this falls through to get the environment variable, then >

Re: [vbox-dev] Location of VirtualBox configuration file

2016-11-21 Thread Klaus Espenlaub
Malcolm, there was a lengthy reply to the mailing list 10 days ago sent by me, explaining what's going on. Your assumption is wrong. VirtualBox on all Windows versions worth talking about will NOT fall through, it'll use the profile directory returned by SHGetFolderPath. Klaus On

Re: [vbox-dev] Location of VirtualBox configuration file

2016-11-20 Thread Malcolm Clarke
Dear Max Still no response. Looking at path-win.cpp, the following code is unclear RTDECL(int) RTPathUserHome(char *pszPath, size_t cchPath) { /* * Validate input */ AssertPtrReturn(pszPath, VERR_INVALID_POINTER); AssertReturn(cchPath, VERR_INVALID_PARAMETER);

Re: [vbox-dev] Location of VirtualBox configuration file

2016-11-09 Thread Malcolm Clarke
On 09/11/2016 09:55, malcolm.cla...@brunel.ac.uk wrote: Dear Maxine I did not have a response from developers why the location of the configuration file is inconsistent, such that it is overwritten every time. Regards Malcolm On 28/10/2016 16:59, Maxime

Re: [vbox-dev] Location of VirtualBox configuration file

2016-10-29 Thread Malcolm Clarke
On 29/10/2016 12:11, malcolm.cla...@brunel.ac.uk wrote: Dear Maxine I do not have access to the machines to check, but we installed over the summer (~August). I would gues 5.2 or 5.4. Regards Malcolm On 28/10/2016 16:59, Maxime Dor wrote: Which

Re: [vbox-dev] Location of VirtualBox configuration file

2016-10-28 Thread Maxime Dor
Which VirtualBox version are you using? On 28/10/16 16:45, Malcolm Clarke wrote: Dear Maxine Regrettably I am not responsible for the configuration of our lab machines, this is done centrally by the University. I am just poor professor made to find workarounds for my labs. In time we

Re: [vbox-dev] Location of VirtualBox configuration file

2016-10-28 Thread Maxime Dor
I think the web documentation needs clarification on this matter, it is missleading I think (but the devs will confirm the actual behaviour). Here, this is purely a matter of proprer configuration in terms of Windows and user profile/env. I'm surprised you don't have issues with other software

Re: [vbox-dev] Location of VirtualBox configuration file

2016-10-28 Thread Malcolm Clarke
Dear Maxine It seems the web documentation is not keeping up with changes to the software? Ideas why the global configuration is not being picked up? Could it be using HOMEDRIVE HOMEPATH in one place and USERPROFILE elsewhere? Regards Malcolm On 28/10/2016 15:13, Maxime Dor wrote: I believe

Re: [vbox-dev] Location of VirtualBox configuration file

2016-10-28 Thread Malcolm Clarke
We continue to have problems with this location issue. In our labs the students have a profile script that set HOMEDRIVE to h: and HOMEPATH to \. I am expecting directories to be created and files stored in the locations H:\. This is not the case. Instead directories are created and files

Re: [vbox-dev] Location of VirtualBox configuration file

2016-10-16 Thread Andreas Löffler
Hi Malcolm, VBOX_USER_HOME also should work on Windows if you set this as system-wide variable. This of course means that this only can point to one profile at a time. If you mount the current user's profile always to the same location (e.g. "X:\VirtualBox") you can give this at least a

Re: [vbox-dev] Location of VirtualBox configuration file

2016-10-14 Thread Klaus Espenlaub
Max's answer is correct for every supported host OS besides Windows. As usual, on Windows everything is more difficult. On this OS it's COM which starts the API service, VBoxSVC.exe, and I don't know a way right now to reliably pass it the required env variable... On 14.10.2016 19:02, Maxime

Re: [vbox-dev] Location of VirtualBox configuration file

2016-10-14 Thread Maxime Dor
Hi Malcolm, You can change the location using the ||VBOX_USER_HOME|| env variable. More info here: https://www.virtualbox.org/manual/ch10.html#idm9569 Max On 14/10/16 18:52, Malcolm Clarke wrote: Dear All Although VirtualBox holds a parameter for the location of the configuration files of