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/
Home Products Support Community News


Re: [Xen-users] Can I migrate file backed VMs to another server and use

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Can I migrate file backed VMs to another server and use LVM storage?
From: Simon Hobson <linux@xxxxxxxxxxxxxxxx>
Date: Tue, 11 Jan 2011 21:12:29 +0000
Delivery-date: Tue, 11 Jan 2011 13:14:36 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTinY3trpW4rM7aMrxfRocTY-_iC9r=GtnUqSFQY1@xxxxxxxxxxxxxx>
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>
References: <AANLkTinY3trpW4rM7aMrxfRocTY-_iC9r=GtnUqSFQY1@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Bruce Edge wrote:

Can I migrate an HVM linux VM from a xen 3.3 server that uses file backed VMs to a 4.01 server and use LVM storage?

Assuming you don't want live migration then yes, you can migrate between servers. I assume going between versions should be OK, not something I'm familiar with, but transferring the storage is OK.

All you need to do is copy the contents of the file into the contents of the LVM volume. You may be able to do this by using a tool like dd to wrote the contents of the file into the LVM volume in which case you get a byte for byte copy of the silesystem - warts and all. Or you can mount the filesystem, and copy the files into a freshly formatted filesystem on the LVM volume.

You may need to tweek a few settings in the guest afterwards, you often do with PV guests - eg if you've changed disk device names.
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.

Xen-users mailing list

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