From: Mike Sager <sager@be...> - 2001-07-19 00:00:10
I started using UML this week and am having trouble getting networking
going. I read the UML How-To on Networking but found it a bit jumbled and
confusing. I searched the mailing list archives and saw a number of posts
regarding networking. While some of the posts had helpful information, I
apparently haven't been able to piece enough of it together to get my
networking to work. Plus, I'm not certain if all of the information given
is current relative to my kernel version.
Here are my particulars.
I downloaded the 2.4.6 kernel source tree, the uml-patch-2.4.6 patch, and
the root_fs.rh71.pristine filesystem.
I applied the patch and compiled the kernel successfully (using ARCH=um).
Using the rh71 filesystem, I can get the UML kernel to run just fine. I
just can't seem to get networking set up correctly.
My host kernel is a Redhat 7.1 distribution using the 2.4.2-2 kernel. My
local network is 192.168.1.0. I have uml_net and uml_router in the host
I've been trying to use the ethertap transport for networking. I created
/dev/tap0 as a character device using 36, 16 as my major, minor numbers.
I believe the tap0 device is configured correctly on the host side, but
am far from certain. Here's what ifconfig tap0 shows:
tap0 Link encap:Ethernet HWaddr FE:FD:00:00:00:00
inet addr:192.168.1.201 Bcast:192.168.1.255 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:413 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
On the UML kernel side, i invoked the process using:
linux mem=32M eth0=ethertap,tap0,,192.168.1.201
(with the above-mentioned rh71 fs renamed to root_fs in the current directory).
The kernel comes up successfully. Here are a few startup messages:
Kernel command line: mem=32M eth0=ethertap,tap0,,192.168.1.201 root=/dev/ubd0
Setting network parameters: [ OK ]
Bringing up interface lo: [ OK ]
Bringing up interface eth0: [ OK ]
SIOCADDRT: File exists
SIOCADDRT: File exists
Running ifconfig eth0 in the UML kernel shows:
eth0 Link encap:Ethernet HWaddr FE:FD:C0:A8:00:8F
inet addr:192.168.0.143 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1484 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
The host side shows uml_net running.
Basically, I'm unable to ping the UML kernel from the host and vice versa.
I get a message saying Destination Host Unreachable from the host side. I
don't get any message on the UML side. It just hangs after dumping out the
UML seems to set the IP address to the 192.168.0.0 network, so maybe my
problem is tied to that. I tried to set up routing on the UML side, but
the system hung (something about death of child and/or signal 11...can try
to recreate if necessary). Probably pilot error, so I'll deal with that
I've tried to provide lots of information to go by. Any help is appreciated.
Step-by-step instructions for both the host and UML sides would be great.
Please let me know if I can provide more information.