[plug] UML Tun/Tap - Tun Device

Kirk Turner kirk.turner at wagoonline.com
Mon Nov 10 16:53:40 WST 2003


On Mon, 2003-11-10 at 16:43, Cameron Patrick wrote:
> On Mon, Nov 10, 2003 at 04:13:07PM +0800, Kirk Turner wrote:
> 
> | Now to my question(s):
> | Is this how you create a device? Is it a separate issue with tunctl?
> 
> You need the appropriate file in /dev to be created (like you did), and
> the driver for it needs to be compiled into the kernel, or loaded as a
> module.
> 
> | Possible relevant information:
> | 
> | Running debian woody, 2.4.18-bf2.4
> | Tun is a module I've loaded.
> 
> tun.o is the name of the module I'm using too.
> 
> I think your problem is the command you used to create the tun device -
> you have it backwards from my machine:
> 
> # ls -l /dev/net/tun
> crw-r-----    1 root     root      10, 200 1970-01-01 08:00 /dev/net/tun
> 
> Maybe rm /dev/net/tun and mknod /dev/net/tun c 10 200 ?  Better yet:
> 
Ahh yes this fixed the problem!

> # cd /dev
> # ./MAKEDEV tun
> 
gameldar:/dev# ./MAKEDEV tun
./MAKEDEV: don't know how to make device "tun"

I think its a sid thing :)

> (Although this might only work in sid...?)
> 
> | Using the debian distribution of uml code - however I have tried the
> | above using the latest version of the uml-utilities downloaded and
> | compiled.
> 
> I'm using the Debian uml-utilities (plus a hacked uml_moo that copes
> with the COW files produced by a chroot()ed UML) with no problems.
> Admittedly that's from sid though.
> 
> Cameron.
> 
Thanks,

Now just to actually get the rest of it working!

Kirk

> _______________________________________________
> plug mailing list
> plug at plug.linux.org.au
> http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20031110/05349b2f/attachment.pgp>


More information about the plug mailing list