VBox settings are not saved as of 4.3.22
Posted: 22. Jun 2015, 17:45
Hi
since 4.3.22 to 4.3.28 changes to vbox settings are not saved to the home directory anymore (c:\Users\[username]\.VirtualBox) but only in a special case as i will describe (it did work well in 4.3.20)
i suspect the problem is related to:
"Settings: on Windows host, do not use environment variable HOME at all, the settings location is derived from the user profile directory (bug #7689)"
https://www.virtualbox.org/ticket/7689
and
https://www.virtualbox.org/ticket/4742
in my case, if i open the VBox GUI or if i issue a VboxManage from a cmd window, the settings will be saved to c:\Users\[username]\.VirtualBox
but i have an installer program (wix) that run a console app that issue various VBoxManage commands, such as registering a machine (adding a .vbox file), starting a machine (headless), powering off a machine, etc..
when i look in my installer log file i can see that all VboxManage commands runs successfully, but when the installer finish, no settings appear in c:\Users\[username]\.VirtualBox, so all my "changes" are gone.
i've tried to remove the settings folder, and when the installer is done, no settings file is created at all.
it seems that VboxManage commands runs fine, but the settings are not persistent to the settings folder (maybe VBoxSvc??? to blame, or the state/permissions the installer is running which 4.3.22 ignore somehow)
if i run my installer against VBox 4.3.20 all is good (and it was tested on a few thousands machines)
i do have HOMEDRIVE & HOMEPATH variables defined on my machine
please advice.
Update: 23/6/15:
After enabling release logs, i found out that the logs & settings are now saved in the system profile account folder (C:\Windows\system32\config\systemprofile\.VirtualBox).
i can only guess that my wix installer custom action is running under the LocalSystem account which results in the settings & logs to be saved to this folder.
then, the main Vbox ui when opened is looking into the user profile settings folder and don't see these changes.
this behavior was different until 4.3.20, and it seems very drastic for a minor release
is there anyway i can still direct my settings to be saved into the user folder? maybe allow the previous behavior to be optional?
since 4.3.22 to 4.3.28 changes to vbox settings are not saved to the home directory anymore (c:\Users\[username]\.VirtualBox) but only in a special case as i will describe (it did work well in 4.3.20)
i suspect the problem is related to:
"Settings: on Windows host, do not use environment variable HOME at all, the settings location is derived from the user profile directory (bug #7689)"
https://www.virtualbox.org/ticket/7689
and
https://www.virtualbox.org/ticket/4742
in my case, if i open the VBox GUI or if i issue a VboxManage from a cmd window, the settings will be saved to c:\Users\[username]\.VirtualBox
but i have an installer program (wix) that run a console app that issue various VBoxManage commands, such as registering a machine (adding a .vbox file), starting a machine (headless), powering off a machine, etc..
when i look in my installer log file i can see that all VboxManage commands runs successfully, but when the installer finish, no settings appear in c:\Users\[username]\.VirtualBox, so all my "changes" are gone.
i've tried to remove the settings folder, and when the installer is done, no settings file is created at all.
it seems that VboxManage commands runs fine, but the settings are not persistent to the settings folder (maybe VBoxSvc??? to blame, or the state/permissions the installer is running which 4.3.22 ignore somehow)
if i run my installer against VBox 4.3.20 all is good (and it was tested on a few thousands machines)
i do have HOMEDRIVE & HOMEPATH variables defined on my machine
please advice.
Update: 23/6/15:
After enabling release logs, i found out that the logs & settings are now saved in the system profile account folder (C:\Windows\system32\config\systemprofile\.VirtualBox).
i can only guess that my wix installer custom action is running under the LocalSystem account which results in the settings & logs to be saved to this folder.
then, the main Vbox ui when opened is looking into the user profile settings folder and don't see these changes.
this behavior was different until 4.3.20, and it seems very drastic for a minor release
is there anyway i can still direct my settings to be saved into the user folder? maybe allow the previous behavior to be optional?