2004-01-11 15:46:54

by The NeverGone

[permalink] [raw]
Subject: UML (user-mode-linux) kernel-2.6.x

Hy...

I'd like to run the UML under the KERNEL 2.6, but I couldn't do it with
any of the versions. While it runs well under the kernel 2.4.24, giving
the outcome:

===== uml-log start =====

never@localhost:/mnt/rack3/uml$ linux ubd0=./root_fs_debian2.2_small
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
tracing thread pid = 469
Linux version 2.4.23-1um (mdz@mizar) (gcc version 3.3.3 20031229
(prerelease) (Debian)) #1 Tue Dec 30 11:28:41 PST 2003
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: ubd0=./root_fs_debian2.2_small root=/dev/ubd0
Calibrating delay loop... 514.41 BogoMIPS
Memory: 28704k 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
Checking for /dev/anon on the host...Not available (open failed with errno
2)
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 ([email protected])
devfs: boot_options: 0x0
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 /home/never/.uml/xc11Mb/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.78 booting
Activating swap...
Checking root file system...
Parallelizing fsck version 1.18 (11-Nov-1999)
/dev/ubd/ubd0: clean, 5415/25688 files, 45646/102400 blocks
Calculating module dependencies... depmod: Can't open
/lib/modules/2.4.23-1um/modules.dep for writing
done.
Loading modules: cat: /etc/modules: No such file or directory

modprobe: Can't open dependencies file /lib/modules/2.4.23-1um/modules.dep
(No such file or directory)
Checking all file systems...
Parallelizing fsck version 1.18 (11-Nov-1999)
Setting kernel variables.
Mounting local filesystems...
mount: mount point /dev/pts does not exist
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces: SIOCSIFADDR: No such device
eth0: unknown interface: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth0: unknown interface: No such device
eth0: unknown interface: No such device
done.

Setting the System Clock using the Hardware Clock as reference...
hwclock is unable to get I/O port access: the iopl(3) call failed.
System Clock set. Local time: Sun Jan 11 03:40:47 CET 2004

Cleaning: /tmp /var/lock /var/run.
Initializing random number generator... done.
Recovering nvi editor sessions... done.
INIT: Entering runlevel: 2
PAM_unix[95]: (login) session opened for user root by LOGIN(uid=0)
login[95]: ROOT LOGIN on `tty2'

INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal
INIT: Sending processes the KILL signal
Stopping internet superserver: inetd.
Saving the System Clock time to the Hardware Clock...
hwclock is unable to get I/O port access: the iopl(3) call failed.
Hardware Clock updated to Sun Jan 11 03:41:14 CET 2004.
Stopping portmap daemon: portmap.
Stopping NFS kernel daemon: mountd nfsd.
Unexporting directories for NFS kernel daemon...done.
Stopping NFS common utilities: statd.
Stopping system log daemon: klogd syslogd.
Sending all processes the TERM signal... done.
Sending all processes the KILL signal... done.
Saving random seed... done.
Unmounting remote filesystems... done.
Deconfiguring network interfaces: eth0: unknown interface: No such device
done.
Deactivating swap... done.
Unmounting local filesystems... done.
Power down.

===== uml-log end =====

It stops running with this error under 2.6.1-mm2 (or any of the 2.6s):

===== uml-log start =====

never@localhost:/mnt/rack3/uml$ linux ubd0=./root_fs_debian2.2_small
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
tracing thread pid = 1079
Linux version 2.4.23-1um (mdz@mizar) (gcc version 3.3.3 20031229
(prerelease) (Debian)) #1 Tue Dec 30 11:28:41 PST 2003
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: ubd0=./root_fs_debian2.2_small root=/dev/ubd0
Calibrating delay loop... 506.88 BogoMIPS
Memory: 28704k 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
Checking for /dev/anon on the host...Not available (open failed with errno
2)
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 ([email protected])
devfs: boot_options: 0x0
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 /home/never/.uml/TasBbM/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.
I'm tracing myself and I can't get out

===== uml-log end =====

... and here dead.
Please correct this error.

Thx:
Kurucz "The NeverGone" Istvan :)

==============================================================
--------- Csatlakozz: http://arenaportal.hix.com/ ---------
----- http://arenazo.cjb.net/ -- http://ironiq.hu/aDP/ -----
--- Kurucz "The NeverGone" Istvan: [email protected] ---
-------------- http://delfin.klte.hu/~ki0029/ --------------
==============================================================


2004-01-11 18:21:47

by Tupshin Harper

[permalink] [raw]
Subject: Re: UML (user-mode-linux) kernel-2.6.x

The NeverGone wrote:

>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.
>I'm tracing myself and I can't get out
>
>===== uml-log end =====
>
>... and here dead.
>Please correct this error.
>
>Thx:
>Kurucz "The NeverGone" Istvan :)
>
>
http://usermodelinux.org/

Look at the second item called:
FAQ: "I'm tracing myself and I can't get out"

There is an associated patch which needs to be applied to the UML
*guest* when running on a 2.6 host.

-Tupshin


2004-01-11 21:30:48

by The NeverGone

[permalink] [raw]
Subject: Re: UML (user-mode-linux) kernel-2.6.x

Hi...


> Look at the second item called:
> FAQ: "I'm tracing myself and I can't get out"
> There is an associated patch which needs to be applied to the UML
> *guest* when running on a 2.6 host.

It's compliled into the Kernel, but it's still not works at all...


> This patch:
> http://sdw.st/src/uml/linux-2.6.1-skas3.patch


This patch cant be used with the -mm2 patch

Thx...:

Kurucz "The NeverGone" Istvan :)

==============================================================
--------- Csatlakozz: http://arenaportal.hix.com/ ---------
----- http://arenazo.cjb.net/ -- http://ironiq.hu/aDP/ -----
--- Kurucz "The NeverGone" Istvan: [email protected] ---
-------------- http://delfin.klte.hu/~ki0029/ --------------
==============================================================

2004-01-11 21:56:39

by Tupshin Harper

[permalink] [raw]
Subject: Re: UML (user-mode-linux) kernel-2.6.x

The NeverGone wrote:

>Hi...
>
>
>
>
>>Look at the second item called:
>>FAQ: "I'm tracing myself and I can't get out"
>>There is an associated patch which needs to be applied to the UML
>>*guest* when running on a 2.6 host.
>>
>>
>
>It's compliled into the Kernel, but it's still not works at all...
>
>
The guest UML kernel??? Works for me. What guest kernel are you running?

>
>
>
>>This patch:
>>http://sdw.st/src/uml/linux-2.6.1-skas3.patch
>>
>>
>
>
>This patch cant be used with the -mm2 patch
>
>
That patch is absolutely not necessary to get basic uml functionality
working. It provides the possibility of better performance and more
isolation from the host, but it is not needed.

-Tupshin

2004-01-11 22:06:10

by The NeverGone

[permalink] [raw]
Subject: Re: UML (user-mode-linux) kernel-2.6.x

On Sun, 11 Jan 2004, Tupshin Harper wrote:

> The guest UML kernel??? Works for me. What guest kernel are you running?

The guest UML using 2.4.23, and it works properly with 2.4.24 host kernel,
but not with 2.6.x ...

> That patch is absolutely not necessary to get basic uml functionality
> working. It provides the possibility of better performance and more
> isolation from the host, but it is not needed.

So we can't use this patch, but it's not work at all (without this
patch, too).

Thx...

The NeverGone :)

==============================================================
--------- Csatlakozz: http://arenaportal.hix.com/ ---------
----- http://arenazo.cjb.net/ -- http://ironiq.hu/aDP/ -----
--- Kurucz "The NeverGone" Istvan: [email protected] ---
-------------- http://delfin.klte.hu/~ki0029/ --------------
==============================================================

2004-01-11 22:10:42

by Tupshin Harper

[permalink] [raw]
Subject: Re: UML (user-mode-linux) kernel-2.6.x

The NeverGone wrote:

>On Sun, 11 Jan 2004, Tupshin Harper wrote:
>
>
>
>>The guest UML kernel??? Works for me. What guest kernel are you running?
>>
>>
>
>The guest UML using 2.4.23, and it works properly with 2.4.24 host kernel,
>but not with 2.6.x ...
>
>
Is that guest 2.4.23 kernel stock, with only the mentioned patch (pasted
below) applied?

Are you absolutely positive that you rebuilt that guest kernel with the
patch???(I'm guessing that this is really the problem)

Are you still getting the same error message? ("I'm tracing myself...")

-Tupshin

--- 1.5/arch/um/os-Linux/process.c Sat Jan 18 12:29:27 2003
+++ 1.6/arch/um/os-Linux/process.c Thu Oct 2 14:27:57 2003
@@ -7,6 +7,7 @@
#include <stdio.h>
#include <errno.h>
#include <signal.h>
+#include <linux/unistd.h>
#include <sys/mman.h>
#include <sys/wait.h>
#include "os.h"
@@ -87,7 +88,8 @@

void os_usr1_process(int pid)
{
- kill(pid, SIGUSR1);
+ syscall(__NR_tkill, pid, SIGUSR1);
+/* tkill(pid, SIGUSR1);*/
}

int os_getpid(void)




2004-01-11 22:14:44

by The NeverGone

[permalink] [raw]
Subject: Re: UML (user-mode-linux) kernel-2.6.x

On Sun, 11 Jan 2004, Tupshin Harper wrote:

> Is that guest 2.4.23 kernel stock, with only the mentioned patch (pasted
> below) applied?
>
> Are you absolutely positive that you rebuilt that guest kernel with the
> patch???(I'm guessing that this is really the problem)
>
> Are you still getting the same error message? ("I'm tracing myself...")
>
> -Tupshin
>
> --- 1.5/arch/um/os-Linux/process.c Sat Jan 18 12:29:27 2003
> +++ 1.6/arch/um/os-Linux/process.c Thu Oct 2 14:27:57 2003
> @@ -7,6 +7,7 @@
> #include <stdio.h>
> #include <errno.h>
> #include <signal.h>
> +#include <linux/unistd.h>
> #include <sys/mman.h>
> #include <sys/wait.h>
> #include "os.h"
> @@ -87,7 +88,8 @@
>
> void os_usr1_process(int pid)
> {
> - kill(pid, SIGUSR1);
> + syscall(__NR_tkill, pid, SIGUSR1);
> +/* tkill(pid, SIGUSR1);*/
> }
>
> int os_getpid(void)

Hi...

It's also included in the host kernel (2.6.1-mm2) ...

Thx...

The NeverGone :)

==============================================================
--------- Csatlakozz: http://arenaportal.hix.com/ ---------
----- http://arenazo.cjb.net/ -- http://ironiq.hu/aDP/ -----
--- Kurucz "The NeverGone" Istvan: [email protected] ---
-------------- http://delfin.klte.hu/~ki0029/ --------------
==============================================================

2004-01-11 22:33:09

by Tupshin Harper

[permalink] [raw]
Subject: Re: UML (user-mode-linux) kernel-2.6.x

The NeverGone wrote:

>On Sun, 11 Jan 2004, Tupshin Harper wrote:
>
>
>
>>Is that guest 2.4.23 kernel stock, with only the mentioned patch (pasted
>>below) applied?
>>
>>Are you absolutely positive that you rebuilt that guest kernel with the
>>patch???(I'm guessing that this is really the problem)
>>
>>Are you still getting the same error message? ("I'm tracing myself...")
>>
>>-Tupshin
>>
>>
>>
>>
>
>Hi...
>
>It's also included in the host kernel (2.6.1-mm2) ...
>
>Thx...
>
>The NeverGone :)
>
>
>
You didn't answer any of my questions. I'm forced to believe that the
guest is either not properly patched, not properly rebuilt, or not
actually the version that you're running. Not much I can suggest other
than to recheck those things.

On the odd chance that 2.6.1-mm2 reintroduces a new version of this
problem that the mentioned patch doesn't fix, you could try the host
running stock 2.6.1.

Also, I inadvertently referred to stock 2.4.23, but of course you would
have had to apply a large uml patch to it in order to compile it at all.
Did you? If so, which patch, from where?

-Tupshin

2004-01-11 22:48:26

by Tupshin Harper

[permalink] [raw]
Subject: Re: UML (user-mode-linux) kernel-2.6.x

The NeverGone wrote:

>On Sun, 11 Jan 2004, Tupshin Harper wrote:
>
>
>>You didn't answer any of my questions. I'm forced to believe that the
>>guest is either not properly patched, not properly rebuilt, or not
>>actually the version that you're running. Not much I can suggest other
>>than to recheck those things.
>>
>>On the odd chance that 2.6.1-mm2 reintroduces a new version of this
>>problem that the mentioned patch doesn't fix, you could try the host
>>running stock 2.6.1.
>>
>>Also, I inadvertently referred to stock 2.4.23, but of course you would
>>have had to apply a large uml patch to it in order to compile it at all.
>>Did you? If so, which patch, from where?
>>
>>
>
>Hi...
>
>But everything works on 2.4.24...!
>
>
>
With host 2.4.24, yes. With host 2.6.x, you NEED to apply the patch to
the guest. Why is this not clear?

-Tupshin

2004-01-11 22:45:03

by The NeverGone

[permalink] [raw]
Subject: Re: UML (user-mode-linux) kernel-2.6.x

On Sun, 11 Jan 2004, Tupshin Harper wrote:
> You didn't answer any of my questions. I'm forced to believe that the
> guest is either not properly patched, not properly rebuilt, or not
> actually the version that you're running. Not much I can suggest other
> than to recheck those things.
>
> On the odd chance that 2.6.1-mm2 reintroduces a new version of this
> problem that the mentioned patch doesn't fix, you could try the host
> running stock 2.6.1.
>
> Also, I inadvertently referred to stock 2.4.23, but of course you would
> have had to apply a large uml patch to it in order to compile it at all.
> Did you? If so, which patch, from where?

Hi...

But everything works on 2.4.24...!


The NeverGone... :)

==============================================================
--------- Csatlakozz: http://arenaportal.hix.com/ ---------
----- http://arenazo.cjb.net/ -- http://ironiq.hu/aDP/ -----
--- Kurucz "The NeverGone" Istvan: [email protected] ---
-------------- http://delfin.klte.hu/~ki0029/ --------------
==============================================================