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
[email protected]
https://www.redhat.com/mailman/listinfo/libvirt-users

Reply via email to