Linux kernel netconsole setup with LILO and netcat

Here's a tested combination of settings, assuming that the kernel has netconsole support compiled in (not a module):

In /etc/lilo.conf, the section may look like:

image=/boot/vmlinuz-2.6.18-194.8.1.el5.028stab070.2.owl3
        label=070.2.owl3
        append="panic=10 netconsole=444@192.168.xxx.src/eth1,666@192.168.xxx.dst/00:11:22:33:44:55"

Of course, proper source IP address, interface name, and destination IP address and MAC address (same Ethernet segment/VLAN) need to be substituted.

On the temporary logging server, run (preferably under screen):

nc -vul 666 | tee -a netcons-srcservername

Tested with OpenBSD-derived netcat that we have in Owl.

internal/netconsole.txt · Last modified: 2010/07/23 15:27 by solar
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate to DokuWiki Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki Powered by OpenVZ Powered by Openwall GNU/*/Linux