How to getextradata enumerate 'all'?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
chumpster
Posts: 16
Joined: 23. Aug 2008, 18:02

How to getextradata enumerate 'all'?

Post 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?
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Post 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

Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Post 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:
chumpster
Posts: 16
Joined: 23. Aug 2008, 18:02

Post 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!
Post Reply