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] XCP: disk2vhd -> xenconvert (to ovf) -> xe vm-import

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] XCP: disk2vhd -> xenconvert (to ovf) -> xe vm-import
From: Tom Lobato <tomlobato@xxxxxxxxx>
Date: Tue, 23 Aug 2011 02:04:37 -0300
Delivery-date: Mon, 22 Aug 2011 22:06:37 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=1KmyX3I/P0ZRkrVhbOCG9rcEplqCS1WQJug1+ttQaRA=; b=mPI+ZKnAOAOSff3P1GIIPB40DmhCq8lIsxEXxdNCTNnMnzNsfnE7GNtxhZnO7kZ8vf E9Jbaj9CAX5QJL4gBd0kVb55Q7S48ra4RlOkMoeNtI5OWRBwHHmgQEYzq3xDB9+gUtxs 2NQhOcGuNUAM3TW4ZTNX9vKJz6ubdt0dJI5uQ=
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
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11
    Hi all,

    I`m evaluating methods for nightly "snapshot" a physical win2003 to
xcp vm.
    I know it would be a lot easier and reliable just to to one convert
one time and start to generate real vm snapshots, but at this time I
cannot use this method.

    I tested the sequence: disk2vdh -> xenconvert (to xcp), but a big
deal of using this method is that xenconvert does not send only the .vhd
file through the network, but all the disk size whose partition was
converted. So, if my win2003 has a physical HD of 250GB and C: is on
first partition of 10GB, the generated .vhd will have ~10GB, but
xenconvert sends 250 GB via network to xcp server.

    Well, with my scenario I cannot rely on this method and would be
much faster if I could implement something like this:
    - Use disk2vhd to extract C:
    - Use Xenconvert to convert the .vhd to modified .vhd + .ovf
    - Send modified .vhd + .ovf to xcp
    - Use xe vm-import or others means to build the vm.
   
    But as far as I could read and test, vm-import only accepts .xva.
    I know that by default, vdi`s stores data using vhd format, on lvm2
logical volumes. So, I`m playing with the chances for:

    - Create the vdi with xe vdi-create.
    - cat .vhd > /dev/VG.../created-volume...
    - and finaly use the .ovf to create the vm, attaching the vdi to it.

    Of course, all of it has to be via scripts (.bat and .sh).

    Do you have hints about the viability of this method? Is it possible
to create a vm from .ovf and cat or dd the .vhd to the logical volume?


    Thank you,
    Tom Lobato





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

<Prev in Thread] Current Thread [Next in Thread>