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-users

[Xen-users] ISSUE EXPORTING VM FROM XEN 3.2.1 to XCP 0.5 WITH XVA.PY

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] ISSUE EXPORTING VM FROM XEN 3.2.1 to XCP 0.5 WITH XVA.PY
From: Jorge Constán <jorqejcv@xxxxxxxxx>
Date: Mon, 29 Nov 2010 12:46:22 +0000
Delivery-date: Mon, 29 Nov 2010 04:48:15 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=UhwP3/9HHt8Xulbn+3jatAh23n8SICttWFKyd+1ZNWA=; b=J2VFNJuN4vY3jKKfHmOEdGVg6PhqB1O0N39UTJ6K3BR2HHwa6PPKEKpKw2sqWdBQtb HK855qdAa910TLJY60Yar/eGan8tGL62ukzhUbc1QVFEKYiwOfQ2GhnORo78Fx1govEH UTDMQmNfVjgQlZAPMOIoAellw/Q0MaC5iGXqw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=rgOYqC8k1VannbId8To6AX8vy73J9R0sWfkKVp6MaOuKnBntyxE7dwJ19quJkjVROv LvlfpaLRqQOb4/QNKbYZIg3qIMiSF91WhUyao6pR6Lbq2IcvGG4BnDI8thagV9sYjk39 WvaTrZiDj8aYX8r/BtgsBdl0dGE+wDxRA3CPE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hello everyone.

I have the following problem that could help would appreciate.


1) Environment:

HOST 1: xen-hypervisor-3.2-1-amd64 with all VM in LVM disk.

HOST 2: XCP 0.5


2) The VM that I wish migrate is a domU in XEN and is debian lenny over LVM:

...................................................................................................
# Configuration file for the Xen instance asterisk.domainxen.local, created
# by xen-tools 3.9 on Wed Nov 11 11:11:34 2009.
#

#
#  Kernel + memory size
#
kernel      = '/boot/vmlinuz-2.6.26-1-xen-amd64'
ramdisk     = '/boot/initrd.img-2.6.26-1-xen-amd64'
memory      = '512'

#
#  Disk device(s).
#
root        = '/dev/xvda2 ro'
disk        = [
                  'phy:/dev/server/asterisk.domainxen.local-swap,xvda1,w',
                  'phy:/dev/server/asterisk.domainxen.local-disk,xvda2,w',
              ]

........................................................................................................

As the disk was "xvda" I not modified anything (as says README xva.py script).


3) From dom0 in XEN host:

server:# lvscan

  ACTIVE            '/dev/server/asterisk.domainxen.local-swap' [512,00 MB] inherit
  ACTIVE            '/dev/server/asterisk.domainxen.local-disk' [5,00 GB] inherit


4) The steps I did:


A) Shutdown VM asterisk.domain.local in XEN:
B) Convert VM LVM (asterisk.domainxen.local-disk) to a IMG so that:

server:t# dd if=/dev/server/asterisk.domainxenlocal-disk bs=64K | gzip -c > /mnt/unidad_usb/sat/disco_imagen_asterisk.img.gz
81920+0 records in
81920+0 records out
5368709120 bytes (5,4 GB) copied, 180,349 s, 29,8 MB/s

C) I Copied  img file to my ubuntu karmic desktop with python 2.6.4 and run ""xva.py" script:

jorge@ubus1:~/vm_xen_img$ ./xva.py --is-pv --disk disco_imagen_asterisk.img --file=asterik.xva
VM Details:
Name: Unnamed
Type: Paravirtualised
VCPUS: 1
Memory(bytes): 268435456
ACPI: true
APIC: true
PAE: true
NX: false
Viridian: true
Disk xvda(Bootable): disco_imagen_asterisk.img
Generating XVA file asterik.xva

Processing disk disco_imagen_asterisk.img(5368709120 bytes)
[ ########################################################################### ] 100%

It seemed that all was corect


5) When I imported from XCP 0.5 CLI appeared the following error:

Error: ['WARNING: /dev/xvda is not a disk image', 'Traceback (most recent call last):', '  File "/usr/bin/pygrub", line 746, in ?', '    rai



What am I doing wrong? Any suggestions?

Thanks a lot.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>