[libvirt-users] Libvirt API for attaching volume to domain
Varsha Verma
varsha.verma.eee15 at itbhu.ac.in
Wed Aug 14 14:13:11 UTC 2019
Thanks, this is exactly what I needed.
Is there some documentation where I can get how to exactly call this
function along with the arguments?
On Wed, Aug 14, 2019 at 6:48 PM Peter Krempa <pkrempa at redhat.com> wrote:
> On Wed, Aug 14, 2019 at 18:23:30 +0530, Varsha Verma wrote:
> > Hi,
> >
> > I wanted to know if there is any Python API exposed for libvirt using
> which
> > I can attach a libvirt volume to a libvirt domain/VM.
> >
> > I intend to do something similar to the `attach-disk` command of virsh
> > using python.
>
> virsh uses the virDomainAttachDeviceFlags API in the 'attach-disk'
> command wrapper. the python bindings expose it as 'attachDeviceFlags'
> method of the virDomain class.
>
--
*Regards,*
*Varsha Verma*
*Third Year Undergraduate*
*Department of Electrical Engineering*
*IIT-BHU, Varanasi*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20190814/a89c10de/attachment.htm>
More information about the libvirt-users
mailing list