* [Qemu-devel] Networking possibilities
@ 2004-12-27 12:26 Ming-Ching Tiew
2004-12-27 16:12 ` Doug Stanley
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Ming-Ching Tiew @ 2004-12-27 12:26 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1.1: Type: text/plain, Size: 744 bytes --]
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.
That's tun/tap devices are used to connect multiple instances
of qemu together or with the host OS.
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 ?
Cheers
[-- Attachment #1.2: Type: text/html, Size: 2214 bytes --]
[-- Attachment #2: InterScan_SafeStamp.txt --]
[-- Type: text/plain, Size: 250 bytes --]
****** Message from InterScan E-Mail VirusWall NT ******
** No virus found in attached file noname.htm
** No virus found in attached file noname.htm
This mail has been scanned by InterScan.
***************** End of message ***************
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Networking possibilities
2004-12-27 12:26 [Qemu-devel] Networking possibilities Ming-Ching Tiew
@ 2004-12-27 16:12 ` Doug Stanley
2004-12-27 16:22 ` Felipe Sanchez
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Doug Stanley @ 2004-12-27 16:12 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1517 bytes --]
I believe this is exactly what the vde_switch software
was meant for.
Google for vde_switch...or check out
http://vde.sourceforge.net/
Doug
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.
>
> That's tun/tap devices are used to connect multiple instances
> of qemu together or with the host OS.
>
> 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 ?
>
> Cheers
>
>
> ------------------------------------------------------------------------
>
> ****** Message from InterScan E-Mail VirusWall NT ******
>
> ** No virus found in attached file noname.htm
> ** No virus found in attached file noname.htm
>
> This mail has been scanned by InterScan.
> ***************** End of message ***************
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
[-- Attachment #2: dstanley.vcf --]
[-- Type: text/x-vcard, Size: 291 bytes --]
begin:vcard
fn:Douglas Stanley
n:Stanley;Douglas
org:Integrated Marketing Technologies;IT
adr:;;2945 Carquest Dr.;Brunswick;Ohio;44212;US
email;internet:dstanley@imtco.com
title:Systems Administrator
tel;work:330-220-6715
x-mozilla-html:FALSE
url:http://www.imtco.com
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Networking possibilities
2004-12-27 12:26 [Qemu-devel] Networking possibilities Ming-Ching Tiew
2004-12-27 16:12 ` Doug Stanley
@ 2004-12-27 16:22 ` Felipe Sanchez
2004-12-27 18:11 ` Tim
2004-12-27 21:34 ` Jim C. Brown
3 siblings, 0 replies; 5+ messages in thread
From: Felipe Sanchez @ 2004-12-27 16:22 UTC (permalink / raw)
To: qemu-devel
On Mon, 27 Dec 2004, Ming-Ching Tiew wrote:
> 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 ?
It's certainly possible, I have such a setup in a couple of servers. All
you have to do is to specify a network setup script with the "-n" command
line option and set the appropriate IP addresses and routes. Feel free to
ask me about specific details.
The part about linking a specific tun device to a specific network
interface in the guest OS sounds a bit trickier though. Maybe the patch
posted a while ago that allows to tell qemu the name of preconfigured tun
devices might be helpful.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Networking possibilities
2004-12-27 12:26 [Qemu-devel] Networking possibilities Ming-Ching Tiew
2004-12-27 16:12 ` Doug Stanley
2004-12-27 16:22 ` Felipe Sanchez
@ 2004-12-27 18:11 ` Tim
2004-12-27 21:34 ` Jim C. Brown
3 siblings, 0 replies; 5+ messages in thread
From: Tim @ 2004-12-27 18:11 UTC (permalink / raw)
To: qemu-devel
> 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.
>
> That's tun/tap devices are used to connect multiple instances
> of qemu together or with the host OS.
>
> 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 ?
One possible way to do this would be to spawn all of your Qemu
instances, each with their own TUN interface, then bridge the TUN
interfaces together on the (linux) host. Linux bridging code comes
standard with 2.6 kernels now (i believe), and I have used it before to
bridge a Qemu TUN interface with a physical interface in the host
before. I haven't tried putting together multiple TUN interfaces before
though.
There are several references online for how to do Linux bridging. If
you can't find them through google, I can dig up a link.
HTH,
tim
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Networking possibilities
2004-12-27 12:26 [Qemu-devel] Networking possibilities Ming-Ching Tiew
` (2 preceding siblings ...)
2004-12-27 18:11 ` Tim
@ 2004-12-27 21:34 ` Jim C. Brown
3 siblings, 0 replies; 5+ messages in thread
From: Jim C. Brown @ 2004-12-27 21:34 UTC (permalink / raw)
To: qemu-devel
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-12-27 21:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-27 12:26 [Qemu-devel] Networking possibilities Ming-Ching Tiew
2004-12-27 16:12 ` Doug Stanley
2004-12-27 16:22 ` Felipe Sanchez
2004-12-27 18:11 ` Tim
2004-12-27 21:34 ` Jim C. Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).