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