VirtualBox

Opened 11 years ago

Closed 8 years ago

#11703 closed defect (obsolete)

VBoxManage doesn't set environment for child process spawned via VBoxManage guescontrol exec

Reported by: boomgoesthedrum Owned by:
Component: guest control Version: VirtualBox 4.2.12
Keywords: Cc:
Guest type: Windows Host type: Windows

Description

I am launching a browser in a VM via "VBoxManage guestcontrol VMNAME exec --username Administrator ...".

The browser launch winds up using the wrong profile. I tracked the problem down to the environment not being setup correctly. I wrapped the executable in a .bat file that sets the environment as below and it seems to launch properly. I'm not sure what the universally correct way to set the environment would be but this seems to be an issue that should be addressed.

set APPDATA=C:\Documents and Settings\Administrator\Application Data set HOMEPATH=\Documents and Settings\Administrator set USERNAME=Administrator set USERPROFILE=C:\Documents and Settings\Administrator

Change History (4)

comment:1 by SimonH, 11 years ago

This seems to be a regression. I've just encountered the same problem, after upgrading from 4.1.x to 4.2.12. In 4.1 the full environment was available. In 4.2, many of the system-defined values are missing - I see APPDATA in a command prompt, but it's not present when running via VBoxManage guestcontrol. It definitely worked in 4.1.

comment:2 by Aiko Mastboom, 11 years ago

I have the same issue, starting IE for testing purposes "Karma" http://karma-runner.github.io/ Host Ubuntu Lucid, VirtualBox 4.1.26 ( downgraded initially due to https://www.virtualbox.org/ticket/11044 ) client Windows Vista with IE9

Thanks to above tip, I can at least run IE 9 without it complaining about not being allowed to write to localStorage.

comment:3 by kidault, 11 years ago

Component: guest control Version: VirtualBox 4.2.18 Guest type: Windows XP 32bit Host type: Windows 7 pro 64bit

I have the same issue, start Autocad from host, and in guest,it complains about can not find configuration in "C:\Windows\system32\config\systemprofile\AppData\Autocad"。

comment:4 by aeichner, 8 years ago

Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use