On Mon, Aug 23, 2010 at 05:39:49PM -0700, Barry Grumbine wrote:
> When using qemu, /dev/tunX interfaces are being created with the wrong
> permissions. It's not a /dev/MAKEDEV problem
> # cd /dev && ./MAKEDEV tun4
> works just peachy. The problem is when /dev/tunX is created on the fly.
>
> ...Are /dev/tunX created on the fly?
man 4 tun
A tun interface can be created at runtime using the 'ifconfig tunN create'
command or by opening the character special device /dev/tunN.
> hmmm... maybe that happens when I run my qemu command?
> sudo -C 4 -u qemu /usr/local/bin/qemu -hda
> /home/qemu/4.4/i386/stable/stable_44_i386.img -m 256 -net
> nic,model=rtl8139,macaddr=52:54:00:c7:44:01 -net tap,fd=3 -nographic
> -localtime -no-fd-bootchk -pidfile /home/qemu/4.4/i386/stable/qemu.pid
> 3<>/dev/tun10
that overwrites /dev/tun10 if you have not created the interface with
ifconfig.
so, you need to do the following for each N device:
# cd /dev && ./MAKEDEV tunN
# ifconfig tunN create
--
[email protected]
SDF Public Access UNIX System - http://sdf.lonestar.org