[PLUG] uml probs - networking and skas 2.4.20 kernel
Steve Jorgensen
jorgens at coho.net
Sat Jun 21 11:22:02 UTC 2003
On Saturday, June 21, 2003 10:08 AM, Derek Loree [SMTP:drl at drloree.com]
wrote:
> On Sat, 2003-06-21 at 02:00, Steve Jorgensen wrote:
> > Hi,
> >
> > Ok, on Debian Sarge (Testing), I got the user-mode-linux stuff
installed,
> > built an umage using rootstrap (first try failed w/ ext3, but works
setting
> > up ext2), and with the help of a friend, got it to actually load and
run
> > the image (contrary to the help, one must specify ubd0=<image>), but I
> > still have a few problems, issues, and questions.
> >
> The uml kernel will load a file named "root_fs" if it is present in the
> directory that you invoked linux from, and you don't specify ubd0.
Ah, it mist be called root_fs. I'm sure I read that, and then blithely
wondered why it didn't magically find and load test-uml.img.
> >
> > 1. Networking (besides lo) doesn't work. During the startup process,
the
> > uml says...
> > Configuring network interfaces... SOICSIFADDR: No such device
> > eth0: ERROR while getting interface flags: No such device
> > SOICSIFADDR: No such device
> > eth0: ERROR while getting interface flags: No such device
> > done.
>
> There a few pieces that need to be in place for this to work. What
> pieces do you have in place?
Before I ran rootstrap, I set the following in the [rootstrap] section of
/etc/rootstrap/rootstrap.conf:
interface=eth0
transport=tuntap
host=192.168.2.3
uml=192.168.2.4
netmask=255.255.255.248
gateway=192.168.2.1
domain=syhome.local
nameserver=192.168.2.2
According to instructions for proxy arp setup (I'll be wanting to run the
switch daemon later, but thought I'd try this first), I set the host
address to be the same as the ip address of eth0 on the host.
> >
> > 2. For good uml performace, I have been trying to build a new host
kernel
> > with the skas patch, but I can't seem to get the Debian Kernel 2.4.20
> > package to build. From the very little I'm finding on th the Web about
the
> > errors I'm getting, these look like bugs with 2.4.20 building under gcc
> > 3.3. Does anyone know how to fix or get around this besides waiting
for a
> > Sarge 2.4.21 package or trying to make do with a stock Kernel instead
of an
> > official Debian-patched one?
>
> I'm just using the Debian image.
I''m not sure what you're saying on this. Are you using the skas patch?
If so, what Debian version are you running, and which kernel source
package did you grab?
> >
> > 3. It looks like either uml in general, or the way this one is
configured
> > expects to run under X. If I run it from a text console, then ps -A
shows
> > a whole bunch of "linux" processes attached to the tty. I presume
these
> > correspond to the Virtual Console windows I get if I do run uml from a
> > terminal in X. This is supposed to be a server box, running on less
than
> > state-of-the-art hardware, so I was hoping to not run X on it at all
during
> > normal operation, but I can see how I would likely want virtual
consoles
> > within my uml sessions from time to time. What are other folks doing
with
> > this?
>
> By default, uml will only load with an X-server capable of spawning
> xterm windows. This behavior can be modified with start up parameters.
> Here is one of my startup lines.
>
> linux eth0=tuntap,,,192.168.2.5 con=port:9000 con1=tty:/dev/tty11
con0=tty:/dev/tty12
>
> This one sets up console login on localhost port 9000 for all consoles
> except the first two, which go to tty11 and tty12 on the host. X is not
> required for this work.
OK, I'll read up on this.
>
> HTH
>
> Derek Loree
Thanks,
- Steve J.
More information about the PLUG
mailing list