[vbox-dev] Make a program that list all VBoxHeadless process, and VRDE port number, using internal protocol ?

Oliver Loch grimeton at gmx.net
Mon Aug 20 11:43:49 GMT 2012


something like this should work:


vms=$(vboxmanage list runningvms | sed -E 's/^\"(.*)\".*/\1/g');

for i in $vms; do

        read x _enabled x _address x _port x _multiconn x < <(vboxmanage showvminfo $i | grep -i vrde:);

        echo "$enabled $address $port $multicon";



Am 20.08.2012 um 11:24 schrieb Aaron Lewis <the.warl0ck.1989 at gmail.com>:

> Hi,
> I'm not sure how should this work, I want to list all names of running VMs (that started by VBoxHeadless), and its VRDE port number,
> Then make a very simple client that utilize rdesktop to connect.
> I can't just parse the .xml config for the machine, since some machine doesn't specify a port number in its config (that VBoxHeadless will find a random port number).
> So I'm wondering, if any internal protocol could use here
> Thanks !
> -- 
> Best Regards,
> Aaron Lewis - PGP: 0xDFE6C29E ( http://keyserver.veridis.com )
> Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E
> _______________________________________________
> vbox-dev mailing list
> vbox-dev at virtualbox.org
> https://www.virtualbox.org/mailman/listinfo/vbox-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20120820/b18eb85f/attachment.html>

More information about the vbox-dev mailing list