Cannot do kexec in old Redhat EL 4

If none of the more specific forums is the right place to ask

Cannot do kexec in old Redhat EL 4

Postby romankqsok » 2019-01-06 15:18

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
romankqsok
 
Posts: 22
Joined: 2019-01-06 15:04

Re: Cannot do kexec in old Redhat EL 4

Postby Head_on_a_Stick » 2019-01-06 15:54

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

Guide here: https://wiki.archlinux.org/index.php/kexec#Manually
User avatar
Head_on_a_Stick
 
Posts: 10346
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Cannot do kexec in old Redhat EL 4

Postby romankqsok » 2019-01-06 20:47

just:

kexec --initrd=./initrdxxx ./vmlinuzxxx
romankqsok
 
Posts: 22
Joined: 2019-01-06 15:04

Re: Cannot do kexec in old Redhat EL 4

Postby Head_on_a_Stick » 2019-01-06 20:54

Please read my link, that suggests a slightly different command.
User avatar
Head_on_a_Stick
 
Posts: 10346
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Cannot do kexec in old Redhat EL 4

Postby romankqsok » 2019-01-07 11:08

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.
romankqsok
 
Posts: 22
Joined: 2019-01-06 15:04

Re: Cannot do kexec in old Redhat EL 4

Postby Segfault » 2019-01-07 12:36

My understanding is kexec-tools are userspace tools, they won't do any good without KEXEC enabled in kernel.
Segfault
 
Posts: 905
Joined: 2005-09-24 12:24

Re: Cannot do kexec in old Redhat EL 4

Postby romankqsok » 2019-01-07 12:44

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.
romankqsok
 
Posts: 22
Joined: 2019-01-06 15:04


Re: Cannot do kexec in old Redhat EL 4

Postby Head_on_a_Stick » 2019-01-07 17:58

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
User avatar
Head_on_a_Stick
 
Posts: 10346
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Cannot do kexec in old Redhat EL 4

Postby romankqsok » 2019-01-07 18:20

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

Postby romankqsok » 2019-01-07 18:54

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.
romankqsok
 
Posts: 22
Joined: 2019-01-06 15:04

Re: Cannot do kexec in old Redhat EL 4

Postby Head_on_a_Stick » 2019-01-07 18:55

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

Leave that poor cat alone! :mrgreen:
User avatar
Head_on_a_Stick
 
Posts: 10346
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to General Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable