The gist of my setup is Windows 7 running Virtualbox. Within Virtualbox I have an Ubuntu VM configured using the same steps as a physical box. The physical box resolves the hostname within the home network DNS. The VM does not. Below are some of the configuration aspects of the machines and systems. The problem also exists with a CentOS 7 VM with similar system settings.
Thanks.
PDXPat
Host Operating System: Windows 7
Guest Operating System: Ubuntu 14.04.3 LTS
Virtualbox: 5.0.10
Network Adapter 1: Bridged Adapter
Network Adapter 1 Promiscuous Mode: Allow All
/etc/hosts
- 127.0.0.1 localhost
127.0.1.1 UBUNTU-SERVER-VM
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
- # This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.190
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:7a:99:88 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.190/24 brd 192.168.1.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::a00fe7a:9988/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 08:00:27:3c:60:ee brd ff:ff:ff:ff:ff:ff
- UBUNTU-SERVER-VM
- c:\>ping UBUNTU-SERVER-VM
Ping request could not find host UBUNTU-SERVER-VM. Please check the name and try
again.
c:\>