Re: [libvirt] libvirt live modify

2014-01-01 Thread Michal Novotny
...@gmail.com To: Michal Novotny minov...@redhat.com Sent: Monday, December 23, 2013 7:03:17 PM Subject: Re: [libvirt] libvirt live modify Hi Michal Thanks, its work, Ok one question http://libvirt.org/php/api-reference.html#libvirt_domain_set_metadata the above link is php api reference link

[libvirt] libvirt live modify

2013-12-18 Thread Umar Draz
Hi Can we modify a Virtual machine while its running, I want to update the discription and title Br. Umar -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] libvirt live modify

2013-12-18 Thread Peter Krempa
On 12/18/13 11:41, Umar Draz wrote: Hi Can we modify a Virtual machine while its running, I want to update the discription and title You can use the virDomainSetMetadata and virDomainGetMetadata APIs. http://libvirt.org/html/libvirt-libvirt.html#virDomainSetMetadata Or the virsh desc

Re: [libvirt] libvirt live modify

2013-12-18 Thread Umar Draz
Hi Peter, Thanks for the response, Would you please help how I can use *virDomainSetMetadata* with PHP or any url for help? Br. Umar On Wed, Dec 18, 2013 at 4:11 PM, Peter Krempa pkre...@redhat.com wrote: On 12/18/13 11:41, Umar Draz wrote: Hi Can we modify a Virtual machine while its

Re: [libvirt] libvirt live modify

2013-12-18 Thread Michal Privoznik
On 18.12.2013 12:27, Umar Draz wrote: Hi Peter, Thanks for the response, Would you please help how I can use *virDomainSetMetadata* with PHP or any url for help? Br. Umar [CC'ing Michal Novotny - the libvirt-php maintainer] I don't think you can invoke those APIs via PHP. But I expect

Re: [libvirt] libvirt live modify

2013-12-18 Thread Michal Novotny
Hi Michal and Umar, it's correct I can't invoke this APIs via PHP yet. Please note that libvirt-php is not automatically generated when doing libvirt build and it's a separate project. It's rather easy to implement it to the libvirt-php so if you want to implement it, feel free to implement or if

Re: [libvirt] libvirt live modify

2013-12-18 Thread Umar Draz
HI Michal, Ok , I will wait. I hope you will get sometime to do this. Br. Umar On Wed, Dec 18, 2013 at 5:06 PM, Michal Novotny minov...@redhat.com wrote: Hi Michal and Umar, it's correct I can't invoke this APIs via PHP yet. Please note that libvirt-php is not automatically generated when

Re: [libvirt] libvirt live modify

2013-12-18 Thread Michal Novotny
Hi Umar, that's fine. Give one or two days for this please. Maybe I'll implement earlier but I'm a bit overloaded after my PTO so I can't promise it will be earlier. Also, what APIs would you like to implement? I'm thinking of implementing these two:

Re: [libvirt] libvirt live modify

2013-12-18 Thread Umar Draz
Hi Michal, Thanks for your efforts and help. If I need any other API I will definitely ask you. Br. Umar On Wed, Dec 18, 2013 at 5:19 PM, Michal Novotny minov...@redhat.com wrote: Hi Umar, that's fine. Give one or two days for this please. Maybe I'll implement earlier but I'm a bit

Re: [libvirt] libvirt live modify

2013-12-18 Thread Michal Novotny
Hi Umar, please see commit http://libvirt.org/git/?p=libvirt-php.git;a=commit;h=e3e783413d8f001ee0a266edbac949c78616fde0 . The functions mentioned below have been implemented. Michal On 12/18/2013 01:29 PM, Umar Draz wrote: Hi Michal, Thanks for your efforts and help. If I need any other API

Re: [libvirt] libvirt live modify

2013-12-18 Thread Umar Draz
Hi Michal, Thanks, Now what I need here? I already have installed libvirt-php-0.4.8, do I need to copy libvirt-php.chttp://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3c0651e882abf538473ff013cb68e499be43;hb=e3e783413d8f001ee0a266edbac949c78616fde0

Re: [libvirt] libvirt live modify

2013-12-18 Thread Michal Novotny
Hi Umar, you have to clone it from git repository and compile it and install. You can simply do it by: git clone git://libvirt.org/libvirt-php.git ./autogen.sh make sudo make install And then you have to restart your Apache webserver. For example how to use it, see the test in

Re: [libvirt] libvirt live modify

2013-12-18 Thread Umar Draz
Hi Michal I tried but on autogen.sh is failed automake: error: global options already processed automake: Please contact bug-autom...@gnu.org. at /usr/share/automake-1.14/Automake/Channels.pm line 662, GEN0 line 77. Automake::Channels::msg('automake', '', 'global options already

Re: [libvirt] libvirt live modify

2013-12-18 Thread Michal Novotny
Hi Umar, then you don't have working automake setup. Please google how to solve it, I apologize but I don't really have much time to solve it right now. Thanks for understanding, Michal On 12/18/2013 04:21 PM, Umar Draz wrote: Hi Michal I tried but on autogen.sh is failed automake: error:

Re: [libvirt] libvirt live modify

2013-12-18 Thread Umar Draz
Hi Michal, No worries, I will But again Thanks Br. Umar On Wed, Dec 18, 2013 at 8:25 PM, Michal Novotny minov...@redhat.com wrote: Hi Umar, then you don't have working automake setup. Please google how to solve it, I apologize but I don't really have much time to solve it right now.