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

2016-11-22 Thread Klaus Espenlaub
Hi Malcolm, On 21.11.2016 23:34, Malcolm Clarke wrote: Dear Klaus Thank you for your response. You have not understood the issue that is being reported. I have made an effort to examine code to understand, but the software is complex, with a multiplicity of "methods" to acquire the director

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

2016-11-21 Thread Malcolm Clarke
Dear Klaus Thank you for your response. You have not understood the issue that is being reported. I have made an effort to examine code to understand, but the software is complex, with a multiplicity of "methods" to acquire the directory for the configuration file (eg search for "HOMEDRIVE").

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 20.11.20

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); RTUTF16

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

2016-11-10 Thread Klaus Espenlaub
I can't answer the question why you always end up with a new file... that's making no sense. What I can tell you is that this part of the the documentation is actually outdated and will be fixed soon. VirtualBox uses %USERPROFILE% or %HOMEDRIVE%%HOMEPATH% only as a fallback if the Windows fu

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 VirtualB

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 shall

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

2016-10-28 Thread Malcolm Clarke
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 shall use VBOX_USER_HOME, which ought to provide a proper fix as this can point at the hom

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 d

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 t

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 stor

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 try.

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 D

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