0

I am currently hosting a Linux distro (the guest) inside a Windows machine (the host).

How can I find the IP address of the Linux distro from Windows?

3
  • 2
    Please edit your question to include your current networking setup in both VirtualBox and the guest OS. Jan 16, 2014 at 18:32
  • Turns out the IP's I had were actually valid and the issue was Firewall-related.
    – krystah
    Jan 16, 2014 at 19:15
  • 1
    Good to hear. You got sucked into the XY Problem it seems. Jan 16, 2014 at 19:50

2 Answers 2

2

You can use the command line VBoxManage tool, e.g.:

VBoxManage guestproperty get [vmname] "/VirtualBox/GuestInfo/Net/0/V4/IP"

More generally (in case you have more adapters, IPv6, etc):

VBoxManage guestproperty get [vmname] "/VirtualBox/GuestInfo/Net/*"

Source

8
  • 3
    It returns No value set!, while the guest does have a working connection.
    – krystah
    Jan 16, 2014 at 18:18
  • How are you setting the guest IP? This won't work 100% of the time as mentioned in the comments in the source link. If this doesn't work, I'm not sure of any other way to get the guest IP from the host (short of scanning your network).
    – ernie
    Jan 16, 2014 at 18:22
  • I am not setting the IP manually anywhere. I looked around for it in the VirtualBox settings, nothing. It still works, though.
    – krystah
    Jan 16, 2014 at 18:23
  • 1
    The question was more how your VM is set up - did you bridge an adapter, are you using IPv4, is there more than one adapter, etc. Like I said, there are limitations to this method.
    – ernie
    Jan 16, 2014 at 18:25
  • 1
    VBoxManage guestproperty enumerate [vmname] "/VirtualBox/GuestInfo/Net/*" will list all of the net-based properties.
    – Kenster
    Jan 16, 2014 at 18:41
0

If you know the VMWare OUI (first 6 characters of MAC address), you could do an arp -a and look for the IP address associated with the VMWare MAC address. Try something similar to:

arp -a | findstr "00-50-56"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .