WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

Re: R: [Xen-API] XCP - live migration trouble [SOLUTION]

To: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: Re: R: [Xen-API] XCP - live migration trouble [SOLUTION]
From: George Shuklin <george.shuklin@xxxxxxxxx>
Date: Mon, 07 Mar 2011 17:41:32 +0300
Delivery-date: Mon, 07 Mar 2011 06:41:39 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=WY6htt3pdqxSagFyvt8Ya3qwUjbcTbeSUnRV4cTpfmU=; b=xBd5Dy0WRRrYuRCQPYmthZXkQn2O0K/iCYaXUjKPljmYJuhSuKR2uBLJrJ58LtbjBB uUAG1/JqGQNJ65VLB2JrZ/HmCJy+6+X+h2eQEnEj8/ubnygvqfAoE4kpSaFePTfvYO8A 3XEm5ZXEuY8/mgfNxJA5bQ8tNXZ/p+CcSMrkM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; b=BQodpgf9f40lCbhxoMz+IYz2cOiBLdGd9eX2H+qo9URas++qShc7ZST49WAp4yiLUD ikMCRMYCDxmu2sP9ys2T1FvFWhWLkI7iCzB20/tBqjNHv8nCBwjKM+JaWTZtZEEMudPC Mgo2D7kswPAETzeNNPKd1e4Hds34ihD8L8wbg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <000401cbdcbb$fc1830f0$f44892d0$@xinet.it>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <00b901cbda8e$c8f43590$5adca0b0$@xinet.it> <1299266405.2753.33.camel@mabase> <000401cbdcbb$fc1830f0$f44892d0$@xinet.it>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110303 Icedove/3.0.11
Hm... Strange, I already done with migration of VM from slave (0.5) to master (1.0).

Actually, I do a lot of tests before, so this script may be no completed.

Guess #1: actually, I don't use guest tools for linux (it's kinda strange for PV kernels...), so try to disable guest tools and run this script again.
Guess #2: I put a higher versions during my tests. So use 99 instead '1' and '3' (and something like 99999 for Build Version).

And you can see state of guest tools by 'xe vm-list params=PV-drivers-up-to-date,PV-drivers-version', it must shows 'true for up-to-date'.

On 07.03.2011 14:37, cluster@xxxxxxxx wrote:

Dear all,

 

I patched the script with xe support:

 

#################################################################

#!/bin/sh

domlist=`xe vm-list params=dom-id power-state=running|tail -n +2|awk '{print $5}'`

 

for dom in $domlist;

do

       xenstore-write /local/domain/$dom/attr/PVAddons/MajorVersion "1"

        xenstore-write /local/domain/$dom/attr/PVAddons/MinorVersion "3"

        xenstore-write /local/domain/$dom/attr/PVAddons/MicroVersion "3"

        xenstore-write /local/domain/$dom/attr/PVAddons/Installed "1"

        xenstore-write /local/domain/$dom/attr/PVAddons/BuildVersion "42052"

        xenstore-write /local/domain/$dom/data/updated 1

        echo $dom

done

#################################################################

 

After executing it does not still work:

 

[root@xcp1 ~]# xe vm-migrate vm=Ipazia host=xcp2 live=true

You attempted an operation on a VM which requires a more recent version of the PV drivers. Please upgrade your PV driver

s.

vm: 439e2d7a-f22d-2265-d1c8-ae38c7445438 (Ipazia)

major: 1

minor: 3

<extra>: 3

 

Any idea?

 

Thanks and regards,

FG

 

-----Messaggio originale-----
Da: xen-api-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxxxxxxxx] Per conto di George Shuklin
Inviato: venerdì 4 marzo 2011 20:20
A: xen-api@xxxxxxxxxxxxxxxxxxx
Oggetto: Re: [Xen-API] XCP - live migration trouble [SOLUTION]

 

Good day, everyone.

 

How to solve

 

1) I don't know what happens to HVM (include windows).

2) This works with PV linux

 

3) Upgrade master (I you have interest in this you are already done this).

 

4) Run on every slave to be evacuated following script:

 

--------------

#!/bin/sh

domlist=`xl list|tail -n +2|awk '{print $2}'` for dom in $domlist; do

        xenstore-write /local/domain/$dom/attr/PVAddons/MajorVersion "1"

        xenstore-write /local/domain/$dom/attr/PVAddons/MinorVersion "3"

        xenstore-write /local/domain/$dom/attr/PVAddons/MicroVersion "3"

        xenstore-write /local/domain/$dom/attr/PVAddons/Installed "1"

        xenstore-write /local/domain/$dom/attr/PVAddons/BuildVersion

"42052"

        xenstore-write /local/domain/$dom/data/updated 1 done

-----------------

 

5) Do evacuation.

...

6) PROFIT???

 

I think I found source of problem:

 

guest tools declare version major=1, minor=0, but XCP 1.0 expect to have

1.3:

 

xensource.log

 

[debug|Logging xapi version info D:4634c2be5fc0|xapi] Server

configuration:

[debug|Logging xapi version info D:4634c2be5fc0|xapi] product_version:

1.0.0

[debug|Logging xapi version info D:4634c2be5fc0|xapi] product_brand: XCP [debug|Logging xapi version info D:4634c2be5fc0|xapi] build_number:

42052c

[debug|Logging xapi version info D:4634c2be5fc0|xapi] hg changeset:

[debug|Logging xapi version info D:4634c2be5fc0|xapi] version: 1.3 [debug|Logging xapi version info D:4634c2be5fc0|xapi] License

filename: /etc/xensource/license

 

the version 1.3 is a source of problems.

 

 

 

В Пт., 04/03/2011 в 18:08 +0100, cluster@xxxxxxxx пишет:

> Hi all,

>

>

> I am experimenting live migration issue with XCP 1.0.

>

>

> When I try to migrate a vm between hosts I receive this error:

>

>

> [root@xcp1 ~]# xe vm-migrate vm=Nettuno host=xcp1 live=true

>

> You attempted an operation on a VM which requires a more recent

> version of the PV drivers. Please upgrade your PV drivers.

>

> vm: 538d4021-affa-e54e-a8ea-c3a9feca56db (Nettuno)

>

> major: 1

>

> minor: 0

>

> <extra>: 0

>

>

> Am I missing something?

>

>

> Thanks and regards,

>

> Francesco Gallo

>

>

> _______________________________________________

> xen-api mailing list

> xen-api@xxxxxxxxxxxxxxxxxxx

> http://lists.xensource.com/mailman/listinfo/xen-api

 

 

 

_______________________________________________

xen-api mailing list

xen-api@xxxxxxxxxxxxxxxxxxx

http://lists.xensource.com/mailman/listinfo/xen-api

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api