Hi list,

I'm building my first usermode linux system, using a howto from the Gentoo 
site. (http://www.gentoo.org/doc/en/uml.xml)

When I booted linux, it hung(*) because it couldn't find any modules, so I 
went back and built and installed modules target, mounted the rootfs as 
loopdevice and copied all of the fresh /lib/modules/x.y.z to /mnt/loop/lib/
modules. Nothing is mentioned about modules in the howto so I just had to 
second-guess it...
(*) I assumed it hung because on the host system I saw many many shells 
spawned by the usermode system

So now the modules are there, but the real problem, the endless spawning of 
shells, still persists. This is what I see on the host system:

[host system] ps ax
<snip the usual processes>
 4890 pts/0    T+     0:00 linux [/sbin/init]
 4896 pts/0    T+     0:00 linux [/bin/bash]
 4904 pts/0    T+     0:00 linux [/bin/bash]
 4914 pts/0    T+     0:00 linux [/bin/bash]
 4926 pts/0    T+     0:00 linux [/bin/bash]
 4932 pts/0    T+     0:00 linux [/bin/bash]
 
<snip couple of thousand of identical lines...>

25661 pts/0    T+     0:00 linux [/bin/bash]
25665 pts/0    T+     0:00 linux [/bin/bash]
25669 pts/0    T+     0:00 linux [/sbin/init]
25671 pts/0    T+     0:00 linux [/sbin/init]
25673 pts/0    S+     0:00 linux [/sbin/agetty]
25676 pts/0    T+     0:00 linux [/sbin/init]
25678 pts/0    S+     0:00 linux [/sbin/agetty]

After a long wait, the xterms appear and I can login fine, and networking 
works fine, too.  But the uml guest load is steadily above 1, the system is 
dead slow and the host shows between 1000 and 4000 'linux ......." processes 
equal to the above list.  The host system isn't starved for resources, it's a 
dual xeon machine with 1GB ram.

Are all those shells normal ?  I kind of doubt it...  
Am I nearly there, or is there something really wrong here ? Google didn't 
find anything useful, nor did the faqs et al.

Maarten

[listings: bootlog, kernel config]

Here is what the boot process shows:

host # linux mem=192M ubd0=root_fs ubd1=swap_fs eth0=tuntap,,,192.168.0.254
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
Checking PROT_EXEC mmap in /tmp...OK
tracing thread pid = 9035
Linux version 2.6.10 ([EMAIL PROTECTED]) (gcc version 3.3.5 (Gentoo Linux 
3.3.5-r1, 
ssp-3.3.2-3, pie-8.7.7.1)) #2 Mon Feb 28 21:11:15 CET 2005
Built 1 zonelists
Kernel command line: mem=192M ubd0=root_fs ubd1=swap_fs 
eth0=tuntap,,,192.168.0.254 root=98:0
PID hash table entries: 1024 (order: 10, 16384 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 191488k available
Mount-cache hash table entries: 512 (order: 0, 4096 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 syscall emulation patch for ptrace...missing
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
Checking for /dev/anon on the host...Not available (open failed with errno 2)
NET: Registered protocol family 16
mconsole (version 2) initialized on /root/.uml/89oaw1/mconsole
ubd: Synchronous mode
Netdevice 0 : TUN/TAP backend - IP = 192.168.0.254
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
devfs: 2004-01-31 Richard Gooch ([EMAIL PROTECTED])
devfs: boot_options: 0x0
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
NET: Registered protocol family 2
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
NET: Registered protocol family 1
NET: Registered protocol family 17
Initializing software serial port version 1
elevator: using anticipatory as default io scheduler
 /dev/ubd/disc0: unknown partition table
 /dev/ubd/disc1: unknown partition table
Initializing stdio console driver
ReiserFS: ubda: found reiserfs format "3.6" with standard journal
ReiserFS: ubda: using ordered data mode
ReiserFS: ubda: journal params: device ubda, size 8192, journal first block 
18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: ubda: checking transaction log (ubda)
ReiserFS: ubda: replayed 4 transactions in 0 seconds
ReiserFS: ubda: Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
INIT: version 2.84 booting
Gentoo Linux; http://www.gentoo.org/
Copyright 2001-2004 Gentoo Technologies, Inc.; Distributed under the GPL
 * Mounting proc at /proc...  [ ok ]
 * Mounting sysfs at /sys...  [ ok ]
 * Mounting devfs at /dev...  [ ok ]
 * Mounting devpts at /dev/pts...  [ ok ]
 * Starting devfsd...Started device management daemon v1.3.25 for /dev
  [ ok ]
 * Activating (possible) swap...Adding 513016k swap on /dev/ubd/1.  
Priority:-1 extents:1
  [ ok ]
 * Remounting root filesystem read-only (if necessary)...  [ ok ]
 * Checking root filesystem...Reiserfs super block in block 16 on 0x6200 of 
format 3.6 with standard journal
Blocks (total/free): 768256/660977 by 4096 bytes
Filesystem is NOT clean
Filesystem seems mounted read-only. Skipping journal replay.
Checking internal tree..finished
  [ ok ]
 * Remounting root filesystem read/write...  [ ok ]
 * Setting hostname to jacobse...  [ ok ]
 * Calculating module dependencies...  [ ok ]
 * Checking all filesystems...  [ ok ]
 * Mounting local filesystems...  [ ok ]
 * Activating (possibly) more swap...  [ ok ]
 * Caching service dependencies... * Setting system clock to hardware clock 
[UTC]...  [ ok ]
 * Configuring kernel parameters...  [ ok ]
 * Updating environment...  [ ok ]
 * Cleaning /var/lock, /var/run...  [ ok ]
 * Cleaning /tmp directory...  [ ok ]
 * Bringing lo up...  [ ok ]
 * Initializing random number generator...  [ ok ]
INIT: Entering runlevel: 3
 * Starting metalog...  [ ok ]
 * Setting DNS domainname to kratz.nl...  [ ok ]
 * Mounting network filesystems...  [ ok ]
 * Starting sshd...  [ ok ]
 * Starting vixie-cron...  [ ok ]
 * Starting local...  [ ok ]
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 32887


And this is an excerpt of my uml kernel config

#
# UML-specific options
#
CONFIG_MODE_TT=y
CONFIG_MODE_SKAS=y
CONFIG_NET=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=m
CONFIG_HOSTFS=y
CONFIG_MCONSOLE=y
# CONFIG_HOST_2G_2G is not set
# CONFIG_SMP is not set
CONFIG_NEST_LEVEL=0
CONFIG_KERNEL_HALF_GIGS=1
CONFIG_KERNEL_STACK_ORDER=2
CONFIG_UML_REAL_TIME_CLOCK=y





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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