QEMU und bridge-utils

Till Maas opensource at till.name
Tue Feb 6 22:09:15 UTC 2007


On Monday 22 January 2007 17:06, Daniel Rindt wrote:

> === 8< ===
> open("/dev/net/tun", O_RDWR|O_LARGEFILE) = 4
> ioctl(4, TUNSETIFF, 0xbfe3e920)         = -1 EPERM (Operation not
> permitted)
> === >8 ===
>
> hat jemand das Ganze zum laufen?

Afaik kann man im aktuellen Linux Kernel als User kein tap Device erstellen, 
auch wenn man auf /dev/net/tun zugreifen kann, entweder mußt Du qemu als root 
starten (unschön) oder Du nimmst tunctl aus den usermodelinux utilities, z.B. 
von 
http://www.user-mode-linux.org/cvs/*checkout*/tools/tunctl/tunctl.c?rev=1.4 
und erstellst damit als root ein tap Device für Deinen Benutzer, z.B.

Kompiliereen mit "make tunctl"

# ./tunctl -u daniel

und benutzt das dann für qemu (ifname=tap0 evt. anpassen). So hat es bei mir 
geklappt, im Endeffekt steht in tunctl.c iirc ziemlich der gleiche Code drin, 
den sonst qemu ausführt, um das Interface zu erstellen.

Grüße,
Till
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-de-list/attachments/20070206/00bfae10/attachment.sig>


More information about the Fedora-de-list mailing list