Is there a way to tell if I am on a XEN or KVM linux server? Reason I asked is nothing is on top yet I am seeing load averages high well after I do tasks and I am getting hangs/spikes when I do simple tasks
If you have
For example, the first few lines of output on one of my computers is:
A virtual machine from Microsoft? I'm running on Hyper-V.
There is code that can detect this: http://ivanlef0u.fr/repo/windoz/rootkit/invisiblethings/redpill.html
You can also check dmesg and lspci.
Xen PV guest or Xen guests with PV drivers will have something xen-related in dmesg
dmesg | egrep -i 'xen|front
Output on Dell server:
Output on Virtualbox VM:
Output on KVM/QEMU:
This is great for scripts that can parse these out for better identification of servers... but if you use Chef in your infrastructure, you can check the node attribute