Request: Serial Terminal logging

riptide_wave

Member
Mar 21, 2013
73
2
8
Minnesota, USA
Hello,

Recently I have been having issues with one of my VM instances locking up, and am having a hard time diagnosing the cause. Currently the plan is to just run "qm terminal 1**" in a screen session, but this is not the best way as it does not persist across reboots of the hypervisor.

With that said, is there any way to enable logging of a VM that has serial enabled? It would be great to have it log console output to a file, for example, /var/lib/vm-serial/1**.log. This way logrotate could be added to help prevent obsessive disk usage.
 
This would be a great feature, though such logs probably belong in /var/log rather than /var/lib.
 
I use linux kernel internal features which are normally also used on "real" hardware for this:
  • netconsole for "remote logging"
  • sysrq and crashkernel for direct logging and crashing
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!