On Tue, 4 Mar 2008, Jeff Dike wrote:

> On Tue, Mar 04, 2008 at 08:14:09PM -0500, Robert P. J. Day wrote:
> >   consider, as a single example, the suggestion on that page that you
> > can configure the eth0 device thusly if you have a running UML
> > session:
> >
> >   $ uml_mconsole umid eth0=tuntap,,,192.168.0.254
> >
> > if i try that, i get:
> >
> > $ uml_mconsole MwxFu2 eth0=tuntap,,,192.168.1.254
> > ERR Unknown command
>
> Oops, fixed.  That should have been
>       uml_mconsole umid config eth0=tuntap,,,192.168.0.254
> of course.

  ah, now we're making progress, thanks.  i apologize for sounding a
bit snippy last night but i'd just spent a few hours perusing the net
for newbie-level intro stuff on UML and was getting increasingly
frustrated by the inconsistent and self-contradictory content i was
running across.  and the above is just another example of what would
be a bit maddening to someone just trying to get some
simple networking.

  so, let me quickly sum up what i've got running.  for the purposes
of experimentation, since i'm on a fedora 8 system, i've grabbed from
http://uml.nagafix.co.uk/ the following:

  * Fedora8-x86-root_fs.bz2
  * kernel32-2.6.24.3.bz2

and verified quickly that, yes, i can run a UML session with those.
so far, so good.  and now, what it took to get networking running in a
very simple way:

1) start UML session with no networking parameters

2) on host, run:

  $ uml_mconsole DywKnv config eth0=tuntap,,,192.168.1.254
  OK
  $

3) in the UML session, enable eth0 thusly:

  UML# ifconfig eth0 192.168.1.253 up
  UML# ifconfig eth0
       eth0   Link encap:Ethernet  HWaddr 9E:14:C3:96:2D:4A
              inet addr:192.168.1.253  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::9c14:c3ff:fe96:2d4a/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:25 errors:0 dropped:0 overruns:0 frame:0
              TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:3846 (3.7 KiB)  TX bytes:308 (308.0 b)
              Interrupt:5
  UML#

4) from the host, can i ping the UML session?

  $ ping 192.168.1.253
    PING 192.168.1.253 (192.168.1.253) 56(84) bytes of data.
    64 bytes from 192.168.1.253: icmp_seq=1 ttl=64 time=0.957 ms
    64 bytes from 192.168.1.253: icmp_seq=2 ttl=64 time=0.229 ms
    ...

    yee ha!  and what about ...

5) from the UML session, can i ping the host?

  UML# ping 192.168.1.254
  ping: error while loading shared libraries: libidn.so.11: \
    cannot open shared object file: No such file or directory
  UML#

  hmmmm ... not so good, but ssh still seems to work:

  UML# ssh 192.168.1.254
  ... success ...

and that's all i was after for the time being.  so we're making
progress, and i'll document the above at my wiki.  but first, a few
questions about the above:

a) once i run the "uml_mconsole" command on the host, is there a way
to verify the result of that operation?  running "ifconfig" doesn't
show me any difference, so how could one verify that that operation
finished correctly?  "ifconfig" won't show a working "tap0" interface
until networking is brought up in the UML session, so is there any
indication at all on the host side until that happens?

b) what must be true about both the host kernel and the guest kernel
for simple networking to work?  i can't think of anything more
frustrating for a beginner than to fight with networking for a while,
only to learn that either his host or guest kernel wasn't configured
and built with the required functionality.  so it would be nice to
have a checklist for both kernels.

  more later.

rday
--


========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to