Re: [libvirt] Migration issue php-libvirt

2013-10-17 Thread Claudio Bley
[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

Re: [libvirt] Migration issue php-libvirt

2013-10-17 Thread Umar Draz
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);

Re: [libvirt] Migration issue php-libvirt

2013-10-17 Thread Claudio Bley
[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'

Re: [libvirt] Migration issue php-libvirt

2013-10-17 Thread Umar Draz
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 --

Re: [libvirt] Migration issue php-libvirt

2013-10-17 Thread Michal Novotny
Hi, the interesting thing is that you use constructor as $conn = new Libvirt('connection-uri'); You should be using libvirt_connect() API instead. See [1] for example. Not all of the defines are defined in the libvirt-php scope, that is correct and patches are welcome :-) Thanks, Michal [1]

Re: [libvirt] Migration issue php-libvirt

2013-10-17 Thread Umar Draz
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:

Re: [libvirt] Migration issue php-libvirt

2013-10-16 Thread Umar Draz
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

Re: [libvirt] Migration issue php-libvirt

2013-10-15 Thread Daniel P. Berrange
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

[libvirt] Migration issue php-libvirt

2013-10-13 Thread Umar Draz
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