qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Questions about networking


From: Peter Niessen
Subject: Re: [Qemu-devel] Questions about networking
Date: Thu, 12 Aug 2010 11:46:00 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100520 SUSE/3.0.5 Thunderbird/3.0.5

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 address@hidden
> Sent: 07 August 2010 07:37
> To: Niessen, Peter
> Cc: address@hidden
> Subject: Re: [Qemu-devel] Questions about networking
>
> Hi Peter...
>
> On Tue, Aug 3, 2010 at 15:13, Peter Niessen <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]