From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BxMhJ-0005n7-3B for qemu-devel@nongnu.org; Wed, 18 Aug 2004 05:25:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BxMhH-0005mv-MC for qemu-devel@nongnu.org; Wed, 18 Aug 2004 05:25:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BxMhH-0005ms-GV for qemu-devel@nongnu.org; Wed, 18 Aug 2004 05:25:31 -0400 Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BxMcq-0001Wg-RW for qemu-devel@nongnu.org; Wed, 18 Aug 2004 05:20:57 -0400 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BxMcp-00034i-00 for ; Wed, 18 Aug 2004 11:20:55 +0200 Received: from dsa.physics.usu.ru ([194.226.236.126]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Aug 2004 11:20:55 +0200 Received: from patrakov by dsa.physics.usu.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Aug 2004 11:20:55 +0200 From: "Alexander E. Patrakov" Date: Wed, 18 Aug 2004 15:15:44 +0600 Message-ID: References: <874qn24t78.fsf@trouble.defaultvalue.org> <41214B89.4030908@migasia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <41214B89.4030908@migasia.com> Sender: news Subject: [Qemu-devel] Re: Any interest in an option to use an existing tun/tap device? 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 Jesus M. Salvo Jr. wrote: > Rob Browning wrote: > >> It would be nice if qemu could be configured to use an existing >> tun/tap device rather than require root (or sudo) access. Would >> others be interested in such an addition, perhaps "qemu -tun tun0" or >> similar. >> >> User Mode Linux allows something similar. See the section "TUN/TAP >> with a preconfigured tap device" at >> http://user-mode-linux.sourceforge.net/networking.html. >> >> Thanks >> > > I thought it already does, via the -tun-fd option ... though I have not > seen an example of how to use this option / determine the file > descriptor of an existing tun/tap interface, so I dont know how to use > it as well. An example would be good. (not tested, but might work in bash) qemu -other-options -tun-fd 3 3<>/dev/net/tun -- Alexander E. Patrakov