Using '/dev/net/tun' device (with bochs).

Paul Schulz pschulz01 at gmail.com
Mon May 30 00:03:12 UTC 2005


Greetings,

I have installed 'bochs' (to support a some legacy software) and need to 
get networking working for it under ububtu (hoary).

It doesn't seem to be working 'out of the box' yet and I don't 
understand why.

I'm following the documentation for bochs found here:
http://bochs.sourceforge.net/doc/docbook/user/config-tuntap.html

- The device '/dev/net/tun' is present.
  crw-rw----  1 root root 10, 200 2005-05-25 10:23 /dev/net/tun

- Bochs has an example config in ubuntu which looks for 'ethdev=/dev/net/tun0'
  Is this correct?
  ne2k: ioaddr=0x240, irq=9, mac=fe:fd:00:00:00:01, ethmod=tuntap,
ethdev=/dev/net/tun

  I get the eror "Message: open failed on /dev/net/tun0: No such file
or directory"

  Changing this to '/dev/net/tun' causes a different error
    "open failed on /dev/net/tun: Invalid argument"

Investigating 

- Looking at 'cat /proc/devices' shows 'character device 10' to be 'misc'
  Is this correct? 
  
  # modprobe tun  [this works! (what is this 'misc' thing?)]  

Also...

> modinfo tun
filename:       /lib/modules/2.6.10-5-386/kernel/drivers/net/tun.ko
license:        GPL
alias:          char-major-10-200
vermagic:       2.6.10-5-386 preempt 386 gcc-3.3
depends:
srcversion:     8566AF83E77ED6800905F32




More information about the ubuntu-users mailing list