VirtualBox

Custom Query (16363 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (1711 - 1713 of 16363)

Ticket Resolution Summary Owner Reporter
#14717 fixed guestcontrol run / start don't setup user environment in windows guests rahoe
Description

guestcontrol run / guestcontrol start don't setup the right user environment in the Windows guest when starting an application.

Starting an application with VirtualBox 4 "guestcontrol execute" leads to a windows environment like that:

APPDATA=C:\Users\rahoe\AppData\Roaming
LOCALAPPDATA=C:\Users\rahoe\AppData\Local
TEMP=C:\Users\rahoe\AppData\Local\Temp
TMP=C:\Users\rahoe\AppData\Local\Temp
USERPROFILE=C:\Users\rahoe
...

Starting in VB 5 per "guestcontrol run":

APPDATA=C:\Windows\system32\config\systemprofile\AppData\Roaming
LOCALAPPDATA=C:\Windows\system32\config\systemprofile\AppData\Local
TEMP=C:\Windows\TEMP
TMP=C:\Windows\TEMP
USERPROFILE=C:\Windows\system32\config\systemprofile

So many applications can't work properly because they have no write permissions to profile data or temp directory.

Hints for reproducing the problem:

  • Create a windows command script "c:\testit.cmd":
    start c:\windows\system32\cmd.exe
    
  • Run it using the following command in VirtualBox 5.0.6:
    VBoxManage guestcontrol {vm-name} start --username rahoe --passwordfile password.dat -- 'c:\testit.cmd'
    
  • or
    VBoxManage guestcontrol {vm-name} start --username rahoe --passwordfile password.dat --exe 'c:\testit.cmd'
    
  • using "run" instead of "start" don't make any difference
  • Execute "set|sort" in the opened windows command shell window.
  • Compare with VirtualBox 4.3.30:
    VBoxManage guestcontrol {vm-name} execute --username rahoe --passwordfile password.dat --image 'c:\testit.cmd' 
    

Tested with following environments:

  • Host: Ubuntu Linux 14.04 x86_64
  • Guest: Windows 7
  • Guest: Windows 8.1

See also ticket #14506

Note: as a workaround I set the five environment variables listed above using the "--putenv"-Option of VBoxManage; then all tested applications works as with VirtualBox 4.3, e. g. MS Office 2010, VMWare VSphere 5.5, CorelDraw 11

#14506 fixed guestcontrol run --exe: process arguments not working DaDaniel
Description

in v4.x this command works: VBoxManage guestcontrol "vm" execute --image "C:\Windows\system32\shutdown.exe" --username Administrator --password 12345 --wait-exit -- "-s" "-f" "-t" "10"

in v5.x command "execute --image" and "--wait-exit" are unknown. New v5.x command does not pass arguments: VBoxManage guestcontrol "vm" run --exe "C:\Windows\system32\shutdown.exe" --username Administrator --password 12345 --wait-stdout -- "-s" "-f" "-t" "10"

#13454 obsolete guestcontrol rmdir recursive is broken indifferent
Description

Trying to execute rmdir --recursive fail with following output:

> VBoxManage guestcontrol "$ARG_VM_NAME" removedir "/mnt/ramdisk/$BUILD" --recursive --username $VM_USER_LOGIN --password $VM_USER_PASSWORD --verbose
Opening guest session as user 'tester' ...
Waiting for guest session to start ...
Guest session (ID 1) has been started
Removing 1 directories ...
Recursively removing directory "/mnt/ramdisk/jdk8u20-b26-20141001-140539" ...
VBoxManage: error: VERR_DIR_NOT_EMPTY
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestSession, interface IGuestSession, callee nsISupports
VBoxManage: error: Context: "DirectoryRemoveRecursive(Bstr(it->first).raw(), ComSafeArrayAsInParam(aRemRecFlags), pProgress.asOutParam())" at line 2803 of file VBoxManageGuestCtrl.cpp
Closing guest session ...

Host: openSUSE 13.1 x86_64 Guest: RHEL 6.5 x86_64, also can be reproduced on other linux guests.

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy