From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cj2h4-00047j-1J for qemu-devel@nongnu.org; Mon, 27 Dec 2004 16:46:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cj2h3-00047V-Hw for qemu-devel@nongnu.org; Mon, 27 Dec 2004 16:46:21 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cj2h3-00047S-CC for qemu-devel@nongnu.org; Mon, 27 Dec 2004 16:46:21 -0500 Received: from [38.113.3.61] (helo=smtp-out.hotpop.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cj2WC-0005G4-Kp for qemu-devel@nongnu.org; Mon, 27 Dec 2004 16:35:08 -0500 Received: from phreaker.net (kubrick.hotpop.com [38.113.3.103]) by smtp-out.hotpop.com (Postfix) with SMTP id E7153C7942D for ; Mon, 27 Dec 2004 21:34:56 +0000 (UTC) Received: from jbrown.mylinuxbox.org (pcp03144805pcs.midval01.tn.comcast.net [68.59.228.236]) by smtp-3.hotpop.com (Postfix) with ESMTP id 8BCFB127C451 for ; Mon, 27 Dec 2004 21:34:53 +0000 (UTC) Date: Mon, 27 Dec 2004 16:34:51 -0500 From: "Jim C. Brown" Subject: Re: [Qemu-devel] Networking possibilities Message-ID: <20041227213451.GA8166@jbrown.mylinuxbox.org> References: <001101c4ec0f$5ec240f0$8916fea9@freelance> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001101c4ec0f$5ec240f0$8916fea9@freelance> 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 On Mon, Dec 27, 2004 at 08:26:56PM +0800, Ming-Ching Tiew wrote: > > I would like to know if it is possible to run a few instances > of Qemu's ( ie a few guest OS'es ) and make them network > with one another ? In each of the instance there maybe > multiple network cards, I would like to be able to specify each > network card to go to which tun device and then allow another > instance to connect specifically to that particular tun device, > instead of only connected to the host OS. You don't need multiple tuntap devices in the guest, you only need one. > > That's tun/tap devices are used to connect multiple instances > of qemu together or with the host OS. There are two ways I can think of to do this. The easy way is to use VDE (vde.sourceforge.net), which allows you to share a single tuntap device amoung all qemu instances. (Or, if you don't have root permissions, it can even emulate a tuntap device for you). The VDE HOWTO should give the basics on how to do this. The hard way is to set up each qemu instance normally, and then connect them together thru the host, either with bridging or iptable tricks. > > Bottomline I would like to be able to set up a farm of guest OS's > which could perform internetworking among each other. This is > extremely useful for testing/developing networking software. > Is it possible ? Yes. > > Cheers -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.