* [Qemu-devel] Any interest in an option to use an existing tun/tap device?
@ 2004-08-16 22:24 Rob Browning
2004-08-17 0:04 ` Jesus M. Salvo Jr.
2004-08-17 1:24 ` Rob Browning
0 siblings, 2 replies; 4+ messages in thread
From: Rob Browning @ 2004-08-16 22:24 UTC (permalink / raw)
To: qemu-devel
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
--
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Any interest in an option to use an existing tun/tap device?
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 ` [Qemu-devel] " Alexander E. Patrakov
2004-08-17 1:24 ` Rob Browning
1 sibling, 1 reply; 4+ messages in thread
From: Jesus M. Salvo Jr. @ 2004-08-17 0:04 UTC (permalink / raw)
To: qemu-devel
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] Re: Any interest in an option to use an existing tun/tap device?
2004-08-17 0:04 ` Jesus M. Salvo Jr.
@ 2004-08-18 9:15 ` Alexander E. Patrakov
0 siblings, 0 replies; 4+ messages in thread
From: Alexander E. Patrakov @ 2004-08-18 9:15 UTC (permalink / raw)
To: qemu-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] Re: Any interest in an option to use an existing tun/tap device?
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-17 1:24 ` Rob Browning
1 sibling, 0 replies; 4+ messages in thread
From: Rob Browning @ 2004-08-17 1:24 UTC (permalink / raw)
To: qemu-devel
Rob Browning <rlb@defaultvalue.org> writes:
> 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.
Sure, though if I understand that option, it means you have to already
have the fd open (i.e. via a parent process and exec). For persistent
tun devices, it would probably be more convenient to just be able to
specify the name.
--
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-08-18 9:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [Qemu-devel] " Alexander E. Patrakov
2004-08-17 1:24 ` Rob Browning
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).