From: "Aleksey Avdeev" <solo@solin.spb.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] Qemu networking
Date: Thu, 09 Dec 2004 17:00:29 +0300
Message-ID: <41B85A7D.6040309@solin.spb.ru> (raw)
In-Reply-To: <41B84CC2.6020606@vzljot.ru>
Vitaly Ostanin пишет:
> Здравствуйте.
>
> Расскажите, pls, как всё-таки настроить сеть в qemu ? Нужно всего лишь
> ходить гостевой виндой на хост-систему. Параметр -smb не заработал.
Задавал я подобный вопрос (<>)... Пока получается следующие:
$ sudo -H qemu -n /home/solo/qemu/qemu-ifup ...
qemu-ifup состоит из пары строк:
#! /bin/sh
/sbin/ifconfig $1 192.168.152.1 2>&1
Поднимается интерфейс tun<n>:
$ /sbin/ifconfig tun0
tun0 Link encap:Ethernet HWaddr 00:FF:92:5D:F4:81
inet addr:192.168.152.1 Bcast:192.168.152.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5382 (5.2 Kb) TX bytes:0 (0.0 b)
С этим интерфейсом уже можно работать. (В гостевой системе сеть
поднимается обычным порядком.)
Недостатки у данного решения следующие:
1. qemu запущен от root
2. Не разобрался как привязать несколько гостевых систем на 1 tun<n>
(сейчас каждая висит на своём).
--
С уважением. Алексей.
next prev parent reply other threads:[~2004-12-09 14:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-09 13:01 Vitaly Ostanin
2004-12-09 14:00 ` Aleksey Avdeev [this message]
2004-12-09 14:07 ` Aleksey Avdeev
2004-12-09 19:21 ` Anton D. Kachalov
2004-12-10 7:05 ` Aleksey Avdeev
2004-12-10 9:22 ` Aleksey Avdeev
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=41B85A7D.6040309@solin.spb.ru \
--to=solo@solin.spb.ru \
--cc=sisyphus@altlinux.ru \
/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