Page 1 of 1

i have some trouble about Guest control feature

Posted: 8. May 2012, 06:07
by jianghao
hi !~ everybody!
i have a trouble about Guest control feature
first this is my lab:
host os: win7 32bit
guest os: winxp 32bit

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe list hostinfo
Host Information:

Host time: 2012-05-08T03:26:36.207000000Z
Processor online count: 2
Processor count: 2
Processor#0 speed: unknown
Processor#0 description: AMD Athlon(tm) II X2 250 Processor
Processor#1 speed: unknown
Processor#1 description: AMD Athlon(tm) II X2 250 Processor
Memory size: 3325 MByte
Memory available: 1734 MByte
Operating system: Windows 7
i want to control the VM by using host os, so read the The official document, and i find the guest control feature

1.execute action:
1) i poweron my VM-winxp;

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe list runningvms
"winxp" {49d64c75-9a9c-467b-a247-c244faae0c73}
2) i installed virtualbox additions tools already;

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe showvminfo winxp | find /i "additions"
Additions run level:                 3
Additions version:                   4.1.12r77218
3) first i run exec commnad it's ok;

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe guestcontrol winxp exec --image "c://windows//syst
em32//ipconfig.exe" --username administrator --password virtualbox --wait-exit --wait-stdout --verbo
se
Waiting for guest to start process ...
Process 'c://windows//system32//ipconfig.exe' (PID: 10) started
Waiting for process to exit ...

Windows IP Configuration


Ethernet adapter 鏈湴杩炴帴:

        Connection-specific DNS Suffix  . :
        Autoconfiguration IP Address. . . : 169.254.143.107
        Subnet Mask . . . . . . . . . . . : 255.255.0.0
        Default Gateway . . . . . . . . . : Exit code=0 (Status=2 [successfully terminated], Flags=0
)
4)but if i want to use "net user virtualbox virtualbox /add" it's has some problem( the command stdout is success,but donnot execute successfully);

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe guestcontrol winxp exec --image "c://windows/syste
m32/net.exe" --username administrator --password virtualbox --verbose --wait-exit --wait-stdout -- "
user virtualbox virtualbox /add"
Waiting for guest to start process ...
Process 'c://windows/system32/net.exe' (PID: 12) started
Waiting for process to exit ...
Exit code=1 (Status=2 [successfully terminated], Flags=0)

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe guestcontrol winxp exec --image "c://windows/syste
m32/net.exe" --username administrator --password virtualbox --verbose --wait-exit --wait-stdout -- "
user"
Waiting for guest to start process ...
Process 'c://windows/system32/net.exe' (PID: 16) started
Waiting for process to exit ...

\\DBC0320IYL 鐨勭敤鎴峰笎鎴?

-------------------------------------------------------------------------------
Administrator            Guest                    HelpAssistant
SUPPORT_388945a0
鍛戒护鎴愬姛瀹屾垚銆?
Exit code=0 (Status=2 [successfully terminated], Flags=0)
2. copyfrom action:
1) if i want to copy a file from guest to host, in the source path and destination path i must point the filename, if i donnot point it, it will fail;

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe guestcontrol winxp copyfrom "c://windows/system32/
/ipconfig.exe" "c://virtualbox//ipconfig.exe" --username administrator --password virtualbox --verbo
se
Copying from guest to host ...
Directory "c://virtualbox/" already exists
Source: c://windows/system32//ipconfig.exe
Copying "c://windows/system32//ipconfig.exe" to "c://virtualbox/ipconfig.exe" ...
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
2)

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe guestcontrol winxp copyfrom "c://windows/system32/
/ipconfig.exe" "c://virtualbox" --username administrator --password virtualbox --verbose
Copying from guest to host ...
Directory "c:/" already exists
Source: c://windows/system32//ipconfig.exe
Copying "c://windows/system32//ipconfig.exe" to "c:/virtualbox" ...
0%...
Progress state: VBOX_E_IPRT_ERROR
VBoxManage.exe: error: Unable to create/open destination file "c:/virtualbox", rc=VERR_ACCESS_DENIED
.
VBoxManage.exe: error: Error processing "c://windows/system32//ipconfig.exe", rc=VERR_GENERAL_FAILUR
E
3)if i copy a directory from guest to host, at bennging it's ok, but in the end it will error;

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe guestcontrol winxp copyto "c://windows//system32//
*.dll" "c://virtualbox//" --username administrator --password virtualbox --verbose --follow --recursive
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
File: api-ms-win-security-base-l1-1-0.dll
Copying "c://windows//system32/api-ms-win-security-base-l1-1-0.dll" to "c://virtualbox/a
curity-base-l1-1-0.dll" ...
0%...
Progress state: VBOX_E_IPRT_ERROR
VBoxManage.exe: error: Client reported error VERR_NOT_FOUND while processing input data.
VBoxManage.exe: error: Error processing "c://windows//system32", rc=VERR_GENERAL_FAILURE
3. copyto action:
1) if a use copyto action to copy a file ,it's no problem;

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe guestcontrol winxp copyto "c://windows//system32//ip
config.exe" "c://" --username administrator --password virtualbox --verbose
Copying from host to guest ...
Directory "c://" already exists
Source: c://windows/system32/ipconfig.exe
Copying "c://windows/system32/ipconfig.exe" to "c:/ipconfig.exe" ...
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
2)

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe guestcontrol winxp copyto "c://windows//system32//ip
config.exe" "c://ipconfig.exe" --username administrator --password virtualbox --verbose
Copying from host to guest ...
Directory "c:/" already exists
Source: c://windows/system32/ipconfig.exe
Copying "c://windows/system32/ipconfig.exe" to "c:/ipconfig.exe" ...
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
3)if i copy a directory from guest to host, at bennging it's ok, but in the end it will error;

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe guestcontrol winxp copyto "c://windows//system32//
*.dll" "c://" --username administrator --password virtualbox --verbose --follow --recursive
Progress state: VBOX_E_IPRT_ERROR
VBoxManage.exe: error: Client reported error VERR_NOT_FOUND while processing input data.
VBoxManage.exe: error: Error processing "c://windows//system32", rc=VERR_GENERAL_FAILURE
4. mkdir action:
1) the mkdir action have no problem;

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe guestcontrol winxp createdir "c://virtualbox/test"
 --username administrator --password virtualbox --parents --verbose
Creating 1 directories ...
Creating directory "c://virtualbox/test" ...
5. updateadditions actions (windows only , GNU/linux is not supported)
1) if i want to upgrade the guest additions; it will hang in 20%(i waited here a long time);

Code: Select all

 C:\Program Files\Oracle\VirtualBox>VBoxManage.exe guestcontrol winxp updateadditions --source "C:\Pr
ogram Files\Oracle\VirtualBox\VBoxGuestAdditions.iso" --verbose
Updating Guest Additions ...
Using source: C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso
0%...10%...20%...
2)

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe guestcontrol winxp updateadditions --source "C://P
rogram Files//Oracle//VirtualBox//VBoxGuestAdditions.iso" --verbose
Updating Guest Additions ...
Using source: C://Program Files//Oracle//VirtualBox//VBoxGuestAdditions.iso
0%...10%...20%...
Progress state: VBOX_E_IPRT_ERROR
VBoxManage.exe: error: Client reported error VERR_NOT_FOUND while processing input data.
According to the experience use the guest control feature must be very carefull about slash and Absolute path,or it will have problem, Even noticed these matters,it will alos have some problems.

anybody can help me ?
thanks everybody !
My English writing ability is not good,Bear with me a lot

Re: i have some trouble about Guest control feature

Posted: 17. Dec 2013, 22:02
by mVincent
sorry to bump this thread. was encountering same problem..
any input about these issues?
3)if i copy a directory from guest to host, at bennging it's ok, but in the end it will error;

CODE: SELECT ALL EXPAND VIEW
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe guestcontrol winxp copyto "c://windows//system32//
*.dll" "c://" --username administrator --password virtualbox --verbose --follow --recursive
Progress state: VBOX_E_IPRT_ERROR
VBoxManage.exe: error: Client reported error VERR_NOT_FOUND while processing input data.
VBoxManage.exe: error: Error processing "c://windows//system32", rc=VERR_GENERAL_FAILURE
i'm still experiencing these issues on

version: VirtualBox 4.3.2
Host: Win7x86 SP1
Guest: Win7x86 SP1

Re: i have some trouble about Guest control feature

Posted: 18. Dec 2013, 11:41
by noteirak
In the command, in the windows path, try with back slashes instead of forward slashes