For cmd Iam using
Code: Select all
vboxmanage guestcontrol w10 run --exe C:\\Windows\\System32\\cmd.exe --timeout 1000 --username testuser --password testuser --wait-stdout -- cmd.exe /c echo hi Code: Select all
vboxmanage guestcontrol w10 run --exe C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe --timeout 1000 --username testuser --password testuser --wait-stdout -- powershell.exe -InputFormat none -NoLogo -NonInteractive -NoProfile -Command echo hi I am running vbox 5.2.34_Ubuntur133883 on my host system. Guest additions 5.2.34 on the Windows client (10.0.18362).
Any ideas how to decrease the number of random timeouts happening? If you require more information / logs I will try to provide anything required to solve this.
| Edit: |
Simple test script (tests run for like 15min)
Code: Select all
#!/bin/bash
readonly ITERATIONS=1000
readonly ITERATION_PROGRESS=$((ITERATIONS/10))
readonly ITERATION_PERC=$((ITERATIONS/100))
function print_progress {
if [ $(($1 % $ITERATION_PROGRESS)) -eq 0 ]; then
echo -n "...$(($1 / $ITERATION_PERC))"
fi
}
echo "#################################"
echo "Starting powershell test suite"
echo "#################################"
fail_counter=0
start=$(date +%s)
for i in $(seq 1 $ITERATIONS) ; do
if ! vboxmanage guestcontrol w10 run --exe C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe --timeout 1000 --username testuser --password testuser --wait-stdout -- powershell.exe -InputFormat none -NoLogo -NonInteractive -NoProfile -Command echo hi > /dev/null 2>&1; then
((++fail_counter))
fi
print_progress $i
done
end=$(date +%s)
echo ""
echo "timeouts: $fail_counter"
echo "runtime: $((end-start))"
echo ""
echo "#################################"
echo "Starting cmd test suite"
echo "#################################"
fail_counter=0
start=$(date +%s)
for i in $(seq 1 $ITERATIONS) ; do
if ! vboxmanage guestcontrol w10 run --exe C:\\Windows\\System32\\cmd.exe --timeout 1000 --username testuser --password testuser --wait-stdout -- cmd.exe /c echo hi > /dev/null 2>&1; then
((++fail_counter))
fi
print_progress $i
done
end=$(date +%s)
echo ""
echo "timeouts: $fail_counter"
echo "runtime: $((end-start))"