qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] "Could Not Get DNS Address" on OS X


From: Juergen Keil
Subject: Re: [Qemu-devel] "Could Not Get DNS Address" on OS X
Date: Thu, 24 Mar 2005 11:08:38 +0100 (CET)


> I find the precompiled qemu for OS X to mostly work fine, but I get 
> 'Could Not Get DNS Address' when I try to run it and am not connected 
> to the network.  As my entire interest in Qemu is to try to find a way 
> to test x86 programs when I can't ssh to an x86 linux server, this is 
> kind of a downer.
> 
> Does Qemu really require a network connection to run?

No.

> Am I missing some option?

No.

>  I tried "--dummy-net", and the option to set the number of NIC cards to 0.

I'm using the following change:

Index: slirp/slirp.c
===================================================================
RCS file: /cvsroot/qemu/qemu/slirp/slirp.c,v
retrieving revision 1.7
diff -u -B -r1.7 slirp.c
--- slirp/slirp.c       7 Oct 2004 23:27:35 -0000       1.7
+++ slirp/slirp.c       24 Mar 2005 09:56:46 -0000
@@ -149,7 +149,8 @@
 
     if (get_dns_addr(&dns_addr) < 0) {
         fprintf(stderr, "Could not get DNS address\n");
-        exit(1);
+        // exit(1);
+       inet_aton("127.0.0.1", &dns_addr);
     }
 
     inet_aton(CTL_SPECIAL, &special_addr);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]