Ticket #9969 (closed enhancement: worksforme)

Opened 9 years ago

Last modified 7 years ago

Feature Request: Show IP address of the guest in Session Information

Reported by: eRadical Owned by:
Component: other Version: VirtualBox 4.1.6
Keywords: Session Information, IP Cc:
Guest type: other Host type: other

Description (last modified by frank) (diff)

In "Session Information" it would be nice to provide the IP address of the guest OS.

This way I would not need to log in into the virtual machine, issue "ifconfig" to find out the IP.

If this is only possible after VBoxAdditions... it's ok too.

Change History

comment:1 follow-up: ↓ 2 Changed 9 years ago by frank

Just hover over the network icon of the VM (after the Additions are running)...

comment:2 in reply to: ↑ 1 Changed 9 years ago by eRadical

Replying to frank:

Just hover over the network icon of the VM (after the Additions are running)...

You're right indeed but if it's started with VBoxHeadless I can't do that.

I have found a way to find out the IP... but I believe it's a little bit too much:

VBoxManage guestproperty enumerate {`VBoxManage list runningvms | awk -F"{" '{print $2}'` | grep \
IP | awk -F"," '{print $2}' | awk '{print $2}'

Can we please have a shortcut... for both cli & Session Information ?

comment:3 Changed 9 years ago by frank

Well, if you are talking about the session information then you are not talking about a headless VM, are you? And what a shortcut do you mean? And the guest properties don't need to be enumerated of course, you can fetch the item you are interested in.

comment:4 Changed 9 years ago by eRadical

Virtual Box Manager is running.
A virtual machine is started with VBoxHeadless.

In Virtual Box Manager I would like to get IP from "Session Information".
In command line it would be nice:

VBoxManage list ip [<uuid>|<name>]
  • Without argument would list each running vm with it's IP
  • With argument would list only that running vm IP

comment:5 Changed 8 years ago by frank

  • Status changed from new to closed
  • Resolution set to worksforme
  • Description modified (diff)


VBoxManage guestproperty enumerate VM_NAME | grep "Net.*V4.*IP"

comment:6 Changed 7 years ago by denis-aes

I've implemented script for node.js to list rinning vbox machines and there network addresses. Checked in Windows / OS X. Should work in Linux.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use