"Could Not Get DNS Address" on OS X
Quoted 9 lines
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.
Quoted 1 line
Am I missing some option?
No.
Quoted 1 line
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
slirp.c 24 Mar 2005 09:56:46 -0000 renamed from slirp.c 7 Oct 2004 23:27:35 -0000 1.7 +2 -1
@@ -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);
Selon Juergen Keil <[email protected]>:
Quoted 3 lines
I'm using the following change:
Index:
slirp/slirp.c
[...]
Since he is using a precompiled version, your patch is of little help ;-) AFAK, using '-user-net -nics 0' does work however.
But if your need is to still have network access to the local host (I serve my local home dir with "Windows File Sharing" on the host), you need to go through that kind of patch.
Lga.