hi,
i am trying to create a domain using libvirt 0.9.4 python api and i can't
find any information on how to use the libvirt python api with linux logical
volumes
http://libvirt.org/guide/html-single/#Application_Development_Guide-Device_Config-Disks
is TBD
i figured out that i need to use defineXML to create a domain, however for the
disk part in the xml, i am not sure if i need to create the LVM first, or just
specify the LVM path and libvirt will create the lvm for me and stick the domain
on the lvm
? ? <disk type='block' device='disk'>
? ? ? <driver name='qemu' type='raw' cache='none'
io='native'/>
? ? ? <source dev='/dev/vg001/myhost.blah.com'/>
? ? ? <target dev='hda' bus='ide'/>
? ? </disk>
/usr/lib64/python2.6/site-packages/libvirt.py has:
? ? ? ? ret = libvirtmod.virStorageVolCreateXML(self._o, xmldesc, flags)
? ? ? ? if ret is None:raise libvirtError('virStorageVolCreateXML()
failed', pool=self)
? ? ? ? __tmp = virStorageVol(self, _obj=ret)
? ? ? ? return __tmp
however i don't know the xml format for storage vol
thanks