Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMBdg-0002Qr-Sq for qemu-devel@nongnu.org; Mon, 04 Feb 2008 19:26:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMBdf-0002QP-Kz for qemu-devel@nongnu.org; Mon, 04 Feb 2008 19:26:16 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMBdf-0002QK-Fh for qemu-devel@nongnu.org; Mon, 04 Feb 2008 19:26:15 -0500 Received: from flpi185.sbcis.sbc.com ([207.115.20.187] helo=flpi185.prodigy.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMBdf-0000SB-JW for qemu-devel@nongnu.org; Mon, 04 Feb 2008 19:26:15 -0500 Received: from sf.creativecommons.org (adsl-69-232-226-160.dsl.pltn13.pacbell.net [69.232.226.160]) by flpi185.prodigy.net (8.13.8 out.dk.spool/8.13.8) with ESMTP id m150OYK3022490 for ; Mon, 4 Feb 2008 16:24:35 -0800 Received: from localhost (localhost [127.0.0.1]) by sf.creativecommons.org (Postfix) with ESMTP id 7A402134CC35 for ; Mon, 4 Feb 2008 16:24:34 -0800 (PST) Date: Mon, 4 Feb 2008 16:24:34 -0800 (PST) From: Asheesh Laroia Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-1449656468-1202171074=:19311" Subject: [Qemu-devel] Making qemu use 10.0.3.x not 10.0.2.x Reply-To: 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1449656468-1202171074=:19311 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII I'm running qemu (really, KVM) in a LAN that uses 10.0.2.x as the IP address block for workstations. So naturally when I booted a guest, it couldn't access machines inside the LAN. I tried the simplest thing that could possibly work: paulproteus@sf:~/dnlds/qemu/qemu $ replace 10.0.2 10.0.3 -- `find -type f | grep -v -i CVS ` Booting that resulted in a virtual machine that, as I had hoped, used 10.0.3.15 and could therefore successfully talk to my 10.0.2.x IPs on the LAN. I've attached a 'cvs diff' against HEAD that results from the above command. Out of curiosity, are there plans to make the user-space networking stack IP range configurable at run-time rather than compile time? I'm not suggesting that this patch I attached become part of CVS HEAD necessarily; what I do hope is that this will inspire someone else on the list to make the handling of this more flexible, knowing now that it's fairly easy to do. (-: Even if not, this serves as a report to others that this trivial patch actually does what you'd hope/expect! -- Asheesh. -- It took me fifteen years to discover that I had no talent for writing, but I couldn't give it up because by that time I was too famous. -- Robert Benchley --8323329-1449656468-1202171074=:19311 Content-Type: TEXT/x-diff; name=ten-dot-three.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=ten-dot-three.patch SW5kZXg6IHFlbXUtZG9jLnRleGkNCj09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0N ClJDUyBmaWxlOiAvc291cmNlcy9xZW11L3FlbXUvcWVtdS1kb2MudGV4aSx2 DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTg2DQpkaWZmIC1yMS4xODYgcWVt dS1kb2MudGV4aQ0KNjU3YzY1Nw0KPCB1c3VhbCAxMC4wLjIuMi4NCi0tLQ0K PiB1c3VhbCAxMC4wLjMuMi4NCjY3NmM2NzYNCjwgMTAuMC4yLjQgc21ic2Vy dmVyDQotLS0NCj4gMTAuMC4zLjQgc21ic2VydmVyDQo2OTJjNjkyDQo8IGlz IG5vdCBzcGVjaWZpZWQsIGl0cyB2YWx1ZSBpcyAxMC4wLjIuMTUgKGRlZmF1 bHQgYWRkcmVzcyBnaXZlbiBieSB0aGUNCi0tLQ0KPiBpcyBub3Qgc3BlY2lm aWVkLCBpdHMgdmFsdWUgaXMgMTAuMC4zLjE1IChkZWZh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