[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Trouble getting uml networking going.


        I am getting various errors trying to set up user-mode-linux
 networking on a 2.4 kernel, running Debian Sid. I have documented
 what happened when trying the preconfigured tun/tap configuration. 

	I have a machine with a simple routing tablee, and a single
 nic with ip I am trying to set up tap0 with the host
 end having an IP address of; and assign to
 the uml.

	Here is what I did initially as root:
__> route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *        U     0      0        0 eth0
default         tiamat.green-gr         UG    0      0        0 eth0
__> route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface   U     0      0        0 eth0         UG    0      0        0 eth0
__> ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:E0:18:96:5B:EC  
          inet addr:  Bcast:  Mask:
          RX packets:1943612 errors:1 dropped:0 overruns:0 frame:2
          TX packets:2029820 errors:0 dropped:0 overruns:0 carrier:615
          collisions:10184 txqueuelen:100 
          RX bytes:1110590037 (1.0 GiB)  TX bytes:816650307 (778.8 MiB)
          Interrupt:17 Base address:0xa400 

__> tunctl -u 1000
Set 'tap0' persistent and owned by uid 1000
__> ifconfig tap0 up
__> echo 1 > /proc/sys/net/ipv4/ip_forward 
__> route add -host dev tap0
__> echo 1> /proc/sys/net/ipv4/conf/tap0/arp_filter 
__> arp -Ds eth0 pub
__> chmod 666 /dev/net/tun
__> echo uml halted now
uml halted now
__> tunctl -d tap0
Set 'tap0' nonpersistent
__> exit

	This next is the script when I ran the uml with the command
 line option: % linux root_fs eth0=tuntap,,, Please note
 that as the kernel is booting, it recognizes a net device:
    Netdevice 0 : TUN/TAP backend - IP =

	But note the following errors:
Configuring network interfaces... tuntap_open_tramp failed - errno = 22
SIOCSIFFLAGS: Invalid argument
tuntap_open_tramp failed - errno = 22
SIOCSIFFLAGS: Invalid argument

Attachment: linux-command
Description: linux root_fs eth0=tuntap,,,

	Running dmesg inside the uml seems to point to a failure to
 run uml_net.

Linux version 2.4.20-6um (mdz@mizar) (gcc version 2.95.4 20011002 (Debian prerelease)) #1 SMP Fri Jun 6 10:15:19 EDT 2003
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root_fs eth0=tuntap,,, root=/dev/ubd0
Calibrating delay loop... 1714.90 BogoMIPS
Memory: 28984k available
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for host processor cmov support...Yes
Checking for host processor xmm support...No
Checking that ptrace can change system call numbers...OK
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
POSIX conformance testing by UNIFIX
All CPUs are go!
Waiting on wait_init_idle (map = 0x0)
All processors have done init_idle
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Diskquotas version dquot_6.4.0 initialized
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
pty: 256 Unix98 ptys configured
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Initializing software serial port version 1
mconsole (version 2) initialized on /home/srivasta/.uml/d12mjX/mconsole
Partition check:
 ubda: unknown partition table
Initializing stdio console driver
Netdevice 0 : TUN/TAP backend - IP =
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 2048)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
execvp of '/usr/lib/uml/uml_net' failed - errno = 13
tuntap_open_tramp failed - errno = 22
execvp of '/usr/lib/uml/uml_net' failed - errno = 13
tuntap_open_tramp failed - errno = 22
	What am I doing wrong? Is this a bug in uml_net?


I value kindness to human beings first of all, and kindness to
animals.  I don't respect the law; I have a total irreverence for
anything connected with society except that which makes the roads
safer, the beer stronger, the food cheaper, and old men and women
warmer in the winter, and happier in the summer. Brendan Behan
Manoj Srivastava   <srivasta@debian.org>  <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C

Reply to: