From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DEPWM-0005xo-LI for qemu-devel@nongnu.org; Thu, 24 Mar 2005 05:24:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DEPVv-0005ut-3B for qemu-devel@nongnu.org; Thu, 24 Mar 2005 05:24:55 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DEPVr-0005kX-9e for qemu-devel@nongnu.org; Thu, 24 Mar 2005 05:24:28 -0500 Received: from [192.76.135.70] (helo=kurt.tools.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DEPGd-0003eN-9F for qemu-devel@nongnu.org; Thu, 24 Mar 2005 05:08:43 -0500 Received: from imap3.tools.intra (imap3.tools.intra [172.20.0.8]) by kurt.tools.de (8.13.3/8.13.3) with ESMTP id j2OA8cbZ017282 for ; Thu, 24 Mar 2005 11:08:39 +0100 (MET) Received: from tiger2.tools.intra (tiger2.tools.intra [172.20.0.11]) by imap3.tools.intra (8.13.1+Sun/8.13.1) with SMTP id j2OA8c8E017113 for ; Thu, 24 Mar 2005 11:08:38 +0100 (MET) Message-Id: <200503241008.j2OA8c8E017113@imap3.tools.intra> Date: Thu, 24 Mar 2005 11:08:38 +0100 (CET) From: Juergen Keil Subject: Re: [Qemu-devel] "Could Not Get DNS Address" on OS X MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: 7qjDoMA+M7E/PW+EjwDEpg== Reply-To: Juergen Keil , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > 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);