VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
1 2 Previous Next 21 Replies Last post: Aug 10, 2009 10:57 AM by etung  

DNS resolution via NAT breaks intermittently (beta3) posted: Apr 30, 2007 1:50 PM

Click to view jamesyonan's profile Lurker 5 posts since
Apr 14, 2007
Has anyone seen an issue on Fusion beta 3 where DNS resolution via NAT breaks?

I'm seeing a problem where DNS resolution over NAT fails for all guests currently running (in midsession), after having worked successfully for many days. The same DNS names resolve successfully on the host Mac. The DNS names are names like google.com that resolve via remote servers, i.e. they are not names in the /etc/hosts file on the host Mac.

Restarting vmnet-natd fixes the problem for only a few minutes, and then the problem reoccurs. Rebooting the Mac shows the same symptoms: DNS resolution on the guests work for a few minutes then fails.

If I try an nslookup on the guest when the DNS resolution is broken, and set the server to a remote DNS server, it still fails.

Switching the guest networking mode from NAT to bridged fixes the problem.

My guests are XP Pro and Kubutu 7.04 x64.
Click to view mykmelez's profile Hot Shot 221 posts since
Jul 29, 2007
I have this problem as well in a VM running Ubuntu 7.04, except that in my case the problem starts after about a day of using the VM. Restarting all the vmware services via fixes things for me for another day or so. I expanded the command line with full paths so I can put it in a bash alias and run it from anywhere:

[code]sudo /Library/Application\ Support/VMware\ Fusion/boot.sh --stop; sleep 2; sudo /Library/Application\ Support/VMware\ Fusion/boot.sh --start[/code]

Note: when I experience the problem, it's intermittent. DNS will come in and out (although it's more out than in).
Click to view mauricev's profile Enthusiast 107 posts since
Mar 22, 2007
I'm seeing this exact problem in our of installations of 1.0. Reported as 194674671.
Click to view tvleavitt's profile Novice 23 posts since
Nov 1, 2007
Do other network services also become inaccessible?
Click to view magi's profile Master 2,096 posts since
Aug 8, 2003
I just got pointed to this thread, which I hadn't seen before.

If anyone's still seeing this, does the problem still happen if you run "nslookup" and explicitly ask it to use an external DNS server? If so, can you run a packet sniffer such as ethereal or wireshark (in both the guest and host, if possible), and record the activity and post it here? The original post in this thread said yes, the problem still happens with external DNS servers, but the workaround of restarting vmware-natd doesn't really seem to explain that.
Click to view Bargonaut's profile Novice 20 posts since
Sep 10, 2007
This problem just started happening to me in Fusion 1.1.1 with a WinXP-SP2 guest.
Everything has been working great for months, and I don't believe I have changed
anything recently. If the network is in NAT mode, most DNS queries timeout in failure.
Everything works perfectly from the guest in bridged mode (IP directly from router),
and the Mac queries work perfectly. Somehow, the NAT service is not filling DNS requests
in time.

I ran some tests below. Please let me know what other tests may be of help.
-Brad

EDIT: my host in Mac OS X 10.4.11. Restarting Fusion helps for a few minutes,
and then lookups start to fail again. Records cached by windows continue to work.


Here is the output of nslookup from WIndows:
C:\>nslookup communities.vmware.com
DNS request timed out.
timeout was 2 seconds.

      • Can't find server name for address 192.168.184.2: Timed out
      • Default servers are not available
Server: UnKnown
Address: 192.168.184.2

DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
      • Request to UnKnown timed-out

Here is the dump from wireshark during the above query:
No. Time Source Destination Protocol Info
1 0.000000 Vmware_71:ae:bd Broadcast ARP Who has 192.168.184.2? Tell 192.168.184.131

Frame 1 (42 bytes on wire, 42 bytes captured)
Ethernet II, Src: Vmware_71:ae:bd (00:0c:29:71:ae:bd), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
2 0.004653 Vmware_f2:c5:24 Vmware_71:ae:bd ARP 192.168.184.2 is at 00:50:56:f2:c5:24

Frame 2 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Vmware_f2:c5:24 (00:50:56:f2:c5:24), Dst: Vmware_71:ae:bd (00:0c:29:71:ae:bd)
Address Resolution Protocol (reply)

No. Time Source Destination Protocol Info
3 0.005526 192.168.184.131 192.168.184.2 DNS Standard query PTR 2.184.168.192.in-addr.arpa

Frame 3 (86 bytes on wire, 86 bytes captured)
Ethernet II, Src: Vmware_71:ae:bd (00:0c:29:71:ae:bd), Dst: Vmware_f2:c5:24 (00:50:56:f2:c5:24)
Internet Protocol, Src: 192.168.184.131 (192.168.184.131), Dst: 192.168.184.2 (192.168.184.2)
User Datagram Protocol, Src Port: re-conn-proto (1306), Dst Port: domain (53)
Domain Name System (query)

No. Time Source Destination Protocol Info
4 2.015341 192.168.184.131 192.168.184.2 DNS Standard query A communities.vmware.com.localdomain

Frame 4 (94 bytes on wire, 94 bytes captured)
Ethernet II, Src: Vmware_71:ae:bd (00:0c:29:71:ae:bd), Dst: Vmware_f2:c5:24 (00:50:56:f2:c5:24)
Internet Protocol, Src: 192.168.184.131 (192.168.184.131), Dst: 192.168.184.2 (192.168.184.2)
User Datagram Protocol, Src Port: pacmand (1307), Dst Port: domain (53)
Domain Name System (query)

No. Time Source Destination Protocol Info
5 4.028124 192.168.184.131 192.168.184.2 DNS Standard query A communities.vmware.com

Frame 5 (82 bytes on wire, 82 bytes captured)
Ethernet II, Src: Vmware_71:ae:bd (00:0c:29:71:ae:bd), Dst: Vmware_f2:c5:24 (00:50:56:f2:c5:24)
Internet Protocol, Src: 192.168.184.131 (192.168.184.131), Dst: 192.168.184.2 (192.168.184.2)
User Datagram Protocol, Src Port: jtag-server (1309), Dst Port: domain (53)
Domain Name System (query)
Click to view magi's profile Master 2,096 posts since
Aug 8, 2003
Interesting. It does look like the DHCP server is failing to respond at all.

I see the guest do an ARP lookup for the DHCP server/gateway on 192.168.184.2, and it gets a response. Then the guest does a reverse DNS lookup for the gateway (PTR 2.184.168.192.in-addr.arpa). There's no answer for 2 seconds, then it does a forward DNS lookup for communities.vmware.com.localdomain; again there's no answer for 2 seconds. Then it does a forward DNS lookup for communities.vmware.com. And presumably there's no answer to this one either.

A couple more experiments that might be helpful:
  • can the guest ping that gateway address (192.168.184.2)? Can it ping 192.168.182.1 (the host's address on that network)?
  • can you run vmnet-sniffer (in /Library/Application Support/VMware Fusion) and sniff on vmnet8, and see if there is any additional traffic on vmnet8 that for some reason the guest is not seeing?

Re: DNS resolution via NAT breaks intermittently (beta3)

8. Apr 17, 2008 10:07 PM in response to: magi
Click to view Bargonaut's profile Novice 20 posts since
Sep 10, 2007
I restarted the vmnet-natd service, and everything is OK again.
If/when it happens again, I'll run the additional tests.
Thanks for the reply.

-Brad
Click to view eldao's profile Lurker 3 posts since
Apr 29, 2008
This little AppleScript should do the trick. I got the sudo method from http://developer.apple.com/technotes/tn2002/tn2065.html and the command from another thread on this site.

do shell script "'/Library/Application Support/VMware Fusion/boot.sh' --restart" with administrator privileges

Copy that into "Script Editor" and save as an application. Double click the app, or add to a menu or whatever whenever the vmnet-* daemons get horked. One could also expand to prompt for "stop/start/restart" or other fancy stuff, but this works for me. Please feel free to expand, enhance and reuse. Thanks!
Click to view bruegel's profile Lurker 1 posts since
May 2, 2008
:) Worked for me too, just did a sudo from the terminal. All's well. Thanks a lot

José
Click to view magi's profile Master 2,096 posts since
Aug 8, 2003
Click to view eldao's profile Lurker 3 posts since
Apr 29, 2008
Interestingly, my SO upgraded her MacBook (early 2008) from 2GB of ram to 4GB of ram and the problem hasn't reappeared.... Perhaps some subtle swapping/resource issue?

Re: DNS resolution via NAT breaks intermittently (beta3)

13. Jun 21, 2008 10:57 AM in response to: magi
Click to view ethomson's profile Lurker 1 posts since
Jun 21, 2008
I've been running into this problem since 1.0, and I've been seeing it intermittently. I can provide as much detail as possible in the hopes of getting a resolution. I'm currently running Version 1.1.3 (94249). It does seem to occur more frequently when my host starts swapping. It occured just now, so I can provide some information to your previous question:

The guest can ping .1 and .2, the host and the gateway.
The guest can get out on the network fine by IP, it does appear to be only DNS that's lacking.
If I run vmnet-sniffer during this time, I can see DNS queries to .2, which go ignored. The only other traffic I've seen is NetBIOS name requests (port 137 and 138 to the broadcast address) for the requested name, and the guest renewing it's DHCP lease (successfully.)

This is very frustrating, so I'd be happy to provide any additional information or run debug builds, etc. to help track this down.

Thanks-
Ed
Click to view mykmelez's profile Hot Shot 221 posts since
Jul 29, 2007
I still see this on 2.0beta1, although it seems to happen less frequently. But there seems to be a correlation between the problem and a particular process that uses a lot of network. When I run JungleDisk in my Linux VM and use it to back up a remote server, it queries several gigs of data on the remote server, downloads some portion of that data to my local machine, and then uploads it to my backup server. This involves lots of network activity over a long period of time (a backup can take up to a day to complete), and DNS seems to break much more quickly when JD Is running a backup.

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities