Page 1 of 1

Problem obtaining guest os's ip

Posted: 11. Jan 2012, 06:49
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

Re: Problem obtaining guest os's ip

Posted: 11. Jan 2012, 12:15
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.

Re: Problem obtaining guest os's ip

Posted: 23. Jan 2012, 08:50
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