qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [patch] Linux TUN/TAP driver updates


From: emuls
Subject: Re: [Qemu-devel] [patch] Linux TUN/TAP driver updates
Date: Sat, 16 Apr 2005 09:00:13 +0200 (CEST)

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
 
----- PŮVODNÍ ZPRÁVA -----
Od: "Jean-Christian de Rivaz" <address@hidden>
Komu: address@hidden
Předmět: Re: [Qemu-devel] [patch] Linux TUN/TAP driver
Datum: 16.4.2005 - 0:46:13

> Hi,
> 
> This is a good idea. I haved posted a similar patch to
> this mailing list 
> the 13 feb 2005 but I have see no reaction at all at
> this time. Maybe 
> you can find something usefull in the attached patch to
> improve the 
> support of static TUN/TAP. The patch is outdated now,
> but I can update 
> it to the current CVS if there is any interrest. Just
> tell me.
> 
> Static TUN is good in the situation where you have a
> superuser that 
> manage the interfaces. It set them and assign them to
> each users. it can 
> also setup a DHCP server to distribute IP addresses.
> Users just lunch 
> quemu with there static TUN in the option and magicaly
> get a working 
> network without any need to sudo, setuid or whatever
> that can have any 
> security risk.
> 
> You can also imagine a virtual machine manager
> application that setup 
> the network interfaces and lunch the qemu instances.
> This is the 
> direction I like the most.
> 
> Have a good day,
> --
> Henrik Nordstrom a écrit :
> > The attached patch updates the Linux TUN/TAP
> > interface
> > 
> >   - Allow use of static/persistent TUN/TAP devices,
> >   - eleminating the need 
> > to run anything as root when starting qemu.
> > 
> >   - A minor bugfix in filedescriptor based TUN/TAP
> >   - devices to allow more 
> > than one filedescriptor (was colliding on the qemu
> > internal device name).
> > 
> >   - Added the interface index as argument to the ifup
> >   - script to simplify 
> > integration.
> > 
> > 
> > A small howto use persistent TUN/TAP devices:
> > 
> > 1. Grab the tunctl tool from UML. 
> > <url:http://www.user-mode-linux.org/cvs/tools/tunctl/>
> >
<url:http://www.fifi.org/cgi-bin/man2html/usr/share/man/man1/tunctl.1.gz>
> > 
> > this small tools allows you to create persistent TAP
> > devices with a 
> > fixed name on the host. A persistent tap device stays
> > until it is 
> > manually deleted with tunctl.
> > 
> > 2. Configure the host side of the created TAP devices
> > using your normal 
> > network setup tools, or the network configuration
> > tools provided by your 
> > distribution vendor if preferred.
> > 
> > 3. When starting qemu, specify the TAP device names
> > with the new 
> > -tun-dev qemu command line option.
> > 
> >       -tun-dev name   use this already created tun
> >       -device
> > 
> > -tun-dev can be specified multiple times if you want
> > -qemu to connect to 
> > more than one device.
> > 
> > Regards
> > Henrik
> 
> 
> -- 
> Jean-Christian de Rivaz
> 


-- 
Ochrana proti přesměrování na drahé linky. Již žádné vysoké účty!
VOLNÝ internet alarm - ještě bezpečnější surfování!
Stažení i používání je ZDARMA na http://alarm.volny.cz





reply via email to

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