How to programmatically see that Proxmox GUI VM console output but from a terminal?

SebTardif

New Member
Feb 18, 2023
4
1
1
I'm starting to see the side effect of having a great GUI. I'm struggling to find examples to do the same in an automated way...

When a VM is already started, I can go to the Proxmox GUI, select my VM, like 100 (vm-0) and select "Console", and it shows me at least the tail of the log.

How can I see the same from a terminal so that I can do grep on it? In my case, it contains 2 useful info, a certificate fingerprint, and the super useful ip address...

Maybe that same "Console" output I can see from the GUI is in a file somewhere in the Proxmox file system?
 
If you're talking about a QEMU/KVM virtual machine, then you can get the same information if you configure a virtual serial console.

In general, I'd suggest to configure network logging so that you see all the local console output (which is kernel ring buffer output) in a centralized logging place. This is all guest os specific, so please refer to the guest OS manual.