[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

User-Mode-Linux problem



Hi,

I have problems with the debian-package of user-mode-linux.
I
I use Debian-Sarge and installed the following packages : rootstrap
user-mode-linux uml-utilities umlrun

after that i tried to build a root-fs with rootstrap ... my
bootstrap-config is :

i type "rootstrap test_uml_img" ... ang get :

---

nullserver:/var/uml# rootstrap test
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
tracing thread pid = 25695
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Linux version 2.4.26-3um (root@mizar) (gcc version 3.3.4 (Debian
1:3.3.4-11)) #2 Wed Sep 8 18:07:31 PDT 2004
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: con0=fd:0,fd:1 con=pty root=/dev/root rootflags=/
rootfstype=hostfs ubd1=test init=/usr/lib/rootstrap/builder
devfs=mount rsworkdir=/var/uml
Calibrating delay loop... 491.52 BogoMIPS
Memory: 28148k available
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 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 that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
SGI XFS with ACLs, no debug enabled
SGI XFS Quota Management subsystem
Disabling 2.6 AIO in tt mode
pty: 256 Unix98 ptys configured
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Initializing Cryptographic API
Initializing software serial port version 1
mconsole (version 2) initialized on /root/.uml/qL81PW/mconsole
unable to open root_fs for validation
Partition check:
 ubdb: unknown partition table
Initializing stdio console driver
NET4: Linux TCP/IP 1.0 for NET4.0
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (hostfs filesystem) readonly.
Mounted devfs on /dev
Kernel panic: No init found.  Try passing init= option to kernel.
 <6>SysRq : Show Regs

EIP: 0023:[<a0201b32>] CPU: 0 Not tainted ESP: 002b:a03f76a4 EFLAGS: 00000282
    Not tainted
EAX: 00000000 EBX: 00000001 ECX: a03f7744 EDX: a03f76c4
ESI: 00000008 EDI: 0000000a EBP: a03f76ac DS: 002b ES: 002b
Call Trace: [<a016e390>] [<a0154fbf>] [<a0023add>] [<a000f6b0>] [<a0014c70>]
   [<a000f6eb>] [<a0269680>] [<a0201880>] [<a014eec9>] [<a0201bc4>] [<a000f6b0>]
   [<a014eeae>] [<a000f6b0>] [<a015660a>] [<a000f6b0>] [<a0201ad8>] [<a0201b32>]

UML exited with non-zero status, aborting

---

I tried to experiment with the "init=.." parameter but had no luck ..
as i didnt find out the problem i tried something else and downloaded
the woody-root-fs from uml-site. .. but i get another error ...

---
nullserver:/var/uml# linux ubd0=Debian-3.0r0.ext2
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
tracing thread pid = 26343
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Linux version 2.4.26-3um (root@mizar) (gcc version 3.3.4 (Debian
1:3.3.4-11)) #2 Wed Sep 8 18:07:31 PDT 2004
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: ubd0=Debian-3.0r0.ext2 root=/dev/ubd0
Calibrating delay loop... 491.52 BogoMIPS
Memory: 28148k available
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 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 that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
SGI XFS with ACLs, no debug enabled
SGI XFS Quota Management subsystem
Disabling 2.6 AIO in tt mode
pty: 256 Unix98 ptys configured
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Initializing Cryptographic API
Initializing software serial port version 1
mconsole (version 2) initialized on /root/.uml/k04muR/mconsole
Partition check:
 ubda: unknown partition table
Initializing stdio console driver
NET4: Linux TCP/IP 1.0 for NET4.0
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
INIT: version 2.84 booting
Activating swap.
Checking root file system...
fsck 1.27 (8-Mar-2002)
fsck.ext2: No such file or directory while trying to open /dev/ubd/0
/dev/ubd/0:
The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>


fsck failed.  Please repair manually and reboot.  Please note
that the root file system is currently mounted read-only.  To
remount it read-write:

   # mount -n -o remount,rw /

CONTROL-D will exit from this shell and REBOOT the system.

(none):~#
---

i experimented with the "root=" parameter and "devfs=nomount" .. but i
alwas get either that the root-fs coudn´t be opened (see above) ar
that it couldnt find a filesystem there.... or ....

can you give me a hint on that problem ?

i also tried to repair the fs ...

---
(none):~# e2fsck -b 8193 /dev/ubd0
e2fsck 1.27 (8-Mar-2002)
/dev/ubd0 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong for group #4 (3410, counted=3353).
Fix<y>? yes

Free blocks count wrong (11148, counted=11091).
Fix<y>? yes

Free inodes count wrong for group #3 (649, counted=651).
Fix<y>? yes

Free inodes count wrong for group #5 (0, counted=1).
Fix<y>? yes

Free inodes count wrong (4684, counted=4687).
Fix<y>? yes


/dev/ubd0: ***** FILE SYSTEM WAS MODIFIED *****
/dev/ubd0: 11121/15808 files (1.9% non-contiguous), 50298/61389 blocks
---
 
but same effects after that ..

...

i downloaded the root-fs from several mirrors .. always the same .. so
i don´t think that the file was corrupt or something like that ..


i would relly like to build my own root-fs with rootstrap but this
doesn´t work also (soo top of this mail) ... can anyone help me
getting a debian-root-fs to work.

thx



Reply to: