Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DMhND-0000nR-Nl for qemu-devel@nongnu.org; Sat, 16 Apr 2005 03:05:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DMhN8-0000l3-Kk for qemu-devel@nongnu.org; Sat, 16 Apr 2005 03:05:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMhN7-0000jS-Lo for qemu-devel@nongnu.org; Sat, 16 Apr 2005 03:05:41 -0400 Received: from [195.250.128.83] (helo=smtp3.vol.cz) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DMhIs-00012x-7O for qemu-devel@nongnu.org; Sat, 16 Apr 2005 03:01:18 -0400 Received: from webmail2.post.cz (webmail2.post.cz [212.20.96.205]) by smtp3.vol.cz (8.12.9p2/8.12.9) with ESMTP id j3G70DIV089163 for ; Sat, 16 Apr 2005 09:00:13 +0200 (CEST) (envelope-from emuls@post.cz) Received: from webmail2.post.cz (localhost [127.0.0.1]) by webmail2.post.cz (8.12.9p2/8.12.9) with ESMTP id j3G70DUv083268 for ; Sat, 16 Apr 2005 09:00:13 +0200 (CEST) (envelope-from emuls@post.cz) MIME-Version: 1.0 Subject: Re: [Qemu-devel] [patch] Linux TUN/TAP driver updates From: emuls@post.cz Date: Sat, 16 Apr 2005 09:00:13 +0200 (CEST) Message-ID: In-Reply-To: <426042E6.4060404@eclis.ch> References: <426042E6.4060404@eclis.ch> Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hello, I allready use UML tool tunctl with QEMU and it works OK. I like then I can have under control creation and use of tun0 device plus I dont need to play with SUDO (SElinux). Rudolf =20 ----- P=D9VODN=CD ZPR=C1VA ----- Od: "Jean-Christian de Rivaz" Komu: qemu-devel@nongnu.org P=F8edm=ECt: Re: [Qemu-devel] [patch] Linux TUN/TAP driver Datum: 16.4.2005 - 0:46:13 > Hi, >=20 > This is a good idea. I haved posted a similar patch to > this mailing list=20 > the 13 feb 2005 but I have see no reaction at all at > this time. Maybe=20 > you can find something usefull in the attached patch to > improve the=20 > support of static TUN/TAP. The patch is outdated now, > but I can update=20 > it to the current CVS if there is any interrest. Just > tell me. >=20 > Static TUN is good in the situation where you have a > superuser that=20 > manage the interfaces. It set them and assign them to > each users. it can=20 > also setup a DHCP server to distribute IP addresses. > Users just lunch=20 > quemu with there static TUN in the option and magicaly > get a working=20 > network without any need to sudo, setuid or whatever > that can have any=20 > security risk. >=20 > You can also imagine a virtual machine manager > application that setup=20 > the network interfaces and lunch the qemu instances. > This is the=20 > direction I like the most. >=20 > Have a good day, > -- > Henrik Nordstrom a =E9crit : > > The attached patch updates the Linux TUN/TAP > > interface > >=20 > > - Allow use of static/persistent TUN/TAP devices, > > - eleminating the need=20 > > to run anything as root when starting qemu. > >=20 > > - A minor bugfix in filedescriptor based TUN/TAP > > - devices to allow more=20 > > than one filedescriptor (was colliding on the qemu > > internal device name). > >=20 > > - Added the interface index as argument to the ifup > > - script to simplify=20 > > integration. > >=20 > >=20 > > A small howto use persistent TUN/TAP devices: > >=20 > > 1. Grab the tunctl tool from UML.=20 > > > > > >=20 > > this small tools allows you to create persistent TAP > > devices with a=20 > > fixed name on the host. A persistent tap device stays > > until it is=20 > > manually deleted with tunctl. > >=20 > > 2. Configure the host side of the created TAP devices > > using your normal=20 > > network setup tools, or the network configuration > > tools provided by your=20 > > distribution vendor if preferred. > >=20 > > 3. When starting qemu, specify the TAP device names > > with the new=20 > > -tun-dev qemu command line option. > >=20 > > -tun-dev name use this already created tun > > -device > >=20 > > -tun-dev can be specified multiple times if you want > > -qemu to connect to=20 > > more than one device. > >=20 > > Regards > > Henrik >=20 >=20 > --=20 > Jean-Christian de Rivaz >=20 --=20 Ochrana proti p=F8esm=ECrov=E1n=ED na drah=E9 linky. Ji=BE =BE=E1dn=E9 vyso= k=E9 =FA=E8ty! VOLN=DD internet alarm - je=B9t=EC bezpe=E8n=ECj=B9=ED surfov=E1n=ED! Sta=BEen=ED i pou=BE=EDv=E1n=ED je ZDARMA na http://alarm.volny.cz