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 13:31:29 +0100
Cc: david.markey@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 16 Nov 2010 04:32:39 -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=SRztgCng0JJuy/JrjGDxd0pkJtQ6SiXf17+Uum3qR2g=; b=syh92BkuZN4e+2Zi9QYbB542OqTPqkYWPskYcxO6Kti6Y0M/RgLP/Nq1HwIUmkQh0N I9DLvi0WcWfcrn8DQM/zAlO1z7hZgms7A9G4TbAPpURBJqrycU3VEuXDCTzqVDuhwmSc qxtPymcrZMRgN4/sytPO/d8fdZE0GIS3lWVMU=
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=BaehCUhq9ioyys7UAX/YUMrrFpR7j6v1FH56gKJVDja2JI3DPDPrXE/+ummQ0XlTP3 Bdc3+a9QP26b4l/IrY6mn9Iej6elJUPwqT1NorDkamhtP1KQld6kBuwDc2TjQtThZTdL EiAMrWX3U6uE6S5nCN682ALNRLDZA93M1TblU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTikacqiRzWAB=tGc0efxpcgkAPnCLQnoZZecbewZ@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> <AANLkTi=VG21gHOewqc3Y-aS1-hXomSUq8qnOQHDTEtHA@xxxxxxxxxxxxxx> <AANLkTikacqiRzWAB=tGc0efxpcgkAPnCLQnoZZecbewZ@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Sure thing:

[root@noc ~]# xe vm-list params=all uuid=d7596836-675e-6e79-f927-7b852a691785 
uuid ( RO)                          : d7596836-675e-6e79-f927-7b852a691785
                    name-label ( RW): centos-5.0-x86_64-build-A
              name-description ( RW): 
                  user-version ( RW): 1
                 is-a-template ( RW): false
                 is-a-snapshot ( RO): false
                   snapshot-of ( RO): <not in database>
                     snapshots ( RO): 
                 snapshot-time ( RO): 19700101T00:00:00Z
                 snapshot-info ( RO): 
                        parent ( RO): <not in database>
                      children ( RO): 
             is-control-domain ( RO): false
                   power-state ( RO): halted
                 memory-actual ( RO): 0
                 memory-target ( RO): <expensive field>
               memory-overhead ( RO): 1048576
             memory-static-max ( RW): 536870912
            memory-dynamic-max ( RW): 536870912
            memory-dynamic-min ( RW): 536870912
             memory-static-min ( RW): 16777216
              suspend-VDI-uuid ( RO): <not in database>
                  VCPUs-params (MRW): 
                     VCPUs-max ( RW): 1
              VCPUs-at-startup ( RW): 1
        actions-after-shutdown ( RW): Destroy
          actions-after-reboot ( RW): Restart
           actions-after-crash ( RW): Restart
                 console-uuids (SRO): 
                      platform (MRW): nx: false; acpi: true; apic: true; pae: true; viridian: true
            allowed-operations (SRO): changing_dynamic_range; changing_static_range; make_into_template; destroy; export; start_on; start; clone; copy; snapshot
            current-operations (SRO): 
            blocked-operations (MRW): 
           allowed-VBD-devices (SRO): <expensive field>
           allowed-VIF-devices (SRO): <expensive field>
                possible-hosts ( RO): <expensive field>
               HVM-boot-policy ( RW): 
               HVM-boot-params (MRW): order: dc
         HVM-shadow-multiplier ( RW): 1.000
                     PV-kernel ( RW): /boot/guest/80edf9c0-f0c3-11df-afb8-002185fade1c/vmlinuz
                    PV-ramdisk ( RW): /boot/guest/80edf9c0-f0c3-11df-afb8-002185fade1c/initrd
                       PV-args ( RW):  root=/dev/sda1 ro selinux=0 3
                PV-legacy-args ( RW): 
                 PV-bootloader ( RW): pygrub
            PV-bootloader-args ( RW): 
           last-boot-CPU-flags ( RO): 
              last-boot-record ( RO): <expensive field>
                   resident-on ( RO): <not in database>
                      affinity ( RW): <not in database>
                  other-config (MRW): import_task: OpaqueRef:733508e8-adaf-748a-eb5d-5748cd8092bc; mac_seed: 396e5d3f-afee-4b58-f053-c94db4e2e0af; install-methods: cdrom
                        dom-id ( RO): -1
               recommendations ( RO): <restrictions><restriction field="memory-static-max" max="34359738368" /><restriction field="vcpus-max" max="8" /><restriction property="number-of-vbds" max="7" /><restriction property="number-of-vifs" max="7" /></restrictions>
                 xenstore-data (MRW): 
                 ha-always-run ( RW): false
           ha-restart-priority ( RW): 
                         blobs ( RO): 
                    start-time ( RO): 19700101T00:00:00Z
                  install-time ( RO): 19700101T00:00:00Z
                  VCPUs-number ( RO): 0
             VCPUs-utilisation (MRO): <expensive field>
                    os-version (MRO): <not in database>
            PV-drivers-version (MRO): <not in database>
         PV-drivers-up-to-date ( RO): <not in database>
                        memory (MRO): <not in database>
                         disks (MRO): <not in database>
                      networks (MRO): <not in database>
                         other (MRO): <not in database>
                          live ( RO): <not in database>
    guest-metrics-last-updated ( RO): <not in database>
                   cooperative ( RO): <expensive field>


[root@box ~]# 


On Tue, Nov 16, 2010 at 11:05 AM, David Markey <admin@xxxxxxxxxxx> wrote:
Can I see a xe vm-list params=all uuid=<new vm uuid>


On 16 November 2010 09:52, Peter den Hartog <peterdenhartog@xxxxxxxxx> wrote:
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