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

Re: [Xen-users] imaging an existing system?

To: Miles Fidelman <mfidelman@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] imaging an existing system?
From: Thomas Halinka <lists@xxxxxxxxx>
Date: Mon, 16 Feb 2009 23:15:30 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 16 Feb 2009 14:16:19 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4999DF01.1000000@xxxxxxxxxxxxxxxx>
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: <4999DF01.1000000@xxxxxxxxxxxxxxxx>
Reply-to: lists@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Miles,

Am Montag, den 16.02.2009, 16:47 -0500 schrieb Miles Fidelman:
> Hi,
> 
> I have an old server, running Debian Sarge.  I'm getting ready to 
> migrate to a new machine - more horsepower, newer version of Debian, etc.

Good plan ;-)

> As an interim step to migrating all of my production stuff, it sure 
> would be nice to generate a snapshot of the current system, turn it into 
> an image file, and get it running on the new box, as a VM.
> 
> Any suggestions as to procedures and tools for imaging an existing system?

First boot up your old-system into rescue-mode (use knoppix, grml,
whatever) to get a consitent system....


Steps in dom0:
#################

create an empty image file on dom0

   dd if=/dev/zero of=/path/to/images/sarge-disk bs=1M count=5000 

---> creates a 5GB-Disk

Format it

   mkfs.ext3 /path/to/images/sarge-disk 


Mount it

   mount -o loop /path/to/images/sarge-disk /mnt


Copy your data into it

   rsync -avzH --numeric-ids -e ssh root@old-system:/* /mnt/

umount && create domu.cfg

   umount /mnt && cd /etc/xen && cp $extisting-domu.cfg sarge.cfg
   vim sarge.cfg


> 
> Thanks much,
> 
> Miles Fidelman


hth,

Thomas


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