Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Cannot do kexec in old Redhat EL 4

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
romankqsok
Posts: 22
Joined: 2019-01-06 15:04

Cannot do kexec in old Redhat EL 4

#1 Post by romankqsok »

Hello,

I am trying to kexec kernel 3.2 of Debian Wheezy from an old kernel 2.6 of Redhat EL 4

Getting following error message:

kexec_load failed «function not implemented»

Please suggest how can this be corrected?

Shall any kernel module be loaded for kexec to work?

Kind Regards

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Cannot do kexec in old Redhat EL 4

#2 Post by Head_on_a_Stick »

Please post the exact command(s) you are using.

Guide here: https://wiki.archlinux.org/index.php/kexec#Manually
deadbang

romankqsok
Posts: 22
Joined: 2019-01-06 15:04

Re: Cannot do kexec in old Redhat EL 4

#3 Post by romankqsok »

just:

kexec --initrd=./initrdxxx ./vmlinuzxxx

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Cannot do kexec in old Redhat EL 4

#4 Post by Head_on_a_Stick »

Please read my link, that suggests a slightly different command.
deadbang

romankqsok
Posts: 22
Joined: 2019-01-06 15:04

Re: Cannot do kexec in old Redhat EL 4

#5 Post by romankqsok »

Head_on_a_Stick wrote:Please read my link, that suggests a slightly different command.
It is an old version of kexec:

kexec-tools-1.101-18.i386.rpm

It seems it does not support option:
--reuse-cmdline

I tried to add -l too, it does not help.

It is a RHEL4 kernel:
kernel-2.6.9-67
Last edited by romankqsok on 2019-01-07 15:30, edited 1 time in total.

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: Cannot do kexec in old Redhat EL 4

#6 Post by Segfault »

My understanding is kexec-tools are userspace tools, they won't do any good without KEXEC enabled in kernel.

romankqsok
Posts: 22
Joined: 2019-01-06 15:04

Re: Cannot do kexec in old Redhat EL 4

#7 Post by romankqsok »

Please suggest what is KEXEC feature in terms of kernel space?

Is it a loaded module which can be compiled for a kernel missing it originally

or some code fragment of the kernel itself which only could be backported?

Does a KEXEC enabled kernel exist for RHEL4 somewhere?

Or may be something like:
http://tiny.cc/redhat-kernel

Search results for kernel-2.6.17 :
Filename Distribution File size
kernel-2.6.17.6-1tr.i586.rpm Other 7949 kB
kernel-2.6.17.3-1tr.i586.rpm Other 7948 kB
kernel-2.6.17.18mdv-1-1mdv2007.1.x86_64.rpm Other 18827 kB
kernel-2.6.17.18mdv-1-1mdv2007.1.src.rpm Other 45784 kB
kernel-2.6.17.18mdv-1-1mdv2007.1.i586.rpm Other 20510 kB
kernel-2.6.17.17mdv-1-1mdv2007.1.x86_64.rpm Other 18828 kB
kernel-2.6.17.17mdv-1-1mdv2007.1.src.rpm Other 45777 kB
kernel-2.6.17.17mdv-1-1mdv2007.1.i586.rpm Other 20513 kB
kernel-2.6.17.16mdv-1-1mdv2007.1.x86_64.rpm Other 18836 kB
kernel-2.6.17.16mdv-1-1mdv2007.1.src.rpm Other 45788 kB
kernel-2.6.17.16mdv-1-1mdv2007.1.i586.rpm Other 20517 kB
kernel-2.6.17.15mdv-1-1mdv2007.1.x86_64.rpm Other 18834 kB
kernel-2.6.17.15mdv-1-1mdv2007.1.src.rpm Other 45771 kB
kernel-2.6.17.15mdv-1-1mdv2007.1.i586.rpm Other 20520 kB
kernel-2.6.17.14mdv-1-1mdv2007.1.x86_64.rpm Other 18835 kB
kernel-2.6.17.14mdv-1-1mdv2007.1.src.rpm Other 45786 kB
kernel-2.6.17.14mdv-1-1mdv2007.1.i586.rpm Other 20519 kB
kernel-2.6.17.1-1tr.i586.rpm Other 7948 kB
kernel-2.6.17-13.ydl.2.src.rpm Other 40560 kB
kernel-2.6.17-13.ydl.2.ppc64.rpm Other 10320 kB
kernel-2.6.17-1.ydl.1.src.rpm Other 40540 kB
kernel-2.6.17-1.ydl.1.ppc64.rpm Other 9948 kB
kernel-2.6.17-1.2187_FC5.i686.rpm Other 15081 kB
kernel-2.6.17-1.2187_FC5.i586.rpm Other 14204 kB
kernel-2.6.17-1.2174_FC5.i686.rpm Other 15081 kB
kernel-2.6.17-1.2174_FC5.i586.rpm Other 14208 kB
kernel-2.6.17-1.2139_FC5.i686.rpm Other 15066 kB
kernel-2.6.17-1.2139_FC5.i586.rpm Other 14046 kB


I see even versions like Xen0/Xenu 2.6.18 there.

Where can I get a precompiled RPM with KEXEC kernel for RHEL4?
I need to boot from a factory made DVD at least for getting confident GRUB loader and choose another kernel from it.
Last edited by romankqsok on 2019-01-07 13:26, edited 2 times in total.


User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Cannot do kexec in old Redhat EL 4

#9 Post by Head_on_a_Stick »

Code: Select all

empty@zed:~ $ grep -i kexec /boot/config-4.9.0-8-amd64
CONFIG_KEXEC_CORE=y
CONFIG_KEXEC=y
CONFIG_KEXEC_FILE=y
CONFIG_KEXEC_VERIFY_SIG=y
# CONFIG_KEXEC_JUMP is not set
empty@zed:~ $
Other distributions expose the kernel configuration via /proc/config.gz so you could use this:

Code: Select all

zgrep -i kexec /proc/config.gz
deadbang

romankqsok
Posts: 22
Joined: 2019-01-06 15:04

Re: Cannot do kexec in old Redhat EL 4

#10 Post by romankqsok »

My original RHEL4 kernel config missed KEXEC, I will check in a new kernel.

romankqsok
Posts: 22
Joined: 2019-01-06 15:04

Re: Cannot do kexec in old Redhat EL 4

#11 Post by romankqsok »

Well, I get:

cat config-2.6.17-1.2139_FC5 | grep KEXE
CONFIG_KEXEC=y

Trying to install this Aurox package with its dependencies.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Cannot do kexec in old Redhat EL 4

#12 Post by Head_on_a_Stick »

http://porkmail.org/era/unix/award.html

Leave that poor cat alone! :mrgreen:
deadbang

Post Reply