I have started virtualmachine using virtualbox in a remote machine (Cent OS) in headless mode with bridgenetwork settings. I have attached a hard disk which already has ubuntu 11.10 installed on it ?

Is there any way i can find out which ip address was allocated to the VirtualBox when it has started ?

I tried going through logs but i am not able to find anything ? I cannot do a remote desktop in to the machine, so i am wondering if i can somehow find out the ip address allocated and then ssh in to the machine directly.

I am not sure how possible is this but i just wanted to ask if any one has encountered this kind of situation.

Thank you

migrated from stackoverflow.com Oct 31 '12 at 8:59

This question came from our site for professional and enthusiast programmers.


The guest IP address is chosen by the DHCP server in the network your host system is attached to. As bridged network traffic is directly transfered into the hosts network adapter you will not find anything in the logs on the host system.

Therefore there are two possibilities:

  1. Use the MAC address of the guest system and try to compare it with the data from the DHCP server
  2. If the guest is in the same subnet as the host perform a full nmap subnet scan with running guest and afterwards with paused/shutdown guest. On of the missing hosts should be the virtual machine.
  • Thank you. I have overcome the problem when the system administrator allowed me to do X forwarding. – kich Nov 1 '12 at 14:35

Assuming it's on the same subnet as your host machine, you could run an IP scanner and just look for IP addresses that are in use. If your host is Windows, then Angry IP Scanner is a good choice (there are other choices too). If your host is Linux, and install and use arp-scan. The command

arp-scan -l

will scan the subnet that you are currently on, and show IP addresses matched with MAC addresses. The Virtualbox network settings should tell you what your guest's MAC address is.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.