qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Niessen <p.niessen@fz-juelich.de>
To: Mulyadi Santosa <mulyadi.santosa@gmail.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Questions about networking
Date: Thu, 12 Aug 2010 11:46:00 +0200	[thread overview]
Message-ID: <4C63C2D8.2010106@fz-juelich.de> (raw)
In-Reply-To: <CA70F2A19623C447BC50E3D05DD846D8EEEF8E9DE6@MBX-CLUSTER01.ad.fz-juelich.de>

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=52:54:00:12:34:56 -net tap,ifname=kvmnet0,script=no
 -net nic,macaddr=52:54:00:12:34:57 -net user -redir tcp:26022::22

and

qemu-kvm -smp 2 -m 768 -hda ./mom.qcow2 -net
nic,macaddr=52:54:00:12:34:58 -net tap,ifname=kvmnet1,script=no

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 have 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 <p.niessen@fz-juelich.de> wrote:
>> 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=1,macaddr=52:54:00:12:34:56 -net
>> nic,vlan=2,macaddr=52:54:00:12:34:57 -net user,vlan=2 -net
>> socket,vlan=1,listen=localhost:1234 -redir tcp:26022::22 -nographic
>> -daemonize
>>
>> qemu-kvm -smp 2 -m 768 -hda ./mom.qcow2 -net
>> nic,vlan=1,macaddr=52:54:00:12:34:58 -net
>> socket,vlan=1,connect=localhost:1234 -nographic -daemonize
>>
>> which I took from http://www.h7.dion.ne.jp/~qemu-win/HowToNetwork-en.html.
>
> 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
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

  reply	other threads:[~2010-08-12  9:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-03  8:13 [Qemu-devel] Questions about networking Peter Niessen
2010-08-07  5:37 ` Mulyadi Santosa
2010-08-07 10:42   ` Niessen, Peter
2010-08-12  9:46     ` Peter Niessen [this message]
2010-08-12 13:03       ` Mulyadi Santosa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C63C2D8.2010106@fz-juelich.de \
    --to=p.niessen@fz-juelich.de \
    --cc=mulyadi.santosa@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).