Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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 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 at 22:19
    
Could you please explain/point to some additional information about "hypervisor calls"? What it is? –  gena2x Jun 5 at 10:48

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.