How do I log console output from a XEN VM?
I have a xen hvm vps with a console thats accessible using VNC. I'm wondering if there's any way of logging anything/everything that is sent to console? I'm trying to log the console cause my vps crashes everyday for some odd reason.
Solution 1:
The typical solution for console logging is to configure your VM with a virtual serial console. This document appears to exactly address your scenario; it discusses how to enable and serial console output under Xen.
If you're using a VPS managed by someone else you may not be able to make the necessary changes to put this configuration in place (although it can't hurt to ask your service provider).
Solution 2:
try to use sudosh or ttyrec. first try ttyrec , as its easy to use.