Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Sometimes a virtual machine inside kvm/qemu is saturated (load too high). Even a login (ssh) takes several seconds.

But the host is still accessible. How can I investigate why the virtual machine is saturated?

I would like to use top/iotop from outside. I would like to kill just those processes inside the vm which make trouble.

share|improve this question
add comment

1 Answer

You cannot affect the VM directly from the host, however, commands like kvm_stat and top can provide a good view of what the VM is doing and where the bottleneck is. Under virsh (or in qemu-monitor) there are additional stats, like domblkstat for example

If your VM is so saturated you cannot access it's SSH console, you can try for a direct qemu console instead, using VNC/Spice or a serial console.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.