i have some trouble about Guest control feature
Posted: 8. May 2012, 06:07
hi !~ everybody!
i have a trouble about Guest control feature
first this is my lab:
host os: win7 32bit
guest os: winxp 32bit
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;
2) i installed virtualbox additions tools already;
3) first i run exec commnad it's ok;
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);
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;
2)
3)if i copy a directory from guest to host, at bennging it's ok, but in the end it will error;
3. copyto action:
1) if a use copyto action to copy a file ,it's no problem;
2)
3)if i copy a directory from guest to host, at bennging it's ok, but in the end it will error;
4. mkdir action:
1) the mkdir action have no problem;
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);
2)
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
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 71.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}Code: Select all
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe showvminfo winxp | find /i "additions"
Additions run level: 3
Additions version: 4.1.12r77218Code: 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
)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)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%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
ECode: 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_FAILURE1) 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%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%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_FAILURE1) 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" ...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%...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.anybody can help me ?
thanks everybody !
My English writing ability is not good,Bear with me a lot