ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Peter V. Saveliev" <peet@altlinux.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Qemu
Date: Fri, 28 Dec 2007 00:28:46 +0300
Message-ID: <200712280028.46589.peet@altlinux.ru> (raw)
In-Reply-To: <200712261624.34727.hihin@yandex.ru>

В сообщении от Wednesday 26 December 2007 16:24:32 ruslandh написал(а):
> В сообщении от Monday 24 December 2007 18:04:27 ruslandh написал(а):
>
> Вот гщё вопрос по Qemu.
> Читаю :
>
> http://people.redhat.com/berrange/olpc/sdk/network-bridge.html
>
> The master configuration file is /etc/sysconfig/qemu-network. In this file
> there are 3 sets of options to configure.
> ....
>
> А как это у нас делать ?

я пользуюсь совершенно неизящным методом

8<------------------------------------------------------
[peet@kelisaari peet]$ cd /var/ftp/virtual/net1/
[peet@kelisaari net1]$ cat start.sh
#!/bin/sh

sudo modprobe tun
sudo qemu \
        -m 64 \
        -S \
        -hda hda.qcow2 \
        -net nic,vlan=1,macaddr=52:54:00:12:34:58 \
        -net nic,vlan=2,macaddr=52:54:00:12:34:59 \
        -net nic,vlan=3,macaddr=52:54:00:12:35:00 \
        -net tap,vlan=1,script=./tap1.sh,ifname=tapQ11 \
        -net tap,vlan=2,script=./tap2.sh,ifname=tapQ12 \
        -boot c -cdrom server.iso

[peet@kelisaari net1]$ cat tap1.sh
#!/bin/bash

brctl addbr br0 ||:

TAP="tapQ11"

ip link set dev $TAP up
brctl addif br0 $TAP

ip link set dev br0 up
ip addr add dev br0 10.0.254.1/24 ||:
8<------------------------------------------------------

К сожалению, изящный метод изобретать некогда, т.к. такая конструкция 
работает, а мне большего и не надо -- раз в неделю оттестировать очередную 
конфигурацию сети с кольцами...

-- 
Peter V. Saveliev

  parent reply	other threads:[~2007-12-27 21:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-24 15:04 [sisyphus] Qemu, права на USB ruslandh
2007-12-26 13:24 ` [sisyphus] Qemu ruslandh
2007-12-27 19:25   ` Michael Shigorin
2007-12-27 19:37     ` Хихин Руслан
2007-12-27 21:28   ` Peter V. Saveliev [this message]
2007-12-27 22:26   ` Sergey Bolshakov
2007-12-28  3:11     ` Хихин Руслан
2007-12-29  9:29       ` Владимир Черный
2007-12-29 11:25         ` Хихин Руслан
2007-12-29 11:31           ` Владимир Черный
2008-01-08  6:46             ` Хихин Руслан
2008-01-08 12:44               ` Sergey Bolshakov
2008-01-08 21:16     ` Хихин Руслан

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=200712280028.46589.peet@altlinux.ru \
    --to=peet@altlinux.ru \
    --cc=sisyphus@lists.altlinux.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

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git