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

Re: [Xen-devel] [XCP] converting a .img to xva

To: admin@xxxxxxxxxxx
Subject: Re: [Xen-devel] [XCP] converting a .img to xva
From: Peter den Hartog <peterdenhartog@xxxxxxxxx>
Date: Tue, 16 Nov 2010 10:52:12 +0100
Cc: david.markey@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 16 Nov 2010 01:53:28 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=s/70ydpokDIsA/u0EtkZvpLdHRCoR/vOQ+NKpGLyotE=; b=mSVFhg/S7V1VDC3On+tkMdzLRMhNV/80EyO+YQNdZnJLwH7ywAPEUTQcar6h9GYy7N ZqHtYyFvBvymDv7UXQOtWR1218ZSmSat9EfAvZSg9rlTcbPlPuLsuYPcg+569KBn8bYC 16+TMOg0WUg4ylJByGLb9b7qoRsEmA5elG6kw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=W3QN8HMouyO8ClWHvC1UL83oI2ha8TAigTjr9SGPpkWqVOlmGz63bwUrEicxPQsxJL 1h0AMl30CTla7yIt2JX1HKJjcnu/iv3LdH+ux6nCBLzCDfbsr5ZaRjZic0IxYdeNJWs4 FQTF8txu/lirh9ImHyhtEXo5D7Ok9jxgCeHXI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTinUdKYXvJFnpUbJhHXo5Sj54fy4OPZY-DJGtTET@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTik9bWdmZ2mjgJEz0XJ=Matr=2Wof2aXzjwkVEed@xxxxxxxxxxxxxx> <AANLkTintqxusy-hiseq1TGhnQgzj+i=1g5-03jQYkSgb@xxxxxxxxxxxxxx> <AANLkTi=DZugcTbWCfcFmwq_f0JSMcfM9-mm4R8he8xO1@xxxxxxxxxxxxxx> <AANLkTin=+076PwH+RqeH7WcYO9h1v--b3S6egPPdWBvP@xxxxxxxxxxxxxx> <AANLkTiksf4fkDsLWMBkQK8u7WoTF3sLPLnGALqabMi0+@xxxxxxxxxxxxxx> <AANLkTikQaKDoXNb67rSyGMhadhRE9oK+owtBiZ=Vn58c@xxxxxxxxxxxxxx> <AANLkTindQwyuWwi2Y2T_ur8C18mnDh3cmear3ZAYHBRC@xxxxxxxxxxxxxx> <AANLkTinUdKYXvJFnpUbJhHXo5Sj54fy4OPZY-DJGtTET@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
It's ext3

On Tue, Nov 16, 2010 at 10:44 AM, David Markey <admin@xxxxxxxxxxx> wrote:
What filesystem is within the VM?

On 15 November 2010 16:02, Peter den Hartog <peterdenhartog@xxxxxxxxx> wrote:
Hi, a small question..
I'm trying to convert a .img from a xen system to a xva for my XCP system.

I did the following -> 
Somebody send me a local copy of the .img including all the needed files (kernel/config).
I eddited the xen.conf to point to the correct locations of my files it now looks like this:

# Kernel image file.
kernel = "/home/peter/xcp-convert/centos-5.0-x86_64-build-A/kernel/boot/vmlinuz-2.6.18-xen"
ramdisk = "/home/peter/xcp-convert/centos-5.0-x86_64-build-A/kernel/boot/initrd-2.6-xen.img"

# Initial memory allocation (in megabytes) for the new domain.
memory = 512

#----------------------------------------------------------------------------
# Define the disk devices you want the domain to have access to, and
# what you want them accessible as.
# Each disk entry is of the form phy:UNAME,DEV,MODE
# where UNAME is the device, DEV is the device name the domain will see,
# and MODE is r for read-only, w for read-write.
#
disk = [ 'file:/home/peter/xcp-convert/2.1-centos-5.0-x86_64-build-A/disks/disk.img,sda1,w','file:/home/peter/xcp-convert/centos-5.0-x86_64-build-A/disks/swap.img,sda2,w' ]

# Sets runlevel.
extra = "3"

# A name for your domain. All domains must have different names.
name = "centos-5.0-x86_64-build-A"

# Number of network interfaces. Default is 1.
nics=1

Then i runned the script, at it seemed to work:
~/Scripts/xcp-xva-convert/xva.py --config=xen.cfg --filename=converted.xva

After  a installation, and a succesfull import (+ copy like the echo told me to) i'm not able to start it: 

[root@box 80edf9c0-f0c3-11df-afb8-002185fade1c]# xe vm-start vm=centos-5.0-x86_64-build-A 
Error code: WARNING: /dev/xvda is not a disk image
Error parameters: Traceback (most recent call last):,   File "/usr/bin/pygrub", line 746, in ?,     raise RuntimeError, "Unable to find partition containing kernel", RuntimeError: Unable to find partition containing kernel, 
[root@box 80edf9c0-f0c3-11df-afb8-002185fade1c]# 

I asked this on the normal mailing list but they pointed me to this direction.

Hope you can help me, thanks,
Peter


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel