A sample login session

Site Home Page The UML Wiki UML Community Site The UML roadmap What it's good for Case Studies Kernel Capabilities Downloading it Running it Compiling Installation Skas Mode Incremental Patches Test Suite Host memory use Building filesystems Troubles User Contributions Related Links The ToDo list Projects Diary Thanks Contacts
Tutorials The HOWTO (html) The HOWTO (text) Host file access Device inputs Sharing filesystems Creating filesystems Resizing filesystems Virtual Networking Management Console Kernel Debugging UML Honeypots gprof and gcov Running X Diagnosing problems Configuration Installing Slackware Porting UML IO memory emulation UML on 2G/2G hosts Adding a UML system call Running nested UMLs
How you can help Overview Documentation Utilities Kernel bugs Kernel projects
Screenshots A virtual network An X session
Transcripts A login session A debugging session Slackware installation
Reference Kernel switches Slackware README
Papers ALS 2000 paper (html) ALS 2000 paper (TeX) ALS 2000 slides LCA 2001 slides OLS 2001 paper (html) OLS 2001 paper (TeX) ALS 2001 paper (html) ALS 2001 paper (TeX) UML security (html) LCA 2002 (html) WVU 2002 (html) Security Roundtable (html) OLS 2002 slides LWE 2005 slides
Fun and Games Kernel Hangman Disaster of the Month
| ### A sample login session The following transcript comes from a 2.3.99-pre8 kernel configured on the command line as follows: Six block devices (the ubd0 through ubd5 arguments) attached to: My Slackware root filesystem, which will boot the system My SuSE root filesystem A 64 Meg swap file A kernel source pool The physical machine's CD-ROM drive An lmbench pool 128 Meg of physical memory The host end of the network device connection is set to 192.168.0.100 `
    ~/linux/2.3.26/um 999: linux ubd0=../distros/slackware_7.0/root_fs_slackware_7_0 \
    ubd1=../distros/suse_6.3/root_fs_suse mem=128M ubd2=swap ubd3=../kernel \
    umn=192.168.0.100 ubd4=/dev/hdc ubd5=../lmbench
    signal thread pid = 2438
    idle thread pid = 2439
    Linux version 2.3.99-pre8-1um (jdike@ccure.karaya.com) (gcc version \
    egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #30 Sat May 20 13:27:43 \
    EST 2000
    On node 0 totalpages: 32768
    zone(0): 256 pages.
    zone(1): 32512 pages.
    zone(2): 0 pages.
    Calibrating delay loop... 444.33 BogoMIPS
    Memory: 128744k available
    Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes)
    Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
    kmem_create: Poisoning requested, but con given - bdev_cache
    Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
    kmem_create: Poisoning requested, but con given - inode_cache
    VFS: Diskquotas version dquot_6.4.0 initialized
    POSIX conformance testing by UNIFIX
    Linux NET4.0 for Linux 2.3
    Based upon Swansea University Computer Society NET3.039
    kmem_create: Poisoning requested, but con given - skbuff_head_cache
    NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    NET4: Linux TCP/IP 1.0 for NET4.0
    IP Protocols: ICMP, UDP, TCP
    IP: routing cache hash table of 1024 buckets, 8Kbytes
    TCP: Hash tables configured (established 8192 bind 8192)
    Starting kswapd v1.6
    pty: 256 Unix98 ptys configured
    RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
    loop: registered device at major 7
    loop: enabling 8 loop devices
    Initializing stdio console driver
    Initializing software serial port version 0
    serial line 0 assigned pty /dev/ptyp2
    ssl receive thread is pid 2444
    devfs: v0.96 (20000430) Richard Gooch (rgooch@atnf.csiro.au)
    devfs: devfs_debug: 0x0
    devfs: boot_options: 0x0
    VFS: Mounted root (ext2 filesystem) readonly.
    Mounted devfs on /dev
    INIT: version 2.76 booting
    /etc/rc.d/rc.S: Testing filesystem status: Read-only file system
    Parallelizing fsck version 1.15 (18-Jul-1999)
    /dev/ubd/0: clean, 29389/131072 files, 389992/524288 blocks
    Remounting root device with read-write enabled.
    /dev/ubd/0 on / type ext2 (rw)
    none on /dev/pts type devpts (rw,gid=5,mode=620)
    none on /proc type proc (rw)
    Updating module dependencies for Linux 2.3.99-pre8-1um:
    can't locate module slip
    can't locate module ppp
    can't locate module bsd_comp
    Starting PCMCIA services: module directory /lib/modules/2.3.99-pre8-1um/pcmcia \
     not found.
    INIT: Entering runlevel: 3
    Going multiuser...
    Configuring umn as 192.168.0.253...
    Activating IPv4 packet forwarding...
    Starting /sbin/rpc.portmap...
    Mounting remote file systems...
    Starting daemons:  syslogd klogd inetd lpd mountd nfsd
    Starting sendmail daemon (/usr/sbin/sendmail -bd -q15m)...
    451 /etc/sendmail.cf: line 0: cannot open: No such file or directory
    Loading the iBCS module...
    insmod: iBCS: no module by that name found
    /var/lib/apache/sbin/apachectl start: httpd started
    Starting Samba...
    Setting time zone...done

    Welcome to Linux 2.3.99-pre8-1um.

    darkstar login: root
    Password:
    Linux 2.3.99-pre8-1um.
    Last login: Sat May 20 14:10:56 -0500 2000 on ttys/2.
    You have mail.
    darkstar:~# ps uax
    Unknown HZ value! (20) Assume 100.
    USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
    root         1  0.0  0.1   344  184 ?        S    14:23   0:00 init
    root         2  0.0  0.0     0    0 ?        SW   14:23   0:00 [kswapd]
    root         3  0.0  0.0     0    0 ?        SW   14:23   0:00 [kflushd]
    root         4  0.0  0.0     0    0 ?        SW   14:23   0:00 [kupdate]
    bin         61  0.0  0.3  1076  388 ?        S    14:23   0:00 /sbin/rpc.portmap
    root        65  0.0  0.4  1360  620 ?        S    14:23   0:00 /usr/sbin/syslogd
    root        68  0.0  0.3  1096  496 ?        S    14:23   0:00 /usr/sbin/klogd -
    root        70  0.0  0.4  1332  540 ?        S    14:23   0:00 /usr/sbin/inetd
    root        72  0.0  0.4  1380  556 ?        S    14:23   0:00 /usr/sbin/lpd
    root        75  0.0  0.5  1540  704 ?        S    14:23   0:00 /usr/sbin/rpc.mou
    root        77  0.0  0.5  1556  704 ?        S    14:23   0:00 /usr/sbin/rpc.nfs
    root        79  0.0  0.3  1172  500 ?        S    14:23   0:00 /usr/sbin/crond -
    daemon      81  0.0  0.4  1180  580 ?        S    14:23   0:00 /usr/sbin/atd -b
    root        94  0.0  0.9  2156 1196 ?        S    14:23   0:00 /var/lib/apache/s
    nobody      95  0.0  0.9  2168 1188 ?        S    14:23   0:00 /var/lib/apache/s
    nobody      96  0.0  0.9  2168 1188 ?        S    14:23   0:00 /var/lib/apache/s
    nobody      99  0.0  0.9  2168 1188 ?        S    14:23   0:00 /var/lib/apache/s
    nobody     100  0.0  0.9  2168 1188 ?        S    14:23   0:00 /var/lib/apache/s
    nobody     102  0.0  0.9  2168 1188 ?        S    14:23   0:00 /var/lib/apache/s
    root       104  0.0  0.7  1732 1000 ttys/0   S    14:23   0:00 -bash
    root       105  0.0  0.3  1048  432 ttys/1   S    14:23   0:00 /sbin/agetty 3840
    root       106  0.0  0.3  1048  432 ttys/2   S    14:23   0:00 /sbin/agetty 3840
    root       107  0.0  0.3  1048  432 ttys/3   S    14:23   0:00 /sbin/agetty 3840
    root       119  0.0  0.5  2360  732 ttys/0   R    14:23   0:00 ps uax
    darkstar:~# more /proc/meminfo
            total:    used:    free:  shared: buffers:  cached:
    Mem:  131833856 20070400 111763456        0   462848 13287424
    Swap:        0        0        0
    MemTotal:    128744 kB
    MemFree:     109144 kB
    MemShared:        0 kB
    Buffers:        452 kB
    Cached:       12976 kB
    HighTotal:        0 kB
    HighFree:         0 kB
    LowTotal:    128744 kB
    LowFree:     109144 kB
    SwapTotal:        0 kB
    SwapFree:         0 kB
    darkstar:~# swapon /dev/ubd/2
    darkstar:~# more /proc/meminfo
            total:    used:    free:  shared: buffers:  cached:
    Mem:  131833856 20111360 111722496        0   462848 13287424
    Swap: 67104768        0 67104768
    MemTotal:    128744 kB
    MemFree:     109104 kB
    MemShared:        0 kB
    Buffers:        452 kB
    Cached:       12976 kB
    HighTotal:        0 kB
    HighFree:         0 kB
    LowTotal:    128744 kB
    LowFree:     109104 kB
    SwapTotal:    65532 kB
    SwapFree:     65532 kB
    darkstar:~# mount /dev/ubd/5 /mnt
    darkstar:~# mount
    /dev/ubd/0 on / type ext2 (rw)
    none on /dev/pts type devpts (rw,gid=5,mode=620)
    none on /proc type proc (rw)
    /dev/ubd/5 on /mnt type ext2 (rw)
    darkstar:~# df
    Filesystem           1k-blocks      Used Available Use% Mounted on
    /dev/ubd/0              507748    373482    108052  78% /
    /dev/ubd/5               19825      5375     13426  29% /mnt
    darkstar:~# more /proc/filesystems
    nodev	shm
    nodev	pipefs
    	ext2
    	minix
    	vfat
    nodev	proc
    	iso9660
    nodev	devfs
    nodev	devpts
    darkstar:~# halt
    INIT: Switching to runlevel: 0
    INIT: Sending processes the TERM signal

    Broadcast message from root (ttys/0) Sat May 20 14:27:06 2000...

    The system is going down for system halt NOW !!
    darkstar:~# INIT: Sending processes the KILL signal
    Running shutdown script /etc/rc.d/rc.0:
    Unmounting remote filesystems.
    Turning off swap.
    Unmounting local file systems.
    Remounting root filesystem read-only.
    Power down.

    ~/linux/2.3.26/um 1000:
`

Hosted at