Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a QEMU-KVM hypervisor (ubuntu) with several VMs. What I want to do is capture all information of VMs system call to hypervisor (without any intervention to VM whatsoever) in real time within a log file. I also want the information captured can be associated to which VM the system-call came from.

Is it possible? If I want to write a program (in C or python) to do so, can anybody show resources on internet?

share|improve this question

I have no idea how you want to use such information, but to capture all system calls done by vm you should run vm like:

strace kvm ....

Other possibility is to use systemtap.

share|improve this answer
I'm trying to use the info for machine learning input. Recently been looking into VMI, but it seems for vmi to work i still need to tamper into it. Thank you, i will look those two you mention. – adywp Jun 4 '14 at 11:06
“System calls” in the question is a misnomer, the question is asking about hypervisor calls, which are not system calls of the host OS. – Gilles Jun 4 '14 at 22:19
Could you please explain/point to some additional information about "hypervisor calls"? What it is? – gena2x Jun 5 '14 at 10:48

Your Answer


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.