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

xen-users

[Top] [All Lists]

Re: [Xen-devel] Re: [Xen-users] XCP/XenServer Migration utility now ava

To: admin@xxxxxxxxxxx
Subject: Re: [Xen-devel] Re: [Xen-users] XCP/XenServer Migration utility now available at xen.org
From: Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx>
Date: 2010年3月15日 17:14:38 -0300
Cc: David Markey <david.markey@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: 2010年3月15日 13:16:08 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=fG+KtbCn5Oh5r/8rbcOGvkjT3xbMznEXasWK2gHwjAY=; b=hRngDh5lTA4lO13WoWj+AlO3qc1psC+E3AiH6zkxA/Ky7JQN5O57skKaQKbEbN0zJe SK1jt9uZWJ39UC08fBkW3ckFKBUG0PW4AEYF8an/LEjfzqIQgbJBgrmYMZirEAbXjI2s YEnnD2YTfG661mo7X3vB/yJQaCBmhtzsoJaK0=
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=fAyfdUD7mPnYYErqMUhojhZkXq9kT4x7ITSDRPPro55kqL/SSVbx+C0jT56yT9Larh TIdS1e4UFO7oCVEX9OEmi9mbd2cZYHPb50GHZFqkP3V19ZH79VWgg4kKtTZh26iFNLpZ 5drSJg4btqXCvJyc+Y+QxcaR7PwjmRjq1mo1I=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <6894a6471003151155u44438a1arcefbca3fc96fb876@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: <A1AB79C06219B34FBD39BC5B1E36CB97542647B5AF@xxxxxxxxxxxxxxxxxxxxxxxxx> <6b7f6eb1003121142x3f3ac6c7u6175c2ca3ddb283f@xxxxxxxxxxxxxx> <6894a6471003151043o5ba7bf03kc8be41b7ae007626@xxxxxxxxxxxxxx> <6b7f6eb1003151113o60046a6l3f6667851737fa8f@xxxxxxxxxxxxxx> <6894a6471003151117n781471beh4df5f0a0df4da7c5@xxxxxxxxxxxxxx> <6b7f6eb1003151131v7a381856nafa681fd348935db@xxxxxxxxxxxxxx> <6894a6471003151139r5b4ddad6o839fd79b8f4555f1@xxxxxxxxxxxxxx> <6b7f6eb1003151146jbdcfaa7m710110d87b18cbef@xxxxxxxxxxxxxx> <6894a6471003151155u44438a1arcefbca3fc96fb876@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
So, your script can make a new partition scheme and a new fstab for my VMs before stream it to the XenServer?
Because I have more than 100 VMs to copy! :-/

2010年3月15日 David Markey <admin@xxxxxxxxxxx>
Wow, what a pain :)



2010年3月15日 Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx>
Yeah! Sure!

Today I'm doing this work manually... I mean, to copy a VM from open source Xen to the XenServer I do:

1- stop the VM on my debian dom0;
2- mount its root file system under /mnt/source;
3- export it via NFS;
4- At the XenServer, I boot the sysrescuecd (a live system);
5- fdisk the /dev/sda;
6- create the LVM volumes;
7- mount /dev/vg01/root under /mnt/target;
8- mount /dev/sda1 under /mnt/target/boot;
9- mount the debian dom0 nfs server under /mnt/source;
10- cp /mnt/source/* /mnt/target/
11- edit the /etc/fstab and the grub's menu;
12- shutdown the VM;
13- Convert it from HVM to PVM;
14- start the VM;


Thanks,
Thiago

2010年3月15日 David Markey <admin@xxxxxxxxxxx>
If you change xvda1 to xvda, change xvda2 to xvdb it will work fine.

Change references in /boot/grub/menu.lst of xvda1 to xvda

Change references in /etc/fstab of xvda1 to xvda, and xvda2 to xvdb.


Understand?


2010年3月15日 Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx>
Exactly!

The first one is for my domU hosted at my open source Xen (powered by Debian), the second fstab, is the new one, used for my guests hosted at my XenServers.


Thanks!
Thiago

2010年3月15日 David Markey <admin@xxxxxxxxxxx>
I'm confused,

You supply 2 fstabs there, one using LVM, one without. Which one is it?




2010年3月15日 Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx>

Hi David!

My Xen domU in my open source dom0 (Debian) have this configuration file:

----
bootloader = '/usr/bin/pygrub'
extra = 'console=hvc0'
memory = '64'
disk = [
'phy:/dev/HyperVG01/guest01-root,xvda1,w',
'phy:/dev/HyperVG01/guest01-swap,xvda2,w',
]
name = 'guest01'
vif = [ 'mac=00:01:64:4b:0d:2e, vifname=guest01-eth0, bridge=eth0' ]
>on_reboot = 'restart'
on_crash = 'restart'
----

My guest01 /etc/fstab file:

proc /proc proc defaults 0 0
/dev/xvda1 / ext3 relatime,errors=remount-ro 0 1
/dev/xvda2 none swap sw 0 0

BUT, this is for open source Xen domU, within the XenServer, the guest01 should be:

proc /proc proc defaults 0 0
/dev/xvda1 /boot ext2 defaults 0 2
/dev/mapper/vdwuaf1-root / ext3 errors=remount-ro 0 1
/dev/mapper/vdwuaf1-swap_1 none swap sw 0 0

And the partition table of the guest01:

guest01:~# fdisk -lu /dev/xvda

Disk /dev/xvda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders, total 16777216 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0009c181

Device Boot Start End Blocks Id System
/dev/xvda1 * 63 498014 248976 83 Linux
/dev/xvda2 498015 16771859 8136922+ 8e Linux LVM

You tool can recreate the partition scheme? Or it just copy the domU as is?
I have many others domU like this to copy...

Thanks!
Thiago

2010年3月15日 David Markey <admin@xxxxxxxxxxx>

If anyone has feature requests, direct them here.

The next feature i'll be working on is supporting kernels loaded from the Dom0. The kernel images will have to be copied to the XenServer/XCP Dom0.





2010年3月12日 Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx>
Really COOL!!! I'm doing all this work manually until now!


On 12 March 2010 15:33, David Markey <david.markey@xxxxxxxxxx> wrote:
Hi all,

A new python based migration utility for migrating your xend virtual machines to XCP is now available at:

http://www.xen.org/products/cloud_projects.html

It can generate XVAs from your xend based HVM and paravirtualised virtual machines.
It can also steam your VM directly to a XenServer/XCP host over HTTP or HTTPS.

Please read the README for pointers and guidelines on how to prepare your VMs for migration to XCP. Most PV based virtual machines will need some preparation work.


Thanks to Stephen Spector and Dave Scott!

Enjoy,

David

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


_______________________________________________
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
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-users] Weird arp problem , Thomas Halinka
Next by Date: Re: [Xen-devel] Re: [Xen-users] XCP/XenServer Migration utility now available at xen.org , David Markey
Previous by Thread: Re: [Xen-devel] Re: [Xen-users] XCP/XenServer Migration utility now available at xen.org , David Markey
Next by Thread: Re: [Xen-devel] Re: [Xen-users] XCP/XenServer Migration utility now available at xen.org , David Markey
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /