Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 am a newbie in the area of Linux KVM virtualization. Can anybody help how to connect to my KVM hypervisor from a remote Linux machine without using LibVirt or any other third party library. I have searched for this but all the results that i got was using libvirt or commands related to it. I am not allowed to use any third party library and need to take the backup of my KVM from remote machine.

Can you also tell me why a deamon is required in KVM when it is not required in VMware ESXI?

Are there any KVM API's present for taking the backup of VM's running on KVM from a remote machine (without using libvirt)? This backup need to be take at different levels such as VM level, Disk level and file level.

share|improve this question
up vote 2 down vote accepted

KVM is a hypervisor, not a management stack, so if you want to manage it you either log in to the host console, or use management tools like libvirt. Comparing it to ESXi is not very correct in this sense - ESXi is packed with daemons and additional tools, and this is exactly the functionality libvirt provides (actually, it provides more), so I can't see why you cannot use a common Linux based library that is designed to answer your every need on a single host setup.

KVM has the basic command line tools to start/stop VMs, and to interact with the VM you can connect to qemu monitor, however, all of this is much easier and intuitive with libvirt as well.

BTW, using libguestfs you can read the guest filesystem from the host, and take selective backups. And with libvirt managing VM snapshots and lifecycle is also much easier than without it.

share|improve this answer
thanks for the reply dyasny, I know and i had done the same using libvirt. but in current context I have bound to not to use libvirt. the design is I need to take backup of different VM's running on KVM hypervisor from a remote machine without using any deamon process in my KVM server (i.e. it has to be agent less) for different levels (such as VM level, disk level, file level etc) without creating any temporary file. any help will be appreciated. thanks in advance – Dr. Death Oct 19 '12 at 12:15
I wouldn't consider using libvirt as an agent - it's a standard part of the distribution and not a 3rd party product. you need to understand that on ESXi, every tool is just as much of an addon as libvirt is on Linux. Frankly, in all my years dealing with KVM I haven't seen any production setu that used kvm only, without any management wrappers around it – dyasny Oct 19 '12 at 12:25
Libvirt install its deamon as libvirtd in the host server so that the remote machine and communicate with it. the design that i am working on strictly says agentless working is requierd thats why I need to work on KVM alone. Are there any API's for KVM (like what libvirt or Qemu use internally to intarct with KVM) so that I may directly use them. – Dr. Death Oct 19 '12 at 12:38
like I said - qemu monitor. – dyasny Oct 19 '12 at 14:58
@Dr.Death You should fix the design, then. – Michael Hampton Oct 19 '12 at 15:31

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.