Received: from [140.186.70.92] (port=58027 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OjUMS-0000WV-6r for qemu-devel@nongnu.org; Thu, 12 Aug 2010 05:46:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OjUMQ-0005G9-Lh for qemu-devel@nongnu.org; Thu, 12 Aug 2010 05:46:08 -0400 Received: from mailgw-k01.its.kfa-juelich.de ([134.94.4.24]:45981) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OjUMQ-0005Ff-8k for qemu-devel@nongnu.org; Thu, 12 Aug 2010 05:46:06 -0400 Message-ID: <4C63C2D8.2010106@fz-juelich.de> Date: Thu, 12 Aug 2010 11:46:00 +0200 From: Peter Niessen MIME-Version: 1.0 Subject: Re: [Qemu-devel] Questions about networking References: <4C57CFA6.2070103@fz-juelich.de>, In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mulyadi Santosa Cc: "qemu-devel@nongnu.org" Hello again, using the hints on http://blog.cynapses.org/2007/07/12/qemu-kvm-internal-network-setup/ (on openSuSE 11.3) I could get my ping times down to 0.8 ms between the virtual machines. Now my torque batch setup works without problems. Here's my startup script, I include a second interface towards the outside: qemu-kvm -smp 2 -m 768 -hda ./torque.qcow2 -net nic,macaddr=3D52:54:00:12:34:56 -net tap,ifname=3Dkvmnet0,script=3Dno -net nic,macaddr=3D52:54:00:12:34:57 -net user -redir tcp:26022::22 and qemu-kvm -smp 2 -m 768 -hda ./mom.qcow2 -net nic,macaddr=3D52:54:00:12:34:58 -net tap,ifname=3Dkvmnet1,script=3Dno So it seems you can mix user mode and tapping, although I see a lot of martian source messages. I would re-configure 52:54:00:12:34:57 to use another tap/bridge combination. So, problem solved. Thanks, Cheers, Peter. On 08/07/10 12:42, Niessen, Peter wrote: > Hello Mulyadi, > > thanks, I'll give it a spin. I'm off for the next few days, so I won't ha= ve results immediately. > > Cheers, have a good weekend, > > Peter. > ________________________________________ > From: Mulyadi Santosa [mulyadi.santosa@gmail.com] > Sent: 07 August 2010 07:37 > To: Niessen, Peter > Cc: qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] Questions about networking > > Hi Peter... > > On Tue, Aug 3, 2010 at 15:13, Peter Niessen wro= te: >> Dear List, >> >> I'm trying to set up a testbed for batch systems using qemu-kvm. So far, >> I've created two machines, a master ("torque") and an execution host >> ("mom") for use with torque. I'm using the following command lines to >> start up the virtual machines: >> >> qemu-kvm -smp 2 -m 768 -hda ./torque.qcow2 -net >> nic,vlan=3D1,macaddr=3D52:54:00:12:34:56 -net >> nic,vlan=3D2,macaddr=3D52:54:00:12:34:57 -net user,vlan=3D2 -net >> socket,vlan=3D1,listen=3Dlocalhost:1234 -redir tcp:26022::22 -nographic >> -daemonize >> >> qemu-kvm -smp 2 -m 768 -hda ./mom.qcow2 -net >> nic,vlan=3D1,macaddr=3D52:54:00:12:34:58 -net >> socket,vlan=3D1,connect=3Dlocalhost:1234 -nographic -daemonize >> >> which I took from http://www.h7.dion.ne.jp/~qemu-win/HowToNetwork-en.htm= l. > > Sorry, I took out most of your messages. > > > IIRC, I once met the same situation too. And it gets worse when using > non TCP transmission (e.g UDP, multicast etc). > > So, uhm, perhaps better to use tun/tap and hook them together, maybe > by simply put them all in same network id but separated from host > network device... > > > > > -- > regards, > > Mulyadi Santosa > Freelance Linux trainer and consultant > > blog: the-hydra.blogspot.com > training: mulyaditraining.blogspot.com ---------------------------------------------------------------------------= --------------------- ---------------------------------------------------------------------------= --------------------- Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDirig Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ---------------------------------------------------------------------------= --------------------- ---------------------------------------------------------------------------= ---------------------