Re: Libvirt API for attaching volume to domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux