how can I resolve hostname on guest?

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
jezzashea
Posts: 3
Joined: 11. Feb 2010, 11:50
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: win xp

how can I resolve hostname on guest?

Post by jezzashea »

I have set up guest (win xp) with bridged and host only adapters.

With the host (mac os x) connected to a network I can ping the host's IP address successfully and set up the guest's hosts file to resolve the host's name to this IP address.

If I disconnect the host from the network how can I ping it from the guest? What will its IP address or host name be? I have tried VBOXSRV but that doesn't resolve to anything.

Thx
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: how can I resolve hostname on guest?

Post by Perryg »

If you are going to be running this with no network attached you would need to use host-only instead of and a second adapter set to NAT or Bridged if the guest need the Internet.
jezzashea
Posts: 3
Joined: 11. Feb 2010, 11:50
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: win xp

Re: how can I resolve hostname on guest?

Post by jezzashea »

yes this is what I have done - set up one host only adapter and one bridged. When running host only how can the guest see the host though?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: how can I resolve hostname on guest?

Post by Perryg »

You can see what the IP address is by running ifconfig -a and ipconfig /all
If you did not change the address for host only it should be 192.168.56.1 for the host and 192.168.56.101 for the guest.
jezzashea
Posts: 3
Joined: 11. Feb 2010, 11:50
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: win xp

Re: how can I resolve hostname on guest?

Post by jezzashea »

Yes that's it! I can now ping from host to guest and vice versa - thanks a million!
Post Reply