Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Here is the summary.

VirtualBox 4.2.18

Host OS: Windows 7

Guest OS: Ubuntu 12.04

Networking: Bridged Adaptor

I can ping Host and other machines in host's network from ubuntu guest using hostnames. But, I can only ping the guest machine using IP address from host and network machines. I have avahi-daemon running on Guest OS.

I want to be able to ping/ssh the guest machine from host and other machines on network using hostname of the guest machine. Please help.

share|improve this question

migrated from serverfault.com Oct 30 '13 at 1:03

This question came from our site for professional system and network administrators.

    
See also superuser.com/questions/461323/543674 –  Johann Jul 3 at 22:42

1 Answer 1

The new guest VM that you created is not resolved by the other host machines in the network. You can try below solution.

Case 1:

Trying to connect to guest machine from a different host machine [say windows] in the network

open the file

C:\Windows\System32\drivers\etc\hosts

Add the following Entry

ipaddressofguest  hostname

Save the entry

From the windows host ping hostname [You will be able to connect to guest OS]

Case 2:

Trying to connect to guest machine from a different host machine [say Linux] in the network

open the file

/etc/hosts

ipaddressofguest  hostname

Save the entry

From the Linux host ping/ssh using hostname [You will be able to connect to guest OS]

Sandeep

share|improve this answer
2  
I don't have static IP addr for the guest. I want this to work without adding entry in hosts file, As guest IP might change later. –  Punit Soni Oct 30 '13 at 17:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.