Technologov wrote:try :
VBoxManage guestcontrol exec "LinuxVM" "/bin/ping" --arg "10.0.2.2 -c 4" --verbose --wait-for stdout --username myuser --password 123456
Oops, I'm sorry to say, that was fully my fault. I used rather old version of VBoxGuestAdditions, and as soon as I updated it to 3.2.4, the problem gone away:
Code: Select all
C:\Users\DIM>VBoxManage guestcontrol execute "Mandriva2010" "/bin/ping" --arg "10.0.2.2 -c 4" --verbose --wait-for stdout --username user
Oracle VM VirtualBox Command Line Management Interface Version 3.2.4
(C) 2005-2010 Oracle Corporation
All rights reserved.
Waiting for guest to start process ...
Process '/bin/ping' (PID: 5006) started
Waiting for process to exit ...
PING 10.0.2.2 (10.0.2.2) 56(84) bytes of data.
64 bytes from 10.0.2.2: icmp_seq=1 ttl=63 time=4.39 ms
64 bytes from 10.0.2.2: icmp_seq=2 ttl=63 time=0.385 ms
64 bytes from 10.0.2.2: icmp_seq=3 ttl=63 time=0.361 ms
64 bytes from 10.0.2.2: icmp_seq=4 ttl=63 time=0.323 ms
--- 10.0.2.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 0.323/1.366/4.396/1.749 ms
Exit code=0 (Status=2 [successfully terminated], Flags=0)
Sorry for my inattention.
The next thing I did: created a simple shell-script
ls.sh with the following contents:
And tried to call it via
VBoxManage guestcontrol execute. Unfortunately, command failed, here is console output:
Code: Select all
C:\Users\DIM>VBoxManage --nologo guestcontrol execute "Mandriva2010" "/home/user/ls.sh" --username user --verbose --wait-for stdout
Waiting for guest to start process ...
Process '/home/user/ls.sh' (PID: 5562) started
Waiting for process to exit ...
!!Assertion Failed!!
Expression: <none>
Location : /mnt/tinderbox/add-3.2/src/VBox/Runtime/r3/posix/process-posix.cpp(396) int RTProcCreateEx(const char*, const char* const*, RTENVINTERNAL*, unsigned
int, const RTHANDLE*, const RTHANDLE*, const RTHANDLE*, const char*, const char*, RTPROCESS*)
execve returns -1 errno=8
Process error details:
ERROR: Process terminated via signal with status '5'
Details: code E_FAIL (0x80004005), component Guest, interface IGuest, callee
Exit code=5 (Status=3 [terminated by signal], Flags=0)
However,
ls.sh successfully works if I call it inside Mandriva guest system.
Is it a known issue?