VirtualBox

Opened 12 years ago

Closed 11 years ago

Last modified 10 years ago

#9969 closed enhancement (worksforme)

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

Reported by: Gabriel PREDA 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 Mehnert)

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 (6)

comment:1 by Frank Mehnert, 12 years ago

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

in reply to:  1 comment:2 by Gabriel PREDA, 12 years ago

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 by Frank Mehnert, 12 years ago

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 by Gabriel PREDA, 12 years ago

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 by Frank Mehnert, 11 years ago

Description: modified (diff)
Resolution: worksforme
Status: newclosed

Try

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

comment:6 by denis-aes, 10 years ago

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.

https://github.com/denis-aes/vmip

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use