#!/usr/bin/python
import libvirt
conn = libvirt.open('qemu:///system')
xmldesc = '''

centos_6.5
524288
524288
1

hvm








destroy
restart
restart

/usr/libexec/qemu-kvm


    <--- qemu-img create -f qcow2 /home/centos_6.5.qcow2 10G

































'''
dom = conn.createLinux(xmldesc,0)
print "Domain:id %d running %s"% (dom.ID(),dom.OSType())