Hi,
I had to make the following changes for VirtualBox-4.0-4.0.4_70112_rhel5-1.x86_64.rpm so I'd like to submit my patch. Feel free to adapt it to keep backward compatibility.
diff vboxtool-original/script/vboxtool /usr/local/bin/vboxtool
189c189
< vrdp_port=`$vbox_command showvminfo $uuid | grep VRDP | awk '{ print $6}'`
---
> vrdp_port=`$vbox_command showvminfo $uuid | grep 'VRDE property: TCP/Ports' | awk '{ print $5}'`
190a191
> vrdp_port="`echo $vrdp_port | sed 's@^"@@g' | sed 's@"$@@g'`"
318c319
< $vbox_command startvm $uuid -type vrdp
---
> $vbox_command startvm $uuid -type headless
353c354
< $vbox_command modifyvm $uuid -vrdpport $vrdp_port_config
---
> $vbox_command modifyvm $uuid --vrdeport $vrdp_port_config
403c404
< $vbox_command startvm $uuid -type vrdp
---
> $vbox_command startvm $uuid -type headless