[libvirt] A question about create image for sheepdog

Alex Jia ajia at redhat.com
Thu Sep 8 14:06:42 UTC 2011


On 09/08/2011 09:35 PM, chang liu wrote:
> Hi everyone:
> I want to build a VM Manage System, and I use libvirt to create and 
> delete VM. But now I has used sheepdog as the disk, but I have to 
> create sheepdog image by hand. If I have a thousand of servers, how 
> can I create the image? I think if I can write a API for create the 
> sheepdog image by call the qemu-img or kvm-img? (My English is rather 
> poor, please forgive me)
Maybe, the 
virStorageBackendFSImageToolTypeToFunc/virStorageBackendCreateQemuImg 
API is what you want, you can find it from the following link:

http://libvirt.org/git/?p=libvirt.git;a=blob_plain;f=src/storage/storage_backend.c;hb=HEAD

Regards,
Alex
>
>
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110908/65ffe423/attachment-0001.htm>


More information about the libvir-list mailing list