Re: [libvirt] vms hung
No that output was the running vm, I will do this again whenever vm hung, and will share the result with you. -- Umar On Wed, Jan 18, 2017 at 1:13 PM, Michal Privoznik <mpriv...@redhat.com> wrote: > On 01/18/2017 07:03 AM, Umar Draz wrote: > > Hi Michal, > > > > Well right now all the vms running fine, and this vm hung issue happening > > occasionally. The following out put is one of my running VM > > > > [root@kvm03 ~]# virsh qemu-monitor-command w7-DRAC > > '{"execute":"query-status"}' > > {"return":{"status":"running","singlestep":false,"running": > true},"id":"libvirt-17597"} > > This is when the domain is hung? Unfortunately, my knowledge of qemu > internals is not that deep to give you any suggestions other than > qemu-de...@nongnu.org > > Michal > -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] vms hung
Hi Michal, Well right now all the vms running fine, and this vm hung issue happening occasionally. The following out put is one of my running VM [root@kvm03 ~]# virsh qemu-monitor-command w7-DRAC '{"execute":"query-status"}' {"return":{"status":"running","singlestep":false,"running":true},"id":"libvirt-17597"} -- Umar On Tue, Jan 17, 2017 at 8:10 PM, Michal Privoznik <mpriv...@redhat.com> wrote: > On 01/16/2017 04:13 PM, Umar Draz wrote: > > Hello, > > > > I am running libvirt-2.0.0-10.el7_3.2.x86_64 on CentOS 7.3, I have few > vms > > of CentOS and Windows 2012 servers. > > > > Randomly they are hung, but the status of virtual machine keep running, > vnc > > and network not responding. > > > > I have checked all /var/log/messages and /var/log/libvirt/qemu/vm.log but > > nothing found anything wrong. > > > > Would you please help what should I do more so I can find the issue. > > > > -- Umar > > > > What state is qemu process in? You may try to "ping" qemu on the monitor: > > virsh qemu-monitor-command $dom '{"execute":"query-status"}' > > But this sounds like a qemu bug to me. > > Michal > > -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] vms hung
Hello, I am running libvirt-2.0.0-10.el7_3.2.x86_64 on CentOS 7.3, I have few vms of CentOS and Windows 2012 servers. Randomly they are hung, but the status of virtual machine keep running, vnc and network not responding. I have checked all /var/log/messages and /var/log/libvirt/qemu/vm.log but nothing found anything wrong. Would you please help what should I do more so I can find the issue. -- Umar -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] qemu-guest-agent windows
HI Thanks Got it. On Mon, Aug 29, 2016 at 6:36 PM, Vasiliy Tolstov <v.tols...@selfip.ru> wrote: > 2016-08-29 16:20 GMT+03:00 Umar Draz <unix...@gmail.com>: > > Well here is the xml of my linux virtual machines for qemu-guest-agent > > > > > > > > > > > > now what will be for freebsd ? > > > This is virtio-serial, on freebsd it does not exists. You can use > serial channel and run qemu-ga with this ttyS0.. > Sometimes ago we discuss in list about ability to assign some id to > serial channel to use it via libvirt for qemu-ga communication. But it > not ends with final decision. > > > -- > Vasiliy Tolstov, > e-mail: v.tols...@selfip.ru > -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] qemu-guest-agent windows
Well here is the xml of my linux virtual machines for qemu-guest-agent now what will be for freebsd ? Br. Umar On Mon, Aug 29, 2016 at 6:06 PM, Michal Privoznik <mpriv...@redhat.com> wrote: > On 29.08.2016 13:59, Umar Draz wrote: > > Hi Michal, > > > > Thanks, I have installed qemu-ga on FreeBSD. > > > > Now I just need a help regarding what will be the xml for my this > FreeBSD ? > > What do you mean? Domain XML? Domain XML is guest OS agnostic. So > whatever qemu-ga config you have in a domain that is working for you you > can copy it to BSD domains too. > > Michal > -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] qemu-guest-agent windows
Hi Michal, Thanks, I have installed qemu-ga on FreeBSD. Now I just need a help regarding what will be the xml for my this FreeBSD ? Br. Umar On Mon, Aug 29, 2016 at 3:30 PM, Michal Privoznik <mpriv...@redhat.com> wrote: > On 29.08.2016 12:11, Umar Draz wrote: > > Ok then I will check that as well, > > > > Ok I have some FereeBSD vms as well, now I want qemu-guest-agent on them > as > > well, is it possible? > > > > Yes. There are two implementations for qemu-ga: one for POSIX-like > systems (where *BSD does belong to) and for Windows. So you should be > able to find qemu-ga for *BSD too. > > Michal > -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] qemu-guest-agent windows
Ok then I will check that as well, Ok I have some FereeBSD vms as well, now I want qemu-guest-agent on them as well, is it possible? Br. Umar On Mon, Aug 29, 2016 at 2:54 PM, Michal Privoznik <mpriv...@redhat.com> wrote: > On 29.08.2016 11:48, Umar Draz wrote: > > Hi Michal, > > > > well after the upgrade I am still getting the old version > > > > {"return":{"version":"0.12.1","supported_commands":[{" > enabled":true,"name":"guest-set-user-password"},{"enabled" > :true,"name":"guest-set-vcpus"},{"enabled":true,"name":" > guest-get-vcpus"},{"enabled":true,"name":"guest-network- > get-interfaces"},{"enabled":true,"name":"guest-suspend- > hybrid"},{"enabled":true,"name":"guest-suspend-ram"},{" > enabled":true,"name":"guest-suspend-disk"},{"enabled": > true,"name":"guest-fstrim"},{"enabled":true,"name":"guest- > fsfreeze-thaw"},{"enabled":true,"name":"guest-fsfreeze- > freeze"},{"enabled":true,"name":"guest-fsfreeze-status"} > ,{"enabled":true,"name":"guest-file-flush"},{"enabled": > true,"name":"guest-file-seek"},{"enabled":true,"name":" > guest-file-write"},{"enabled":true,"name":"guest-file-read"} > ,{"enabled":true,"name":"guest-file-close"},{"enabled": > true,"name":"guest-file-open"},{"enabled":true,"name":" > guest-shutdown"},{"enabled":true,"name":"guest-info"},{" > enabled":true,"name":"guest-set-time"},{"enabled":true," > name":"guest-get-time"},{"enabled":true,"name":"guest- > ping"},{"enabled":true,"name":"guest-sync"},{"enabled":true, > "name":"guest-sync-delimited"}]}} > > > > > > even I had install this qemu-ga on newly installed Windows 10, but that > > also showing the same version as above. > > Then you need to build the qemu-ga from the sources. > > Michal > -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] qemu-guest-agent windows
Hi Michal, well after the upgrade I am still getting the old version {"return":{"version":"0.12.1","supported_commands":[{"enabled":true,"name":"guest-set-user-password"},{"enabled":true,"name":"guest-set-vcpus"},{"enabled":true,"name":"guest-get-vcpus"},{"enabled":true,"name":"guest-network-get-interfaces"},{"enabled":true,"name":"guest-suspend-hybrid"},{"enabled":true,"name":"guest-suspend-ram"},{"enabled":true,"name":"guest-suspend-disk"},{"enabled":true,"name":"guest-fstrim"},{"enabled":true,"name":"guest-fsfreeze-thaw"},{"enabled":true,"name":"guest-fsfreeze-freeze"},{"enabled":true,"name":"guest-fsfreeze-status"},{"enabled":true,"name":"guest-file-flush"},{"enabled":true,"name":"guest-file-seek"},{"enabled":true,"name":"guest-file-write"},{"enabled":true,"name":"guest-file-read"},{"enabled":true,"name":"guest-file-close"},{"enabled":true,"name":"guest-file-open"},{"enabled":true,"name":"guest-shutdown"},{"enabled":true,"name":"guest-info"},{"enabled":true,"name":"guest-set-time"},{"enabled":true,"name":"guest-get-time"},{"enabled":true,"name":"guest-ping"},{"enabled":true,"name":"guest-sync"},{"enabled":true,"name":"guest-sync-delimited"}]}} even I had install this qemu-ga on newly installed Windows 10, but that also showing the same version as above. Br. Umar On Mon, Aug 29, 2016 at 2:45 PM, Michal Privoznik <mpriv...@redhat.com> wrote: > On 29.08.2016 10:27, Umar Draz wrote: > > Hi Michal > > > > well no luck :( > > What do you mean? I need more info. The update was successful, but the > qemu-ga is still not returning any IP addresses? What's the new version > of qemu-ga then? > What might work is to clone qemu.git and compile the qemu-ga from there > on your own. > > Michal > -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] qemu-guest-agent windows
Hi Michal well no luck :( br. Umar On Mon, Aug 29, 2016 at 11:55 AM, Michal Privoznik <mpriv...@redhat.com> wrote: > On 29.08.2016 08:32, Umar Draz wrote: > > Hi Michal > > > > Thanks for your reply, how I can upgrade my guest agent on windows? > > I think if you download msi corresponding to your architecture from here > > https://fedorapeople.org/groups/virt/virtio-win/direct- > downloads/archive-qemu-ga/qemu-ga-win-7.3.2-1/ > > and run it it'll do the trick. > > Michal > -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] qemu-guest-agent windows
Hi Michal Thanks for your reply, how I can upgrade my guest agent on windows? right now this is running on windows ("version":"0.12.1") Br. Umar On Mon, Aug 29, 2016 at 11:22 AM, Michal Privoznik <mpriv...@redhat.com> wrote: > On 28.08.2016 16:53, Umar Draz wrote: > > Hello All, > > > > I have install qemu guest agent on windows 10, but unable to get the ip > > address using this command > > > > virsh qemu-agent-command myvm '{ "execute": > "guest-network-get-interfaces" > > }' > > > > I am getting the following error on above command. > > > > ibvirt: QEMU Driver error : internal error: unable to execute QEMU agent > > command 'guest-network-get-interfaces': this feature or command is not > > currently supported > > Right. The windows implementation for this qemu-ga command was > introduced in this commit: > > http://git.qemu.org/?p=qemu.git;a=commitdiff;h=d6c5528b0 > > and should be contained in 2.4 release. So updating your guest agent > should help you. On the other hand, I don't have Windows 10 installed > anywhere (nor a VM) to try this out. > > Michal > -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] qemu-guest-agent windows
Hello All, I have install qemu guest agent on windows 10, but unable to get the ip address using this command virsh qemu-agent-command myvm '{ "execute": "guest-network-get-interfaces" }' I am getting the following error on above command. ibvirt: QEMU Driver error : internal error: unable to execute QEMU agent command 'guest-network-get-interfaces': this feature or command is not currently supported but the same command successfully working on linux vms. Would you please help if there any other way to get the interfaces ip of windows vm Br. Umar -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] python setMetadata issue
Hi I am trying to set Metada of running virtual machine, but its giving me an error. Here is my code import libvirt conn = libvirt.open('qemu+tcp://10.0.128.12/system') dom = conn.lookupByName('virtspace') type = 'VIR_DOMAIN_METADATA_DESCRIPTION' key = '' uri = '' dom.setMetadata(conn, type, 'myDescription', key, uri) and here is the error. Traceback (most recent call last): File setMeta.py, line 11, in module dom.setMetadata(conn, type, 'meta_test', key, uri) File /usr/lib64/python2.6/site-packages/libvirt.py, line 1460, in setMetadata ret = libvirtmod.virDomainSetMetadata(self._o, type, metadata, key, uri, flags) AttributeError: virConnect instance has no attribute '__trunc__' -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] python api list
Hi All, http://libvirt.org/php/api-reference.html The above link has a complete list of the functions regarding php api for libvrt. Where I can find the same kind of page for python? Br. Umar -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] lvm storage pool destroy problem
Hi Daniel, my Virtual machines are running, so how I can stop the volumes? Br. Umar On Thu, Dec 19, 2013 at 9:21 PM, Daniel P. Berrange berra...@redhat.comwrote: On Thu, Dec 19, 2013 at 01:54:19AM +0500, Umar Draz wrote: Hi I am trying to stop the storage pool through php-libvirt api which is a LVM volume group. when I tried to stop it I got error error: internal error Child process (/sbin/vgchange -aln mylvmgrp) unexpected exit status 5: Can't deactivate volume group mylvmgrp with 4 open logical volume(s) Then I tried throggh virsh command but the result remain same. *root@kvm02:~# virsh pool-destroy vms* error: Failed to destroy pool vms error: internal error Child process (/sbin/vgchange -aln mylvmgrp) unexpected exit status 5: Can't deactivate volume group mylvmgrp with 4 open logical volume(s) This indicates some process(s) are still using the logical volumes so it is preventingn you breaking those apps. This is expected behaviour. The same error also occured if I use direct vgchange -aln on my kvm host, but then I tried *vgchange -aly mylvmgrp* this time its worked That is a totally different operation -aly *activates* volumes which is the exact opposite of what 'pool-destroy' needs, which is to de-activate the volumes 14 logical volume(s) in volume group mylvmgrp now active 1) Now would you please help me? is this libvirt issue? or LVM? 2) Is this possible virsh pool-destroy pool also run the vgchange -aly instead of -aln AFAICT, there's no bug here. You just need to stop using the volumes before stopping the pool. Daniel -- |: http://berrange.com -o-http://www.flickr.com/photos/dberrange/:| |: http://libvirt.org -o- http://virt-manager.org:| |: http://autobuild.org -o- http://search.cpan.org/~danberr/:| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc:| -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[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
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
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 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 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 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 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
[libvirt] lvm storage pool destroy problem
Hi I am trying to stop the storage pool through php-libvirt api which is a LVM volume group. when I tried to stop it I got error error: internal error Child process (/sbin/vgchange -aln mylvmgrp) unexpected exit status 5: Can't deactivate volume group mylvmgrp with 4 open logical volume(s) Then I tried throggh virsh command but the result remain same. *root@kvm02:~# virsh pool-destroy vms* error: Failed to destroy pool vms error: internal error Child process (/sbin/vgchange -aln mylvmgrp) unexpected exit status 5: Can't deactivate volume group mylvmgrp with 4 open logical volume(s) The same error also occured if I use direct vgchange -aln on my kvm host, but then I tried *vgchange -aly mylvmgrp* this time its worked 14 logical volume(s) in volume group mylvmgrp now active 1) Now would you please help me? is this libvirt issue? or LVM? 2) Is this possible virsh pool-destroy pool also run the vgchange -aly instead of -aln Br. Umar -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] libvirt glusterfs problem
Hi Eric, Thanks for this quick reply, well I don't have much experience of writing patches. But I will be very happy if I can do something for this. Br. Umar On Sat, Dec 14, 2013 at 12:39 AM, Eric Blake ebl...@redhat.com wrote: On 12/13/2013 12:33 PM, Umar Draz wrote: Hi I am running libvirt 1.2.0 on ubuntu. The main purpose of this libvirt 1.2.0 is for glusterfs, now I can define glusterfs storage pool using virsh command, but when I tried to create the volume under the gluster storage pool, I got error. error: Failed to create vol from tt.xml error: this function is not supported by the connection driver: storage pool does not support volume creation. Correct; this part hasn't been implemented yet. For now, you have to create volumes outside of libvirt, and libvirt's gluster pool is a read-only view of what already exists. Would you like to help write the patches to implement more libvirt control over the gluster pool? But according to this url http://libvirt.org/storage.html we can create the volume. That URL says that not all pools support all operations. What would be really nice is a page like http://libvirt.org/hvsupport.html, except that it would display storage backends vs. supported storage pool operations by version. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Glusterfs Libvirt issue
Hi Eric Here is the output of rpm [root@centos ~]# rpm -qa | grep libvirt libvirt-python-0.10.2-29.el6.1.x86_64 libvirt-0.10.2-29.el6.1.x86_64 libvirt-client-0.10.2-29.el6.1.x86_64 libvirt-devel-0.10.2-29.el6.1.x86_64 and here is output of php code Array ( [libvirt.release] = 2 [libvirt.minor] = 10 [libvirt.major] = 0 [connector.version] = 0.4.8 [connector.major] = 0 [connector.minor] = 4 [connector.release] = 8 ) Br. Umar On Thu, Dec 12, 2013 at 12:51 AM, Eric Blake ebl...@redhat.com wrote: On 12/10/2013 10:34 PM, Umar Draz wrote: Hi, I am trying to create glusterfs pool with libvirt but its working, and following is the error *libvirt_storagepool_define_xml(): internal error unknown storage pool type gluster* What version of libvirt? If older than 1.2.0, upgrade (gluster pool was added only in 1.2.0); if it is 1.2.0, then figure out why your build was not configured to link against libgfapi (if you self-built, use --with-storage-gluster=yes; if it is a distro build, complain to the distro packagers). [Oh phooey - I just noticed that 'virsh --version=long' doesn't give any hints about whether gluster support was compiled in. Looks like I have a patch coming up to fix that - although not including that information doesn't impact anything except easier diagnosis of whether it was compiled in] -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Glusterfs Libvirt issue
Hi Eric Thanks Br. Umar On Thu, Dec 12, 2013 at 1:23 AM, Eric Blake ebl...@redhat.com wrote: On 12/11/2013 01:18 PM, Umar Draz wrote: Hi Eric [please don't top-post on technical lists] Here is the output of rpm [root@centos ~]# rpm -qa | grep libvirt libvirt-python-0.10.2-29.el6.1.x86_64 libvirt-0.10.2-29.el6.1.x86_64 There's your problem - gluster pools did not exist in libvirt 0.10.2. If you have a Red Hat support contract, you can request that it be added for RHEL 6.6 and/or RHEL 7.0 (the RHEL 7 public beta began today, but even that build is based off of libvirt 1.1.1 rather than 1.2.0). If you are using CentOS, you'll just have to wait and/or self-build. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] Glusterfs Libvirt issue
Hi, I am trying to create glusterfs pool with libvirt but its working, and following is the error *libvirt_storagepool_define_xml(): internal error unknown storage pool type gluster* the Qemu has enabled glusterfs backend support. I can create the glusterfs image using this *qemu-img create gluster://localhost/test/umar 5G* Would you please help what should else i need to require? Br. Umar -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] GlusterFS with libvirt
HI Daniel, I am already using this ridiculous fuse, and Waiting the patch of native GlusterFS. BTW: here is my newly developed app for libvirt which support both LVM and dir. https://github.com/umardraz/virtspace/blog/master/README.md Br. Umar On Fri, Nov 29, 2013 at 2:03 PM, Daniel Berteaud dan...@firewall-services.com wrote: Le 28/11/2013 13:55, Umar Draz a écrit : Hi All, Is any body help me how I can integrate libvirt with glusterfs on Ubuntu 13.10 Server. I tried the following, but its not working. qemu-img: Unknown protocol 'gluster://localhost/gv1/test.img' Looks like native GlusterFS storage pool will be available shortly (looks all the recent patches about this). Waiting for this, you can always use the fuse client. Just mount your GlusterFS anywhere on your host (with the fuse client), and define a simple dir pool on top of that. This is what I use on CentOS 6 Regards, Daniel -- Daniel Berteaud FIREWALL-SERVICES SARL. Société de Services en Logiciels Libres Technopôle Montesquieu 33650 MARTILLAC Tel : 05 56 64 15 32 Fax : 05 56 64 15 32 Web : http://www.firewall-services.com -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] GlusterFS with libvirt
Hi All, Is any body help me how I can integrate libvirt with glusterfs on Ubuntu 13.10 Server. I tried the following, but its not working. qemu-img: Unknown protocol 'gluster://localhost/gv1/test.img' Br. Umar -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] GlusterFS with libvirt
HI Weiqing, Yes I want storage pool of glusterfs. http://www.gluster.org/community/documentation/images/9/9d/QEMU_GlusterFS.pdf Br. Umar On Fri, Nov 29, 2013 at 6:48 AM, WeiqingGmail weiqingk...@gmail.com wrote: Hi Umar Is any body help me how I can integrate libvirt with glusterfs on Ubuntu 13.10 Server. Glusterfs is a solution for cloud storage. I don't get your point about integrating libvirt with Glusterfs. Are you want to build guest in the storage pool that consist of Glusterfs Volume? Regards Weiqing 在 2013-11-28,20:55,Umar Draz unix...@gmail.com 写道: Hi All, Is any body help me how I can integrate libvirt with glusterfs on Ubuntu 13.10 Server. I tried the following, but its not working. qemu-img: Unknown protocol 'gluster://localhost/gv1/test.img' Br. Umar -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Finding Primary or Bootable disk
Hi Daniel I think I was'nt posted my question correctly, here is my senario I have a virtual machine with 3 drives vda, vdb, sda I want to hide the *DELETE* button against the primary disk of virtual machine, that was my question how to determine which is the primary disk of the VM. Br. Umar On Mon, Nov 18, 2013 at 7:15 PM, Daniel P. Berrange berra...@redhat.comwrote: On Fri, Nov 15, 2013 at 01:02:10AM +0500, Umar Draz wrote: Hi I am working with php-libvirt, How I can find the primary or bootable disk device of a virtual machine? This can be determined from the XML config. Either there will be a boot dev='cdrom|disk|floppy' device type listed under os in which case it'll use the first matching devices of that type, or there will be explicit boot order=NNN/ ordering listed under the specific device Daniel -- |: http://berrange.com -o-http://www.flickr.com/photos/dberrange/:| |: http://libvirt.org -o- http://virt-manager.org:| |: http://autobuild.org -o- http://search.cpan.org/~danberr/:| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc:| -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] Finding Primary or Bootable disk
Hi I am working with php-libvirt, How I can find the primary or bootable disk device of a virtual machine? Br. Umar -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Migration issue php-libvirt
Hi Claudio Here is my PHP code ?php echo (Looking up test domain\n); $con = new Libvirt('qemu+tcp://192.168.168.11/system'); $duri = 'qemu+tcp://192.168.168.14/system'; $dom = $con-get_domain_by_name(ldap); if ($dom==false) { echo (Domain not found\n); echo (Libvirt last error: .libvirt_get_last_error().\n); exit; } echo (Domain found\n); echo (Migrating domain to $duri\n); $rv=libvirt_domain_migrate_to_uri($dom,$duri, VIR_MIGRATE_PEER2PEER | VIR_MIGRATE_UNSAFE | VIR_MIGRATE_OFFLINE | VIR_MIGRATE_PERSI ST_DEST | VIR_MIGRATE_UNDEFINE_SOURCE); if ($rv==false) { echo (Failure!); echo (Libvirt last error: .libvirt_get_last_error().\n); } else { echo (Success\n); } Here is the error message when I tried to migrate (powered off) domain -- *Looking up test domain* *Domain found* *Migrating domain to qemu+tcp://192.168.168.14/system* *Failure!Libvirt last error: Requested operation is not valid: domain is not running* And here is the error message when I tried (powered on) domain -- *Looking up test domain* *Domain found* *Migrating domain to qemu+tcp://192.168.168.14/system* *Failure!Libvirt last error: Unsafe migration: Migration may lead to data corruption if disks use cache != none* Here is the php_error_logs -- *[17-Oct-2013 05:17:42 America/New_York] PHP Notice: Use of undefined constant VIR_MIGRATE_UNSAFE - assumed 'VIR_MIGRATE_UNSAFE' in /home/www/virtspace/inc/mig.php on line 21* *[17-Oct-2013 05:17:42 America/New_York] PHP Notice: Use of undefined constant VIR_MIGRATE_OFFLINE - assumed 'VIR_MIGRATE_OFFLINE' in /home/www/virtspace/inc/mig.php on line 21* According to above php_notices, both VIR_OFFLINE AND VIR_UNSAFE options are not available. *My libvirt version on kvm hosts is (102), and php-libvirt version is (0.4.8)* Br. Umar On Thu, Oct 17, 2013 at 11:14 AM, Claudio Bley cb...@av-test.de wrote: [Please, don't top post on technical lists.] At Thu, 17 Oct 2013 08:40:52 +0500, Umar Draz wrote: HI, I am using KVM Could you tell us a bit more about your setup and show your code? Which version of libvirt are you using? My guess would be that you don't have shared storage and are using the VIR_MIGRATE_NON_SHARED_DISK flag when migrating, which only works if the domain is running. In that case, you could start your domain in the 'paused' state, migrate and then destroy it. On Tue, Oct 15, 2013 at 4:11 PM, Daniel P. Berrange berra...@redhat.com wrote: On Sun, Oct 13, 2013 at 03:20:31PM +0500, Umar Draz wrote: Hi All I am trying to migrate offline domain on other URI but its not working due to this error Failure!Libvirt last error: Requested operation is not valid: domain is not running I tried to use this option but not working VIR_MIGRATE_OFFLINE Please anybody help me? You don't mention what hypervisor you're using. IIRC only the QEMU driver supports the VIR_MIGRATE_OFFLINE flag. -- AV-Test GmbH, Henricistraße 20, 04155 Leipzig, Germany Phone: +49 341 265 310 19 Web:http://www.av-test.org Eingetragen am / Registered at: Amtsgericht Stendal (HRB 114076) Geschaeftsfuehrer (CEO): Andreas Marx, Guido Habicht, Maik Morgenstern -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Migration issue php-libvirt
Hi Claudio, Thanks, its working. Br. Umar On Thu, Oct 17, 2013 at 2:45 PM, Claudio Bley cb...@av-test.de wrote: [Repeat: please, don't top post on technical lists.] At Thu, 17 Oct 2013 14:26:33 +0500, Umar Draz wrote: Here is the php_error_logs -- *[17-Oct-2013 05:17:42 America/New_York] PHP Notice: Use of undefined constant VIR_MIGRATE_UNSAFE - assumed 'VIR_MIGRATE_UNSAFE' in /home/www/virtspace/inc/mig.php on line 21* *[17-Oct-2013 05:17:42 America/New_York] PHP Notice: Use of undefined constant VIR_MIGRATE_OFFLINE - assumed 'VIR_MIGRATE_OFFLINE' in /home/www/virtspace/inc/mig.php on line 21* According to above php_notices, both VIR_OFFLINE AND VIR_UNSAFE options are not available. Indeed, looking at the libvirt-php code ( http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=a149662272016e946d53f4589722d090ceccdbcf;hb=HEAD ), these constants are not defined yet. The wrapper is lacking the following constants, which you can easily define yourself in your PHP script: VIR_MIGRATE_CHANGE_PROTECTION= 256 VIR_MIGRATE_UNSAFE = 512 VIR_MIGRATE_OFFLINE = 1024 VIR_MIGRATE_COMPRESSED = 2048 Claudio -- AV-Test GmbH, Henricistraße 20, 04155 Leipzig, Germany Phone: +49 341 265 310 19 Web:http://www.av-test.org Eingetragen am / Registered at: Amtsgericht Stendal (HRB 114076) Geschaeftsfuehrer (CEO): Andreas Marx, Guido Habicht, Maik Morgenstern -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Migration issue php-libvirt
Hi Claudio, One more error, I tried this migration and its work, But its added a line in the domain xml (*seclabel type='none' model='apparmor'/*), now I tried to again migrate back to the host but this time I got error [17-Oct-2013 09:03:14 America/New_York] PHP Warning: libvirt_domain_migrate_to_uri(): XML error: missing security model when using multiple labels in /home/www/virtspace/migrate.php on line 35 When I used virsh for migration then virsh inserted only this line (*seclabel type='none'/)* * * *Br.* * * *Umar* On Thu, Oct 17, 2013 at 2:45 PM, Claudio Bley cb...@av-test.de wrote: [Repeat: please, don't top post on technical lists.] At Thu, 17 Oct 2013 14:26:33 +0500, Umar Draz wrote: Here is the php_error_logs -- *[17-Oct-2013 05:17:42 America/New_York] PHP Notice: Use of undefined constant VIR_MIGRATE_UNSAFE - assumed 'VIR_MIGRATE_UNSAFE' in /home/www/virtspace/inc/mig.php on line 21* *[17-Oct-2013 05:17:42 America/New_York] PHP Notice: Use of undefined constant VIR_MIGRATE_OFFLINE - assumed 'VIR_MIGRATE_OFFLINE' in /home/www/virtspace/inc/mig.php on line 21* According to above php_notices, both VIR_OFFLINE AND VIR_UNSAFE options are not available. Indeed, looking at the libvirt-php code ( http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=a149662272016e946d53f4589722d090ceccdbcf;hb=HEAD ), these constants are not defined yet. The wrapper is lacking the following constants, which you can easily define yourself in your PHP script: VIR_MIGRATE_CHANGE_PROTECTION= 256 VIR_MIGRATE_UNSAFE = 512 VIR_MIGRATE_OFFLINE = 1024 VIR_MIGRATE_COMPRESSED = 2048 Claudio -- AV-Test GmbH, Henricistraße 20, 04155 Leipzig, Germany Phone: +49 341 265 310 19 Web:http://www.av-test.org Eingetragen am / Registered at: Amtsgericht Stendal (HRB 114076) Geschaeftsfuehrer (CEO): Andreas Marx, Guido Habicht, Maik Morgenstern -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] Migration issue php-libvirt
HI, I am using KVM Br. Umar On Tue, Oct 15, 2013 at 4:11 PM, Daniel P. Berrange berra...@redhat.comwrote: On Sun, Oct 13, 2013 at 03:20:31PM +0500, Umar Draz wrote: Hi All I am trying to migrate offline domain on other URI but its not working due to this error Failure!Libvirt last error: Requested operation is not valid: domain is not running I tried to use this option but not working VIR_MIGRATE_OFFLINE Please anybody help me? You don't mention what hypervisor you're using. IIRC only the QEMU driver supports the VIR_MIGRATE_OFFLINE flag. Daniel -- |: http://berrange.com -o-http://www.flickr.com/photos/dberrange/:| |: http://libvirt.org -o- http://virt-manager.org:| |: http://autobuild.org -o- http://search.cpan.org/~danberr/:| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc:| -- Umar Draz Network Architect -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] Migration issue php-libvirt
Hi All I am trying to migrate offline domain on other URI but its not working due to this error Failure!Libvirt last error: Requested operation is not valid: domain is not running I tried to use this option but not working VIR_MIGRATE_OFFLINE Please anybody help me? Br. Umar -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list