From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMBvV-0005DI-Ol for qemu-devel@nongnu.org; Mon, 04 Feb 2008 19:44:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMBvV-0005Bv-28 for qemu-devel@nongnu.org; Mon, 04 Feb 2008 19:44:41 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMBvU-0005Bc-U7 for qemu-devel@nongnu.org; Mon, 04 Feb 2008 19:44:40 -0500 Received: from py-out-1112.google.com ([64.233.166.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMBvV-0003Ey-0m for qemu-devel@nongnu.org; Mon, 04 Feb 2008 19:44:41 -0500 Received: by py-out-1112.google.com with SMTP id u52so3524338pyb.10 for ; Mon, 04 Feb 2008 16:44:39 -0800 (PST) Message-ID: Date: Mon, 4 Feb 2008 16:44:39 -0800 From: "Jonathan Kalbfeld" Subject: Re: [Qemu-devel] Making qemu use 10.0.3.x not 10.0.2.x In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14961_17887143.1202172279289" References: 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 ------=_Part_14961_17887143.1202172279289 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline You can always do what I do --- run openvpn between my QEMU sessions and set up private networks that way ;) On Feb 4, 2008 4:24 PM, Asheesh Laroia wrote: > 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 > -- -- Jonathan Kalbfeld ThoughtWave Technologies LLC www.thoughtwave.com +1 424 354 1814 ------=_Part_14961_17887143.1202172279289 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline You can always do what I do --- run openvpn between my QEMU sessions and set up private networks that way ;)

On Feb 4, 2008 4:24 PM, Asheesh Laroia <asheesh@creativecommons.org> wrote:
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



--
--
Jonathan Kalbfeld
ThoughtWave Technologies LLC
www.thoughtwave.com
+1 424 354 1814
------=_Part_14961_17887143.1202172279289--