[libvirt] libvirt live modify

Hi Can we modify a Virtual machine while its running, I want to update the <discription> and <title> Br. Umar

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

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 <pkrempa@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

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

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 <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org

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 <minovotn@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 <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org
-- Umar Draz Network Architect

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 <minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com>>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org <http://php-virt-control.org>
-- Umar Draz Network Architect
-- Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org

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 <minovotn@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 <minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com>>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org <http://php-virt-control.org>
-- Umar Draz Network Architect
-- Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org
-- Umar Draz Network Architect

Hi Umar, please see commit http://libvirt.org/git/?p=libvirt-php.git;a=commit;h=e3e783413d8f001ee0a266e... . 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 <minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com>>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org <http://php-virt-control.org>
-- Umar Draz Network Architect
-- Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org

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 <minovotn@redhat.com> wrote:
Hi Umar, please see commit
http://libvirt.org/git/?p=libvirt-php.git;a=commit;h=e3e783413d8f001ee0a266e... .
The functions mentioned below have been implemented.
Michal
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 <minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@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
On 12/18/2013 01:29 PM, Umar Draz wrote: 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 <minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com>>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org <http://php-virt-control.org>
-- Umar Draz Network Architect
-- Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org
-- Umar Draz Network Architect

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 <minovotn@redhat.com <mailto:minovotn@redhat.com>> wrote:
Hi Umar, please see commit http://libvirt.org/git/?p=libvirt-php.git;a=commit;h=e3e783413d8f001ee0a266e... .
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 <minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@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 > <minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> > > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@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> > > > > > > > > > > -- > > Umar Draz > > Network Architect > > -- > Michal Novotny <minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com>>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org <http://php-virt-control.org>
-- Umar Draz Network Architect
-- Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org

Hi Michal I tried but on autogen.sh is failed automake: error: global options already processed automake: Please contact <bug-automake@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 <minovotn@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=7a2a3...
libvirt-php. < http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3... h in the src directory and reconfigure the php-libvirt?
Br.
Umar
On Wed, Dec 18, 2013 at 7:31 PM, Michal Novotny <minovotn@redhat.com <mailto:minovotn@redhat.com>> wrote:
Hi Umar, please see commit
http://libvirt.org/git/?p=libvirt-php.git;a=commit;h=e3e783413d8f001ee0a266e...
.
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 <minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@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 > <minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> > > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@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> > > > > > > > > > > -- > > Umar Draz > > Network Architect > > -- > Michal Novotny <minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com>>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org <http://php-virt-control.org>
-- Umar Draz Network Architect
-- Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org
-- Umar Draz Network Architect

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-automake@gnu.org <mailto:bug-automake@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 <minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>>> wrote: > > Hi Umar, > please see commit > http://libvirt.org/git/?p=libvirt-php.git;a=commit;h=e3e783413d8f001ee0a266e... > . > > 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 > <minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> > > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@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 > > <minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>>> > > > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> > > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>>> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> > > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@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> > > > <http://php-virt-control.org> > > > > > > > > > > > > > > > -- > > > Umar Draz > > > Network Architect > > > > -- > > Michal Novotny <minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@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> > > > > > > > > > > -- > > Umar Draz > > Network Architect > > -- > Michal Novotny <minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com>>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org <http://php-virt-control.org>
-- Umar Draz Network Architect
-- Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org

Hi Michal, No worries, I will But again Thanks Br. Umar On Wed, Dec 18, 2013 at 8:25 PM, Michal Novotny <minovotn@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-automake@gnu.org <mailto:bug-automake@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 <minovotn@redhat.com <mailto:minovotn@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=7a2a3...
> libvirt-php. > < http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3... h > in the src directory and reconfigure the php-libvirt? > > Br. > > Umar > > > On Wed, Dec 18, 2013 at 7:31 PM, Michal Novotny <minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>>> wrote: > > Hi Umar, > please see commit >
http://libvirt.org/git/?p=libvirt-php.git;a=commit;h=e3e783413d8f001ee0a266e...
> . > > 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 > <minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> > > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@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 > > <minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>>> > > > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> > > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>>> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> > > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@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> > > > <http://php-virt-control.org> > > > > > > > > > > > > > > > -- > > > Umar Draz > > > Network Architect > > > > -- > > Michal Novotny <minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com> > <mailto:minovotn@redhat.com <mailto:minovotn@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> > > > > > > > > > > -- > > Umar Draz > > Network Architect > > -- > Michal Novotny <minovotn@redhat.com <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com <mailto:minovotn@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 <minovotn@redhat.com <mailto:minovotn@redhat.com>>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org <http://php-virt-control.org>
-- Umar Draz Network Architect
-- Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org
-- Umar Draz Network Architect
participants (4)
-
Michal Novotny
-
Michal Privoznik
-
Peter Krempa
-
Umar Draz