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

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


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:

- 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,

  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"


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


> 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
srcversion:     8566AF83E77ED6800905F32

More information about the ubuntu-users mailing list