I need to set up a small internal VB guest network where one of the guests will act as a DHCP server for the others but all guests can still access the internet. I therefore selected the "NAT Network" type of networking. However I'm stuck with the first guest already: When using NAT Network, the guest cannot resolve names.
On the guest (Ubuntu 14.04 LTS) I see
Code: Select all
$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 08:00:27:6e:5d:50
inet addr:10.0.2.4 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe6e:5d50/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3665 errors:0 dropped:0 overruns:0 frame:0
TX packets:1212 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4322976 (4.3 MB) TX bytes:167499 (167.4 KB)
$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.0.2.1 0.0.0.0 UG 0 0 0 eth0
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search this.is.our.domain
$
Code: Select all
$ ping 10.0.2.1
PING 10.0.2.1 (10.0.2.1) 56(84) bytes of data.
From 10.0.2.4 icmp_seq=1 Destination Host Unreachable
From 10.0.2.4 icmp_seq=2 Destination Host Unreachable
From 10.0.2.4 icmp_seq=3 Destination Host Unreachable
^C
--- 10.0.2.1 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4016ms
pipe 3
$ nslookup some.known.host
;; connection timed out; no servers could be reached
$
Code: Select all
$ VBoxManage list dhcpservers
NetworkName: FAINATNetwork
IP: 10.0.2.3
NetworkMask: 255.255.255.0
lowerIPAddress: 10.0.2.4
upperIPAddress: 10.0.2.254
Enabled: Yes
$
$ VBoxManage list natnetworks
NetworkName: FAINATNetwork
IP: 10.0.2.1
Network: 10.0.2.0/24
IPv6 Enabled: No
IPv6 Prefix:
DHCP Enabled: Yes
Enabled: Yes
loopback mappings (ipv4)
127.0.0.1=2
$
Code: Select all
[...]
04:23:49.725479 nspr-4 VM 'faiserver' starts using NAT network 'FAINATNetwork'
04:23:49.953535 nspr-4 Error NS_ERROR_FAILURE starting NAT network 'FAINATNetwork'
04:23:49.982841 nspr-3 HostDnsMonitorProxy::GetNameServers:
04:23:49.982864 nspr-3 name server 1: 123.45.67.89
04:23:49.982938 nspr-5 HostDnsMonitorProxy::GetDomainName: this.is.our.domain
I'm at a loss here. Any suggestions on what the problem could be or how I could debug the issue?
Cheers
frank