Re: [libvirt-users] changeBegin() on python API

2015-11-02 Thread Laine Stump
On 11/02/2015 09:48 AM, Laine Stump wrote: On 10/30/2015 07:02 AM, Michal Privoznik wrote: On 29.10.2015 15:22, Ramon Medeiros wrote: Hi, is changeBegin() working on python? I was trying to use the following method: if = conn.interfaceLookupByName("name") if.undefine() I saw that changeBegin

Re: [libvirt-users] Creating network interfaces with specific name in LXC

2015-11-02 Thread Martin Kletzander
On Fri, Oct 30, 2015 at 10:09:51PM +0530, Harish Vishwanath wrote: Thanks Martin. What I would like to achieve is govern the interface name created within the container, so that my application can take different actions on different interfaces (such as eth0, eth1 etc.,). That is what you'

Re: [libvirt-users] virsh edit from script ??

2015-11-02 Thread Daniel P. Berrange
On Mon, Nov 02, 2015 at 01:37:09PM +, Jean-Pierre Ribeauville wrote: > Hi, > > I need to add , via script , a channel device in .xml guest config file. > > Is virsh edit useable from a "standard" script or is there any more > suitable way to use ? As well as what Peter already suggested, n

Re: [libvirt-users] changeBegin() on python API

2015-11-02 Thread Laine Stump
On 10/30/2015 07:02 AM, Michal Privoznik wrote: On 29.10.2015 15:22, Ramon Medeiros wrote: Hi, is changeBegin() working on python? I was trying to use the following method: if = conn.interfaceLookupByName("name") if.undefine() I saw that changeBegin() does not commit changes, but i can't use

Re: [libvirt-users] virsh edit from script ??

2015-11-02 Thread Peter Krempa
On Mon, Nov 02, 2015 at 13:37:09 +, Jean-Pierre Ribeauville wrote: > Hi, > > I need to add , via script , a channel device in .xml guest config file. > > Is virsh edit useable from a "standard" script or is there any more > suitable way to use ? Try virsh attach-device/detach-device Pete

Re: [libvirt-users] virDomainMemoryStats missing counters ...

2015-11-02 Thread Michal Privoznik
On 02.11.2015 14:45, Jean-Pierre Ribeauville wrote: > Hi, > > Thx for answer . > > By using these releases , > > > > libvirt-gconfig-0.1.7-3.el7.x86_64 > libvirt-daemon-config-nwfilter-1.2.8-16.el7_1.3.x86_64 > libvirt-daemon-1.2.8-16.el7_1.3.x86_64 > libvirt-daemon-driver-storage-1.2.8-16.el7

Re: [libvirt-users] virDomainMemoryStats missing counters ...

2015-11-02 Thread Jean-Pierre Ribeauville
Hi, Thx for answer . By using these releases , libvirt-gconfig-0.1.7-3.el7.x86_64 libvirt-daemon-config-nwfilter-1.2.8-16.el7_1.3.x86_64 libvirt-daemon-1.2.8-16.el7_1.3.x86_64 libvirt-daemon-driver-storage-1.2.8-16.el7_1.3.x86_64 libvirt-daemon-driver-network-1.2.8-16.el7_1.3.x86_64 libvirt-da

[libvirt-users] virsh edit from script ??

2015-11-02 Thread Jean-Pierre Ribeauville
Hi, I need to add , via script , a channel device in .xml guest config file. Is virsh edit useable from a "standard" script or is there any more suitable way to use ? Thanks. J.P. Ribeauville P: +33.(0).1.47.17.20.49 . Puteaux 3 Etage 5 Bureau 4 jpribeauvi...@axway.com

Re: [libvirt-users] problem connecting to libvirtd remotely; compiled from sources

2015-11-02 Thread Michal Privoznik
On 02.11.2015 11:56, Andrei Perietanu wrote: > I am trying to add libvirt to a linux machine running a custom built linux- > there is no packet manager, everything is compiled using buildroot. > > On this VM server, I am running libvirt-1.2.2 and the linux kernel is > 3.18.21 > > Libvirtd starts

[libvirt-users] problem connecting to libvirtd remotely; compiled from sources

2015-11-02 Thread Andrei Perietanu
I am trying to add libvirt to a linux machine running a custom built linux- there is no packet manager, everything is compiled using buildroot. On this VM server, I am running libvirt-1.2.2 and the linux kernel is 3.18.21 Libvirtd starts and runs in the background. I can add/edit VMs using Virt-i

Re: [libvirt-users] virDomainMemoryStats missing counters ...

2015-11-02 Thread Michal Privoznik
On 30.10.2015 16:25, Jean-Pierre Ribeauville wrote: > Hi, > > In which libvirt version are these virDomainMemoryStats() counters handled ? > > > VIR_DOMAIN_MEMORY_STAT_SWAP_OUT > VIR_DOMAIN_MEMORY_STAT_MAJOR_FAULT > VIR_DOMAIN_MEMORY_STAT_MINOR_FAULT > VIR_DOMAIN_MEMORY_STAT_UNUSED > VIR_DOMAIN_