Shashwat shagun
2018-Aug-25 11:18 UTC
[libvirt-users] Download image to libvirt storage pool
Is there any function in libvirt (golang SDK) to download image to libvirt storage pool from path?
Martin Kletzander
2018-Aug-27 12:49 UTC
Re: [libvirt-users] Download image to libvirt storage pool
On Sat, Aug 25, 2018 at 04:48:01PM +0530, Shashwat shagun wrote:>Is there any function in libvirt (golang SDK) to download image to libvirt >storage pool from path?I _think_ you have to do: https://godoc.org/github.com/libvirt/libvirt-go#StoragePool.StorageVolCreateXML followed by: https://godoc.org/github.com/libvirt/libvirt-go#StorageVol.Upload HTH, Martin