LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   KVM API for starting virtual machines (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/kvm-api-for-starting-virtual-machines-4175425476/)

guardian1 09-03-2012 04:05 PM

KVM API for starting virtual machines
 
Hi Forum,

I have been using KVM and it has proven really easy to use. I am now in a position where I would like to be able to launch KVM virtual machines in particular situations in my work. I have a Python script which is able to identify the right set of circumstances in which we want to launch a VM, but I haven't been able to find an API which would allow me to start a VM.

Google turns up libvirt as the top result, but I can't find anything in there which relates to anything I need. Nothing else seems to turn up.

I know there must be some kind of API which can do this, since wrappers such as Virtual Machine Manager must use them, but I can't figure out how to do this. Can anybody help please?

dyasny 09-04-2012 05:47 AM

google can easily find http://libvirt.org/python.html if this is your favourite language

guardian1 09-04-2012 11:33 AM

the unfortunate thing about libvirt is that it does not work if I install KVM from source. If I install KVM using apt-get, it works fine. This is one of the problems I have been trying to get around but I still haven't sorted it yet. Any other suggestions please?


All times are GMT -5. The time now is 07:10 AM.