Problem obtaining guest os's ip

This is for discussing general topics about how to use VirtualBox.
Post Reply
shogun1234
Posts: 10
Joined: 31. May 2007, 22:01

Problem obtaining guest os's ip

Post by shogun1234 »

I read this thread viewtopic.php?f=1&t=36592

Then I install guest addition (device -> install guest additions). It works ok and I can see VBoxGuestAdditions_4.1.6.iso under .Virtualbox and virtualbox said it's registered.

However, a weird thing is the info of executing `VBoxManage guestproperty enumerate <guest-os-name>` seems only available for several vms, and one vm doesn't have any property to be displayed.

For instance, the first vm shows

Code: Select all

VBoxManage guestproperty get first_vm "/VirtualBox/GuestInfo/Net/0/V4/IP"
No value set!
but second vm has ip

Code: Select all

VBoxManage guestproperty get second_vm "/VirtualBox/GuestInfo/Net/0/V4/IP"
Value: 10.1.0.110
Restarting /etc/init.d/virtualbox or rebooting host os doesn't make any difference.

Where can I check to let first_vm info to be displayed correctly?

Thanks
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Problem obtaining guest os's ip

Post by mpack »

Does the VM in question have no working network connection? Is it using NAT mode? In both cases it doesn't need an IP address, and no DHCP server exists to assign one. I assume you didn't assign a static IP address.
shogun1234
Posts: 10
Joined: 31. May 2007, 22:01

Re: Problem obtaining guest os's ip

Post by shogun1234 »

mpack wrote:Does the VM in question have no working network connection? Is it using NAT mode? In both cases it doesn't need an IP address, and no DHCP server exists to assign one. I assume you didn't assign a static IP address.
The network used by guest os is `bridged adaptor'. And it is sure that guest os can access to the internet.

PING www.l.google.com (74.125.71.104) 56(84) bytes of data.
64 bytes from xxxx.xxxx.xxxx (xxx.xxx.xxx.xxx): icmp_req=1 ttl=52 time=47.9 ms
64 bytes from xxxx.xxxx.xxxx (xxx.xxx.xxx.xxx): icmp_req=2 ttl=52 time=46.6 ms
^C
Post Reply