Re: operation forbidden Read Only Access

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

 



On 08.01.2016 12:51, Jean-Pierre Ribeauville wrote:
> Hi,
> 
> When issuing virDomainInterfaceAddresses()   libvirt C language API, I got following error:
> 
> libvirt: Domain Config error : operation forbidden: read only access prevents virDomainInterfaceAddresses
> 

Interesting. Why is that? I mean, why do we require RW connection for
dumping an information? We don't do that for virDomainGetXMLDesc(). I
think that a bug that should be fixed. Let me propose a patch.

> 
> How may I ask for a non-readonly connexion ? ( looks like to be RO by default)


Either use virConnectOpen() or virConnectOpenAuth() and do NOT pass
VIR_CONNECT_RO in the @flags.

Michal

_______________________________________________
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