Re: [libvirt] libvirt live modify
Hi Umar, please contact libvirt guys for python bindings. Python bindings for libvirt are not handled by me, I handle just the PHP bindings and I'm not aware of the function support in the Python bindings. Happy New Year! Thanks, Michal - Original Message - From: Umar Draz unix...@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 is there same kind of thing is available for python? Br. Umar On Mon, Dec 23, 2013 at 3:27 PM, Michal Novotny minov...@redhat.com wrote: Hi Umar, I'm on PTO, fortunately I was checking my e-mail because of the goods to declare so I can reply to you. For updating this please use the libvirt_domain_set_metadata() API function, please see [1] for documentation. Hope it helps, Michal [1] http://libvirt.org/php/api-reference.html#libvirt_domain_set_metadata - Original Message - From: Umar Draz unix...@gmail.com To: Michal Novotny minov...@redhat.com Sent: Monday, December 23, 2013 11:05:11 AM Subject: Re: [libvirt] libvirt live modify Hi Michal, Sorry to disturb you again, this works great $info = @libvirt_domain_get_metadata($res, VIR_DOMAIN_METADATA_DESCRIPTION, '', VIR_DOMAIN_AFFECT_CURRENT); Now what I need to do for setting/updating for the domain description or title 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. 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: global options already processed automake: Please contact bug-autom...@gnu.org mailto: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 processed') called at /usr/share/automake-1.14/Automake/ChannelDefs.pm line 212 Automake::ChannelDefs::prog_error('global options already processed') called at /usr/share/automake-1.14/Automake/Options.pm line 421 Automake::Options::process_global_option_list('HASH(0x246df60)') called at /usr/bin/automake line 5331 Automake::scan_autoconf_traces('configure.ac http://configure.ac') called at /usr/bin/automake line 5431 Automake::scan_autoconf_files() called at /usr/bin/automake line 8259 autoreconf: automake failed with exit status: 29 Br. Umar On Wed, Dec 18, 2013 at 7:50 PM, Michal Novotny minov...@redhat.com mailto:minov...@redhat.com wrote: 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 http://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 test-domain-create-get-metadata.phpt file (it's normal PHP script, however I use phpt extension as PHP test but it's standard PHP code). Michal On 12/18/2013 03:45 PM, Umar Draz wrote: Hi Michal, Thanks, Now what I need here? I already have installed libvirt-php-0.4.8, do I need to copy libvirt-php.c http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3c0651e882abf538473ff013cb68e499be43;hb=e3e783413d8f001ee0a266edbac949c78616fde0 libvirt-php. http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3c0651e882abf538473ff013cb68e499be43;hb=e3e783413d8f001ee0a266edbac949c78616fde0 h in the src directory and reconfigure the php-libvirt? Br. Umar On Wed, Dec 18, 2013 at 7:31 PM, Michal Novotny minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com wrote: 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 I will definitely ask you. Br. Umar
[libvirt] libvirt live modify
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
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 command from the commandline. Peter signature.asc Description: OpenPGP digital signature -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] libvirt live modify
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 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 command from the commandline. Peter -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] libvirt live modify
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 them to be able to add easily. Michal? Michal -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] libvirt live modify
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 you can wait a day or two until I have some time I can implement it (the project is not officially supported and it's done in the spare time mainly). I'd just like to ask you whether there are some more APIs you'd like me to implement when I'll be implementing it. Are there any other APIs you'd like? Thanks, Michal On 12/18/2013 12:59 PM, Michal Privoznik wrote: 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 them to be able to add easily. Michal? Michal -- Michal Novotny minov...@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] libvirt live modify
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 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 you can wait a day or two until I have some time I can implement it (the project is not officially supported and it's done in the spare time mainly). I'd just like to ask you whether there are some more APIs you'd like me to implement when I'll be implementing it. Are there any other APIs you'd like? Thanks, Michal On 12/18/2013 12:59 PM, Michal Privoznik wrote: 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 them to be able to add easily. Michal? Michal -- Michal Novotny minov...@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] libvirt live modify
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: http://libvirt.org/html/libvirt-libvirt.html#virDomainGetMetadata http://libvirt.org/html/libvirt-libvirt.html#virDomainSetMetadata Would you like any other APIs? Thanks, Michal On 12/18/2013 01:15 PM, Umar Draz wrote: 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 mailto: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 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 you can wait a day or two until I have some time I can implement it (the project is not officially supported and it's done in the spare time mainly). I'd just like to ask you whether there are some more APIs you'd like me to implement when I'll be implementing it. Are there any other APIs you'd like? Thanks, Michal On 12/18/2013 12:59 PM, Michal Privoznik wrote: 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 them to be able to add easily. Michal? Michal -- Michal Novotny minov...@redhat.com mailto:minov...@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org http://php-virt-control.org -- Umar Draz Network Architect -- Michal Novotny minov...@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] libvirt live modify
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 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: http://libvirt.org/html/libvirt-libvirt.html#virDomainGetMetadata http://libvirt.org/html/libvirt-libvirt.html#virDomainSetMetadata Would you like any other APIs? Thanks, Michal On 12/18/2013 01:15 PM, Umar Draz wrote: 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 mailto: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 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 you can wait a day or two until I have some time I can implement it (the project is not officially supported and it's done in the spare time mainly). I'd just like to ask you whether there are some more APIs you'd like me to implement when I'll be implementing it. Are there any other APIs you'd like? Thanks, Michal On 12/18/2013 12:59 PM, Michal Privoznik wrote: 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 them to be able to add easily. Michal? Michal -- Michal Novotny minov...@redhat.com mailto:minov...@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org http://php-virt-control.org -- Umar Draz Network Architect -- Michal Novotny minov...@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] libvirt live modify
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 I will definitely ask you. Br. Umar On Wed, Dec 18, 2013 at 5:19 PM, Michal Novotny minov...@redhat.com mailto: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 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: http://libvirt.org/html/libvirt-libvirt.html#virDomainGetMetadata http://libvirt.org/html/libvirt-libvirt.html#virDomainSetMetadata Would you like any other APIs? Thanks, Michal On 12/18/2013 01:15 PM, Umar Draz wrote: 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 mailto:minov...@redhat.com mailto:minov...@redhat.com mailto: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 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 you can wait a day or two until I have some time I can implement it (the project is not officially supported and it's done in the spare time mainly). I'd just like to ask you whether there are some more APIs you'd like me to implement when I'll be implementing it. Are there any other APIs you'd like? Thanks, Michal On 12/18/2013 12:59 PM, Michal Privoznik wrote: 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 them to be able to add easily. Michal? Michal -- Michal Novotny minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org http://php-virt-control.org http://php-virt-control.org -- Umar Draz Network Architect -- Michal Novotny minov...@redhat.com mailto:minov...@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org http://php-virt-control.org -- Umar Draz Network Architect -- Michal Novotny minov...@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] libvirt live modify
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 libvirt-php.http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3c0651e882abf538473ff013cb68e499be43;hb=e3e783413d8f001ee0a266edbac949c78616fde0h in the src directory and reconfigure the php-libvirt? Br. Umar On Wed, Dec 18, 2013 at 7:31 PM, Michal Novotny minov...@redhat.com wrote: 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 I will definitely ask you. Br. Umar On Wed, Dec 18, 2013 at 5:19 PM, Michal Novotny minov...@redhat.com mailto: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 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: http://libvirt.org/html/libvirt-libvirt.html#virDomainGetMetadata http://libvirt.org/html/libvirt-libvirt.html#virDomainSetMetadata Would you like any other APIs? Thanks, Michal On 12/18/2013 01:15 PM, Umar Draz wrote: 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 mailto:minov...@redhat.com mailto:minov...@redhat.com mailto: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 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 you can wait a day or two until I have some time I can implement it (the project is not officially supported and it's done in the spare time mainly). I'd just like to ask you whether there are some more APIs you'd like me to implement when I'll be implementing it. Are there any other APIs you'd like? Thanks, Michal On 12/18/2013 12:59 PM, Michal Privoznik wrote: 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 them to be able to add easily. Michal? Michal -- Michal Novotny minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org http://php-virt-control.org http://php-virt-control.org -- Umar Draz Network Architect -- Michal Novotny minov...@redhat.com mailto:minov...@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org http://php-virt-control.org -- Umar Draz Network Architect -- Michal Novotny minov...@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] libvirt live modify
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 test-domain-create-get-metadata.phpt file (it's normal PHP script, however I use phpt extension as PHP test but it's standard PHP code). Michal On 12/18/2013 03:45 PM, Umar Draz wrote: Hi Michal, Thanks, Now what I need here? I already have installed libvirt-php-0.4.8, do I need to copy libvirt-php.c http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3c0651e882abf538473ff013cb68e499be43;hb=e3e783413d8f001ee0a266edbac949c78616fde0 libvirt-php. http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3c0651e882abf538473ff013cb68e499be43;hb=e3e783413d8f001ee0a266edbac949c78616fde0h in the src directory and reconfigure the php-libvirt? Br. Umar On Wed, Dec 18, 2013 at 7:31 PM, Michal Novotny minov...@redhat.com mailto:minov...@redhat.com wrote: 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 I will definitely ask you. Br. Umar On Wed, Dec 18, 2013 at 5:19 PM, Michal Novotny minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto: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 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: http://libvirt.org/html/libvirt-libvirt.html#virDomainGetMetadata http://libvirt.org/html/libvirt-libvirt.html#virDomainSetMetadata Would you like any other APIs? Thanks, Michal On 12/18/2013 01:15 PM, Umar Draz wrote: 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 mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto: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 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 you can wait a day or two until I have some time I can implement it (the project is not officially supported and it's done in the spare time mainly). I'd just like to ask you whether there are some more APIs you'd like me to implement when I'll be implementing it. Are there any other APIs you'd like? Thanks, Michal On 12/18/2013 12:59 PM, Michal Privoznik wrote: 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 them to be able to add easily. Michal? Michal -- Michal Novotny minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org http://php-virt-control.org http://php-virt-control.org http://php-virt-control.org
Re: [libvirt] libvirt live modify
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 processed') called at /usr/share/automake-1.14/Automake/ChannelDefs.pm line 212 Automake::ChannelDefs::prog_error('global options already processed') called at /usr/share/automake-1.14/Automake/Options.pm line 421 Automake::Options::process_global_option_list('HASH(0x246df60)') called at /usr/bin/automake line 5331 Automake::scan_autoconf_traces('configure.ac') called at /usr/bin/automake line 5431 Automake::scan_autoconf_files() called at /usr/bin/automake line 8259 autoreconf: automake failed with exit status: 29 Br. Umar On Wed, Dec 18, 2013 at 7:50 PM, Michal Novotny minov...@redhat.com wrote: 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 test-domain-create-get-metadata.phpt file (it's normal PHP script, however I use phpt extension as PHP test but it's standard PHP code). Michal On 12/18/2013 03:45 PM, Umar Draz wrote: Hi Michal, Thanks, Now what I need here? I already have installed libvirt-php-0.4.8, do I need to copy libvirt-php.c http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3c0651e882abf538473ff013cb68e499be43;hb=e3e783413d8f001ee0a266edbac949c78616fde0 libvirt-php. http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3c0651e882abf538473ff013cb68e499be43;hb=e3e783413d8f001ee0a266edbac949c78616fde0 h in the src directory and reconfigure the php-libvirt? Br. Umar On Wed, Dec 18, 2013 at 7:31 PM, Michal Novotny minov...@redhat.com mailto:minov...@redhat.com wrote: 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 I will definitely ask you. Br. Umar On Wed, Dec 18, 2013 at 5:19 PM, Michal Novotny minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto: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 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: http://libvirt.org/html/libvirt-libvirt.html#virDomainGetMetadata http://libvirt.org/html/libvirt-libvirt.html#virDomainSetMetadata Would you like any other APIs? Thanks, Michal On 12/18/2013 01:15 PM, Umar Draz wrote: 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 mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto: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 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 you can wait a day or two until I have some time I can implement it (the project is not officially supported and it's done in the spare time mainly). I'd just like to ask you whether there are some more APIs you'd like me to implement when I'll be implementing it. Are there any other APIs you'd like? Thanks, Michal On 12/18/2013 12:59 PM, Michal Privoznik wrote: On 18.12.2013 12:27, Umar Draz wrote:
Re: [libvirt] libvirt live modify
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: global options already processed automake: Please contact bug-autom...@gnu.org mailto: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 processed') called at /usr/share/automake-1.14/Automake/ChannelDefs.pm line 212 Automake::ChannelDefs::prog_error('global options already processed') called at /usr/share/automake-1.14/Automake/Options.pm line 421 Automake::Options::process_global_option_list('HASH(0x246df60)') called at /usr/bin/automake line 5331 Automake::scan_autoconf_traces('configure.ac http://configure.ac') called at /usr/bin/automake line 5431 Automake::scan_autoconf_files() called at /usr/bin/automake line 8259 autoreconf: automake failed with exit status: 29 Br. Umar On Wed, Dec 18, 2013 at 7:50 PM, Michal Novotny minov...@redhat.com mailto:minov...@redhat.com wrote: 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 http://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 test-domain-create-get-metadata.phpt file (it's normal PHP script, however I use phpt extension as PHP test but it's standard PHP code). Michal On 12/18/2013 03:45 PM, Umar Draz wrote: Hi Michal, Thanks, Now what I need here? I already have installed libvirt-php-0.4.8, do I need to copy libvirt-php.c http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3c0651e882abf538473ff013cb68e499be43;hb=e3e783413d8f001ee0a266edbac949c78616fde0 libvirt-php. http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3c0651e882abf538473ff013cb68e499be43;hb=e3e783413d8f001ee0a266edbac949c78616fde0h in the src directory and reconfigure the php-libvirt? Br. Umar On Wed, Dec 18, 2013 at 7:31 PM, Michal Novotny minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com wrote: 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 I will definitely ask you. Br. Umar On Wed, Dec 18, 2013 at 5:19 PM, Michal Novotny minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto: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 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: http://libvirt.org/html/libvirt-libvirt.html#virDomainGetMetadata http://libvirt.org/html/libvirt-libvirt.html#virDomainSetMetadata Would you like any other APIs? Thanks, Michal On 12/18/2013 01:15 PM, Umar Draz wrote: 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 mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com
Re: [libvirt] libvirt live modify
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. 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: global options already processed automake: Please contact bug-autom...@gnu.org mailto: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 processed') called at /usr/share/automake-1.14/Automake/ChannelDefs.pm line 212 Automake::ChannelDefs::prog_error('global options already processed') called at /usr/share/automake-1.14/Automake/Options.pm line 421 Automake::Options::process_global_option_list('HASH(0x246df60)') called at /usr/bin/automake line 5331 Automake::scan_autoconf_traces('configure.ac http://configure.ac') called at /usr/bin/automake line 5431 Automake::scan_autoconf_files() called at /usr/bin/automake line 8259 autoreconf: automake failed with exit status: 29 Br. Umar On Wed, Dec 18, 2013 at 7:50 PM, Michal Novotny minov...@redhat.com mailto:minov...@redhat.com wrote: 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 http://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 test-domain-create-get-metadata.phpt file (it's normal PHP script, however I use phpt extension as PHP test but it's standard PHP code). Michal On 12/18/2013 03:45 PM, Umar Draz wrote: Hi Michal, Thanks, Now what I need here? I already have installed libvirt-php-0.4.8, do I need to copy libvirt-php.c http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3c0651e882abf538473ff013cb68e499be43;hb=e3e783413d8f001ee0a266edbac949c78616fde0 libvirt-php. http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3c0651e882abf538473ff013cb68e499be43;hb=e3e783413d8f001ee0a266edbac949c78616fde0 h in the src directory and reconfigure the php-libvirt? Br. Umar On Wed, Dec 18, 2013 at 7:31 PM, Michal Novotny minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com wrote: 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 I will definitely ask you. Br. Umar On Wed, Dec 18, 2013 at 5:19 PM, Michal Novotny minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto: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 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: http://libvirt.org/html/libvirt-libvirt.html#virDomainGetMetadata http://libvirt.org/html/libvirt-libvirt.html#virDomainSetMetadata Would you like any other APIs? Thanks, Michal On 12/18/2013 01:15 PM, Umar Draz wrote: 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 mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com mailto:minov...@redhat.com