[libvirt-users] operation forbidden Read Only Access

Hi, When issuing virDomainInterfaceAddresses() libvirt C language API, I got following error: libvirt: Domain Config error : operation forbidden: read only access prevents virDomainInterfaceAddresses How may I ask for a non-readonly connexion ? ( looks like to be RO by default) Thx for help. Regards, J.P. Ribeauville P: +33.(0).1.47.17.20.49 . Puteaux 3 Etage 5 Bureau 4 jpribeauville@axway.com<mailto:jpribeauville@axway.com> http://www.axway.com<http://www.axway.com/> P Pensez à l'environnement avant d'imprimer.

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
participants (2)
-
Jean-Pierre Ribeauville
-
Michal Privoznik