qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Alexander E. Patrakov" <patrakov@ums.usu.ru>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: Any interest in an option to use an existing tun/tap device?
Date: Wed, 18 Aug 2004 15:15:44 +0600	[thread overview]
Message-ID: <cfv6n2$6tb$3@sea.gmane.org> (raw)
In-Reply-To: <41214B89.4030908@migasia.com>

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

  reply	other threads:[~2004-08-18  9:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-16 22:24 [Qemu-devel] Any interest in an option to use an existing tun/tap device? Rob Browning
2004-08-17  0:04 ` Jesus M. Salvo Jr.
2004-08-18  9:15   ` Alexander E. Patrakov [this message]
2004-08-17  1:24 ` [Qemu-devel] " Rob Browning

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='cfv6n2$6tb$3@sea.gmane.org' \
    --to=patrakov@ums.usu.ru \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).