[libvirt-users] operation forbidden Read Only Access

Michal Privoznik mprivozn at redhat.com
Mon Jan 11 11:47:07 UTC 2016


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




More information about the libvirt-users mailing list