Jean-Pierre Ribeauville
2016-Jan-08 11:51 UTC
[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.
Michal Privoznik
2016-Jan-11 11:47 UTC
Re: [libvirt-users] operation forbidden Read Only Access
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