Thanks for your immediate answer. It helped me solving the problem, and the 
following is just for information.

Am Mittwoch, 10. Januar 2007 00:58 schrieb Blaisorblade:
> On Tuesday 09 January 2007 17:05, Sten Heinze wrote:
> Sorry, post at least the output of linux --version (i don't have an idea if
> it is a 2.4 or 2.6 one).
I assumed that my UML guest is the last user-mode-linux deb package is enough, 
sorry, but to be exactly:
$ linux --version
2.6.18
$ apt-show-versions |grep user-mode-linux
user-mode-linux/testing uptodate 2.6.18-1um-2

> > $ rootstrap root_fs
> >
> > or after creating the fs with
> >
> > $ linux single con0=fd:0,fd:1 con=pts root=/dev/root rootflags=/
> > rootfstype=hostfs ubd1=root_fs init=/usr/lib/rootstrap/builder
> > devfs=nomount
> > [...]
> > VFS: Mounted root (hostfs filesystem) readonly.
> >
> > The guest stops after this without a login prompt. [...]
> > Additionally to that the guest uses 100% of my host cpu until I stop it
> > with a halt from uml_mconsole.
>
> This means it is hung. However, the command line you post may make sense to
> create the root fs, not to get a login prompt. So for me it's unclear
> whether the root fs was created (you can give a look by loop-mounting the
> rootfs, after rootstrap finished), or not.
A file root_fs is created, but I'm unable to mount itwhich is created with 
Debians rootstrap. But I was able to mount the downloaded Fedora rootfs:
# ls /mnt/
# mount -o loop root_fs /mnt
mount: you must specify the filesystem type
# mount -o loop ./FedoraCore5-x86-root_fs /mnt
# ls /mnt/
bin   dev  home  lost+found  mnt  proc  sbin     srv  tmp  var
boot  etc  lib   media       opt  root  selinux  sys  usr
# umount /mnt/

> To boot it, then, the command line should be like:
> linux con0=fd:0,fd:1 con=pts ubd0=root_fs devfs=nomount
> or even
> linux ubd0=root_fs
> if you can accept the defaults.
With the knowledge of the working Fedora rootfs I downloaded the Fedora UML 
guest from http://user-mode-linux.sourceforge.net/new/ (same location where 
this rootfs is from) and tried to boot it:

host kernel without skas-patch:
$ cat /proc/version
Linux version 2.6.18.5-sh-pentiumm ([EMAIL PROTECTED]) (gcc version 4.1.2 
20061028 (prerelease) (Debian 4.1.1-19)) #1 SMP PREEMPT Tue Dec 12 10:26:27 
CET 2006
$ ./linux-2.6.19-rc5 ubd0=FedoraCore5-x86-root_fs
[...]
Checking for the skas3 patch in the host:
  - /proc/mm...not found
  - PTRACE_FAULTINFO...not found
  - PTRACE_LDT...not found
UML running in SKAS0 mode
Linux version 2.6.19-rc5 ([EMAIL PROTECTED]) (gcc version 4.1.1 
20060525 (Red Hat 4.1.1-1)) #24 Wed Nov 8 12:05:48 EST 2006
[...]
VFS: Mounted root (ext3 filesystem) readonly.
mapping mmap stub failed, errno = 12
Kernel panic - not syncing: start_userspace : expected SIGSTOP, got status = 
256

host kernel with skas-patch:
$ cat /proc/version
Linux version 2.6.18.5-sh-pentiumm-skas3-v9-pre9 ([EMAIL PROTECTED]) (gcc 
version 4.1.2 20061028 (prerelease) (Debian 4.1.1-19)) #1 SMP PREEMPT Sun Jan 
7 23:48:13 CET 2007
$ ./linux-2.6.19-rc5 ubd0=FedoraCore5-x86-root_fs
[...]
Checking for the skas3 patch in the host:
  - /proc/mm...found
  - PTRACE_FAULTINFO...found
  - PTRACE_LDT...found
UML running in SKAS3 mode
Linux version 2.6.19-rc5 ([EMAIL PROTECTED]) (gcc version 4.1.1 
20060525 (Red Hat 4.1.1-1)) #24 Wed Nov 8 12:05:48 EST 2006
[...]
VFS: Mounted root (ext3 filesystem) readonly.

Again, this hung with 100% cpu usage on the host. Same result if I try to boot 
the Fedora rootfs with the Debian UML guest. Booting root_fs gives:
Kernel panic - not syncing: VFS: Unable to mount root fs on 
unknown-block(98,0)

> For a start, http://uml.nagafix.co.uk/ can be a good site. It includes both
> binary kernels and pre-built images of various sizes.
So I tried this website, downloaded the Debian-3.1-x86-root_fs tried to boot 
it with the Debian UML guest - an it worked. Booting this 
Debian-3.1-x86-root_fs with the Fedora UML guest worked as well.

So it seems that Debian rootstrap isn't creating working filesystem images. 
But that doesn't matter, I wanted to create my own images anyway. So I can 
say: problem solved. 

Thank you for your help!

Sten

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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