OpenVZ Forum


Home » General » Support » Gentoo Kernel Problems (2.6.8-openvz-022.077) Panics Immediately - "kernel too old"
icon9.gif  Gentoo Kernel Problems (2.6.8-openvz-022.077) Panics Immediately - "kernel too old" [message #4577] Sat, 15 July 2006 04:49 Go to next message
Registered User is currently offline  Registered User
Messages: 2
Registered: July 2006
Junior Member
I have emerged the current stable version of the openvz-sources 2.6.8-022.077 in gentoo and compiled the kernel using the options as described in the gentoo howto, in the openvz howto, using the openvz config for that version, and every time I restart the system I get a kernel failure immediately following the mount of filesystem as read only:

VFS: mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memeory: 208K freed
FATAL: kernel too old
Kerel Panic: Attempted to kill init!

I have tried using the devel version of 2.6.16s, 2.6.8-022.076, 2.6.8-022.078, all with the same problem.

Any help would be appreciated. I am rather frustrated and baning my head against the wall.

Searches of these forums suggest the solution is here...

/http://forum.openvz.org/index.php?t=msg&th=398&#msg _2269

However, I cannot even boot to write to /proc nor can I write to proc under my non-openvz kernel even thought it is mounted (rw):

proc on /proc type proc (rw)

echo 2.6.9 > /proc/sys/kernel/virt_osrelease
-bash: /proc/sys/kernel/virt_osrelease: No such file or directory

[Updated on: Sat, 15 July 2006 04:53]

Report message to a moderator

Re: Gentoo Kernel Problems (2.6.8-openvz-022.077) Panics Immediately - "kernel too old" [message #4579 is a reply to message #4577] Sat, 15 July 2006 09:11 Go to previous messageGo to next message
Valmont is currently offline  Valmont
Messages: 225
Registered: September 2005
Senior Member
First of all - try to use latest kernel.
ovzkernel 2.6.8-022stab078.10 is released

updated: Sorry, think in your case it doesn't help. You could try
to manual rewrite version of kernel in /usr/src/linux/Makefile before compiling. It is quick, but not very good solution.


P.S.
/proc - is virtual fs, and you can't do anything that way.
( echo 2.6.9 > /proc/sys/kernel/virt_osrelease under another kernel. ). RTM.


[Updated on: Sat, 15 July 2006 09:24]

Report message to a moderator

Re: Gentoo Kernel Problems (2.6.8-openvz-022.077) Panics Immediately - "kernel too old" [message #4587 is a reply to message #4577] Sat, 15 July 2006 11:14 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

looks like your glibc is too much restrictive.
you can simply patch the kernel Makefile to report more recent kernel version. This won't influence anything for sure.

Also you can try 2.6.16 kernel.


http://static.openvz.org/userbars/openvz-developer.png
Re: Gentoo Kernel Problems (2.6.8-openvz-022.077) Panics Immediately - "kernel too old" [message #4592 is a reply to message #4587] Sat, 15 July 2006 19:37 Go to previous messageGo to next message
Registered User is currently offline  Registered User
Messages: 2
Registered: July 2006
Junior Member
I have tried the same steps with the 2.6.16 kernel, using openvz's config, gentoo's, mine, the documentations, etc. with the same effect. I cannot help, but think I am doing something stupid which is cause this problem.

My glibc version is 2.3.6. I using the NPTL options.

I will try you recommendations and edit the Makefile. And I have run the most recent stable and it failed as well 2.6.8.022.078.

I appreciate your help.
Re: Gentoo Kernel Problems (2.6.8-openvz-022.077) Panics Immediately - "kernel too old" [message #4610 is a reply to message #4592] Tue, 18 July 2006 06:17 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
The problem is that your glibc is compiled with "kernel version flag" >= 2.6.17.

You can do the following to solve it:

add in /etc/make.conf the string

PORTDIR_OVERLAY="/usr/local/portage"

then

mkdir /usr/local/portage
mkdir /usr/local/portage/sys-libs
mkdir /usr/local/portage/sys-libs/glibc

copy to the folder above the contents of

/usr/portage/sys-libs/glibc

edit glibc-2.3.6-r4.ebuild (actually your version is `emerge --pretend glibc`): replabe >=2.6.17 на >=2.6.8.

then

ebuild /usr/local/portage/sys-libs/glibc/glibc-2.3.6-r4.ebuild digest

emerge glibc

reboot in openvz kernel.

Good luck.

[Updated on: Tue, 18 July 2006 06:17]

Report message to a moderator

Previous Topic: *SOLVED* see processes belonging to the Host system
Next Topic: NAT Poblems on HOST Computer
Goto Forum:
  


Current Time: Fri Dec 27 19:04:36 GMT 2024

Total time taken to generate the page: 0.00910 seconds