Page 1 of 1

How to getextradata enumerate 'all'?

Posted: 19. Dec 2008, 18:30
by chumpster
Just a thought... or maybe a feature request. I haven't had this problem, but maybe someone working with port forwarding and multiple VMs might end up forwarding the same port 2222 or 8080 etc to more than one VM. Would an error show on start up as the second one with the same port forwarding tries to start?

To help diagnosis, is it possible to enumerate all the 'extradata', for all current VMs. Currently I only see how to do this for individual VM instances.

Any suggestions or comments?

Posted: 19. Dec 2008, 20:39
by baf
unless you are on a windows host this little script would do it:

Code: Select all

#! /bin/bash

mach=$( VBoxManage list vms |grep "Name:            [^ ]"|cut -c 18- )

for a in $mach ; do
    echo $a
    VBoxManage showvminfo $a|grep ^VRDP
    VBoxManage getextradata $a enumerate|grep VBoxInternal
    echo
done


Posted: 19. Dec 2008, 22:48
by Sasquatch
baf wrote:unless you are on a windows host this little script would do it:

Code: Select all

#! /bin/bash

mach=$( VBoxManage list vms |grep "Name:            [^ ]"|cut -c 18- )

for a in $mach ; do
    echo $a
    VBoxManage showvminfo $a|grep ^VRDP
    VBoxManage getextradata $a enumerate|grep VBoxInternal
    echo
done

What forum part is this? Right, Windows Hosts. So no need for Linux scripts ;).

The idea can be changed to some command prompt or visual basic script though.

Posted: 20. Dec 2008, 00:06
by baf
:oops:
I was browsing "unread since last visit" So I didn't see which forum.

But you could always install cygwin and use that.
:idea:

Posted: 20. Dec 2008, 01:16
by chumpster
Thanks for Linux script ;-)

It might be a nice feature to have, to help troubleshooting, if it could be done without a script and ran the same on all platforms. Maybe a nice to have feature.

I did read somewhere, that someone asked when these features are going to be included into the GUI, instead of being command line driven. That's a nice thought also for workstation type users.

When I do a headless install on a Linux host, I'll be back to a command prompt and this nice script!