Current kexec status?
I want to experiment with kexec and my 2.6.13-rc3 kernel. I'm able to --load the kernel, but on --exec in /etc/init.d/reboot (I replaced the reboot command in there), the machine freezes.
I'm using kexec-tools-1.101, are there any more patches needed?
Signature · 4 lines
Ralf Hildebrandt (i.A. des IT-Zentrums) [email protected] Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155 Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962 IT-Zentrum Standort CBF send no mail to [email protected]
Quoted 3 lines · Ralf Hildebrandt
I want to experiment with kexec and my 2.6.13-rc3 kernel. I'm able to --load the kernel, but on --exec in
/etc/init.d/reboot(I replaced the reboot command in there), the machine freezes.
Can you give more details like
- Which distro release you are running.
- Exactly what changes did you do to /etc/init.d/reboot and what steps did you follow to load the kernel (command line options).
- What do you see on screen? Did the new kernel start booting at all.
- Would be nice if I can get serial console output.
Quoted 3 lines
I'm using kexec-tools-1.101, are there any more patches needed?
For normal kexec, no. You don't need any more patches.
Thanks
Vivek
* Vivek Goyal <[email protected]>:
Quoted 2 lines
Can you give more details like
- Which distro release you are running.
Debian unstable; since it has no kexec-tools, I built those from source.
Quoted 2 lines
- Exactly what changes did you do to
/etc/init.d/rebootand what steps did you follow to load the kernel (command line options).
/etc/init.d/reboot:
===================
echo -n "Rebooting... "
#reboot -d -f -i/usr/local/sbin/kexec -f --exec --debug
Loading the Kernel in /etc/init.d/umountfs, before umount'ing /boot:
====================================================================
echo -n "Loading kernel for kexec()..."/usr/local/sbin/kexec --load /vmlinuz
echo "done."
Quoted 1 line
- What do you see on screen? Did the new kernel start booting at all.
Nope, no booting. I get one line of output which I don't remember; I'll have to retry.
Quoted 1 line
- Would be nice if I can get serial console output.
Sorry, no serial port here.
Signature · 4 lines
Ralf Hildebrandt (i.A. des IT-Zentrums) [email protected] Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155 Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962 IT-Zentrum Standort CBF send no mail to [email protected]
* Ralf Hildebrandt <[email protected]>:
Quoted 2 lines
Nope, no booting. I get one line of output which I don't remember; I'll have to retry.
Retried:
"Starting new kernel" -- and that's it!
Signature · 4 lines
Ralf Hildebrandt (i.A. des IT-Zentrums) [email protected] Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155 Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962 IT-Zentrum Standort CBF send no mail to [email protected]
Quoted 17 lines · Ralf Hildebrandt
* Vivek Goyal <[email protected]>:
Quoted 2 lines
Can you give more details like
- Which distro release you are running.Debian unstable; since it has no kexec-tools, I built those from source.
Quoted 2 lines
- Exactly what changes did you do to
/etc/init.d/rebootand what steps did you follow to load the kernel (command line options).
/etc/init.d/reboot:
===================echo -n "Rebooting... "
#reboot -d -f -i/usr/local/sbin/kexec-f --exec --debug
Quoted 7 lines
Loading the Kernel in
/etc/init.d/umountfs, before umount'ing /boot:
====================================================================echo -n "Loading kernel for
kexec()..."/usr/local/sbin/kexec--load /vmlinuz
echo "done."
Please copy all the mails related to kexec and kdump problems to fastboot mailing list also ([email protected]).
Instead of modifying reboot scripts, first can you try following simple steps from shell.
1. Load the kernel.
#kexec -l <kernel-image> --append=<boot time options>
2. Drop to run level 3
# init 3
3. Exec into second kernel
# kexec -e
Thanks
Vivek