Hi there,

I feel like I am losing my marbles but I am probably making a really
simple mistake...

Below is the startup script I use for running a 2.4.27 guest on a
2.4.27 host and it works fine. (NB Host is bog standard with no SKAS
etc and I can't alter....)

#! /bin/bash

export PATH=$PATH:/usr/local/uml/bin

mkdir -p /scratch/$USER/uml

~/linuxsrc/linux-2.4.27/linux
ubd0=/scratch/$USER/uml/root_fs_cow,/usr/local/uml/root_fs
umid=ianuml1 eth0=daemon $1

Now when I try to run a 2.6.11.4 guest on the same 2.4.27 host with
the script as follows (just the kernel has changed):
#! /bin/bash

export PATH=$PATH:/usr/local/uml/bin

mkdir -p /scratch/$USER/uml

~/linuxsrc/linux-2.6.11.4/linux
ubd0=/scratch/$USER/uml/root_fs_cow,/usr/local/uml/root_fs
umid=ianuml1 eth0=daemon $1

I get:
(snipped before)
Initialized stdio console driver
Console initialized on /dev/tty0
VFS: Cannot open root device "98:0" or unknown-block(98,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(98,0)
 <6>Stopping all CPUs...done

EIP: 0023:[<a01bc594>] CPU: 0 Not tainted ESP: 002b:a0376678 EFLAGS: 00200246
    Not tainted
EAX: 00000000 EBX: 00000001 ECX: a037673c EDX: a03766bc
ESI: 00000008 EDI: 00000001 EBP: a0376694 DS: 002b ES: 002b
Call Trace: 
a037bad0:  [<a003f5fa>] notifier_call_chain+0x2a/0x44
a037bae0:  [<a0015c67>] smp_send_stop+0x77/0x84
a037baf0:  [<a002d88a>] panic+0x46/0x110
a037bb00:  [<a002d8a6>] panic+0x62/0x110
a037bb10:  [<a002d892>] panic+0x4e/0x110
a037bb20:  [<a002e3a8>] printk+0x14/0x1c
a037bb30:  [<a0002f26>] mount_block_root+0xb2/0x10c
a037bb40:  [<a0002f18>] mount_block_root+0xa4/0x10c
a037bba0:  [<a0002faf>] mount_root+0x2f/0x38
a037bbb0:  [<a0002f9c>] mount_root+0x1c/0x38
a037bbc0:  [<a0003018>] prepare_namespace+0x60/0xe8
a037bbd0:  [<a0003057>] prepare_namespace+0x9f/0xe8
a037bbd8:  [<a0010188>] init+0x0/0x174
a037bbe0:  [<a0010234>] init+0xac/0x174
a037bbf0:  [<a001024c>] init+0xc4/0x174
a037bc10:  [<a0013175>] run_kernel_thread+0x39/0x48
a037bc2c:  [<a0010188>] init+0x0/0x174
a037bc3c:  [<a001315a>] run_kernel_thread+0x1e/0x48
a037bcc0:  [<a0015a2d>] unblock_signals+0xd/0x14
a037bcd0:  [<a001983f>] new_thread_handler+0x163/0x17c
a037bcd4:  [<a0010188>] init+0x0/0x174
a037bce0:  [<a0019820>] new_thread_handler+0x144/0x17c
a037bd20:  [<a01bc558>] __restore+0x0/0x8
a037bd60:  [<a01bc594>] Letext+0x34/0x93

 tracing thread pid = 20303


I can recognise that it doesn't like my filesystem but can't work out
the correct syntax and have also tried downloading other rootfs setups
as well with no joy.

Here are some variations I have tried:
~/linuxsrc/linux-2.6.11.4/linux root=/dev/ubd0
ubd0=/scratch/$USER/uml/root_fs_cow,/usr/local/uml/root_fs
umid=ianuml1 eth0=daemon $1
~/linuxsrc/linux-2.6.11.4/linux root=/dev/ubda
ubda=/scratch/$USER/uml/root_fs_cow,/usr/local/uml/root_fs
umid=ianuml1 eth0=daemon $1
~/linuxsrc/linux-2.6.11.4/linux root=/dev/ubd0
ubd0=/scratch/$USER/uml/root_fs_cow,/usr/local/uml/root_fs
umid=ianuml1 eth0=daemon $1
~/linuxsrc/linux-2.6.11.4/linux
ubda=/scratch/$USER/uml/root_fs_cow,/usr/local/uml/root_fs
umid=ianuml1 eth0=daemon $1

I have also done mknod /dev/ubda b 98 0 within this hostfs under the 2.4 kernel.

Can someone well tell me what I am doing wrong or are my host/kernel
combinations not possible to work?

I will write this up as a Wiki page afterwards as I have searched a
lot of archives and not found the answer....

Ian


-------------------------------------------------------
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_ide95&alloc_id396&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