qemu-devel
[Top][All Lists]
Advanced

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

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


From: Henrik Nordstrom
Subject: [Qemu-devel] [patch] Linux TUN/TAP driver updates
Date: Fri, 15 Apr 2005 18:18:00 +0200 (CEST)

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

Attachment: tun_device.patch
Description: Text document


reply via email to

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