How to monitor VM usage / last login

How do you manage VM over-allocation?

I’m sure others have come across this situation where users create too many VMs and don’t tidy up after themselves.

I am after a way of finding out when a system was last used. I can’t use ‘last’ on each of the VMs as our users all login as the root user directly (this is non-negotiable), so logging in as the root user to check when someone was on last is clearly not going to work.

The onevm(1) command doesn’t seem to provide anything useful, but maybe I am missing something. It looks like it reports on the VM itself, not the O/S level or anything deeper.

Is there any other way of checking VM usage? How do you monitor your VMs?




Some usage stats can be retrieved with “onevm show VM_ID”.

Best regards