-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Making root filesystems for UML to boot off of is a royal pain. I am
surprised it has not gotten any easier. In the past I have installed an
empty HD just like I wanted it and then copied the fs onto my uml host
computer and it was a real time waster. It seems like there should be
some sort of way to launch a UML kernel pointed at a distro install disk
and go straight into a text based install. I know Gentoo can do this:

http://www.gentoo.org/doc/en/uml.xml

But that's Gentoo. Barely a step away from making your own root_fs using
Linux From Scratch. :) I hear Debian can do it too. Unfortunately those
distro's are not my cup of tea although I might try those gentoo
instructions if I can't get anything else going.

I am mainly interested in booting CentOS 4 (RHEL4) and FC3 in this way.
The host system is an FC1 box running:

Linux copilotconsulting.com 2.4.22-1.2188.nptl #1 Wed Apr 21 20:36:05
EDT 2004 i686 i686 i386 GNU/Linux

And the UML kernel is 2.6.8.1 with the matching patch and all standard
build options except I turned on magic sysrq support. It should be
possible to run a 2.6 UML kernel under a 2.4 host kernel right? I would
upgrade the host but it would be quite inconvenient at the moment for
reasons too complicated to explain.

I thought I would have a go at just booting the UML kernel off of the
boot image on the iso and see what happens. Ideally my kernel would run
RedHat's init scripts and installer. I haven't figured out how I am
going to make it swap ISO images or give it access to the LVM volume
that I have set up for it to install into but I'll cross that bridge
when I come to it.

Usually when I boot my uml kernel I get:

[EMAIL PROTECTED] linux-2.6.8.1]$ ./linux
ubd0=/mnt/images/boot.iso   con0=fd:0,fd:1
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
Adding 25153536 bytes to physical memory to account for exec-shield gap
tracing thread pid = 32378
Linux version 2.6.8.1-1um ([EMAIL PROTECTED]) (gcc version
3.3.2 20031022 (Red Hat Linux 3.3.2-1)) #1 Fri Apr 1 06:41:33 PST 2005
Built 1 zonelists
Kernel command line: ubd0=/mnt/images/boot.iso con0=fd:0,fd:1 root=98:0
PID hash table entries: 16 (order 4: 128 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 29076k available
Calibrating delay loop... 3191.60 BogoMIPS
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 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 /home/treed/.uml/nZz1zJ/mconsole
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Initializing Cryptographic API
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 8
NET: Registered protocol family 20
Initializing stdio console driver

[EMAIL PROTECTED] linux-2.6.8.1]$

It just drops me back at the console. But maybe one in eight times I get
this:

[EMAIL PROTECTED] linux-2.6.8.1]$ ./linux
ubd0=/mnt/images/boot.iso   con0=fd:0,fd:1
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
Adding 7467008 bytes to physical memory to account for exec-shield gap
tracing thread pid = 32193
Linux version 2.6.8.1-1um ([EMAIL PROTECTED]) (gcc version
3.3.2 20031022 (Red Hat Linux 3.3.2-1)) #1 Fri Apr 1 06:41:33 PST 2005
Built 1 zonelists
Kernel command line: ubd0=/mnt/images/boot.iso con0=fd:0,fd:1 root=98:0
PID hash table entries: 16 (order 4: 128 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 29360k available
Calibrating delay loop... 3191.60 BogoMIPS
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 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
Kernel panic: fix_range fixing wrong address space, current = 0xa09ca060
 <6>SysRq : Show Regs

EIP: 0023:[<a012b022>] CPU: 0 Not tainted ESP: 002b:a09da6a4 EFLAGS:
00000202
    Not tainted
EAX: 00000000 EBX: 00000001 ECX: a09da744 EDX: a09da6c4
ESI: 00000008 EDI: 0000000a EBP: a09da6ac DS: 002b ES: 002b
Call Trace: [<a00b1f50>] [<a0018c8a>] [<a00366ea>] [<a0029f86>] [<a0029fef>]
   [<a001ac71>] [<a001abe7>] [<a001b075>] [<a0017bfd>] [<a00199a7>]
[<a016a0db>]
   [<a002c50b>] [<a002c4ed>] [<a000fd51>] [<a00394de>] [<a00394b6>]
[<a012acd1>]
   [<a0039450>] [<a0013c75>] [<a0016467>] [<a0039450>] [<a0013c50>]
[<a00259f2>]
   [<a0019aac>] [<a0039450>] [<a0019b49>] [<a012ae18>] [<a012b022>]
sleeping process 32211 got unexpected signal : 11

And then I have to ctrl-c it. Any suggestions?

- --
Tracy R Reed
http://[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCTY9s9PIYKZYVAq0RAuNaAJ468BiOnmcQ/oF0Eercy1ONbR0AYwCfZyDz
5ibIjSxBo01YNfn1gIsc664=
=tr8c
-----END PGP SIGNATURE-----


-------------------------------------------------------
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