Changes

Jump to: navigation, search

Remote console setup

32 bytes added, 20:04, 26 May 2006
Added some formatting to Netconsole
== Netconsole ==
This assumes you have not yet compiled netconsole as a module or into your kernel.
this assumes you have not yet compiled netconsole as a module or into your kernel. edit Edit your kernel configuration file, in my case mine was located at /usr/src/openvz/linux-2.6.16
edit .config with a text editor (nano .config)
set netconsole to Y or M (depending on whether you want it as a module or built into the kernel, i installed it as a module)
<pre>CONFIG_NETCONSOLE=m</pre>
save then recompile the kernel.
next you want your netconsole to send the request to somewhere.
<pre>modprobe netconsole netconsole=4444@10.0.2.2/eth0,6666@10.0.2.1/00:05:5D:34:11:AF</pre>
this will load the module in with your settings. replace your ip address with where 10.0.2.2 is, eth0 is your network interface card. 6666 is the remote netconsole port (UDP), and replace 10.0.2.1 with your remote netconsole server. also add in the mac address of your netconsole server, which in my case was 00:05:5D:34:11:AF.
then just setup netcat on your console server to listen on port 6666 UDP.
<pre>netcat -u -l -p6666</pre>
when your openvz kernel performs an OOPS, it will be captured on the netconsole server :)
enjoy.

Navigation menu