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] Convert physical server to VM

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Convert physical server to VM
From: "John T. Yocum" <john@xxxxxxxxxxxxxxxx>
Date: Wed, 22 Aug 2007 23:12:05 -0700
Delivery-date: Wed, 22 Aug 2007 23:12:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46CCBBCD.7010206@xxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <46CCB07E.3000003@xxxxxxxxxxxxxxx> <200708221659.35080.smithj@xxxxxxxxx> <46CCBBCD.7010206@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)
You could mount the partitions, and then copy over the files using cp. A little slow, but it's free.

--John

Simon Gao wrote:
Joseph Smith wrote:
I would dd the server's hard drive to an image file. Its probably the most straightforward way.



dd if=/dev/sda of=server.img

use your servers hard drive device node in place of /dev/sda

then write up a domU config:

# general
name    = "newVM";
memory  = 1024;

# booting
kernel  = "/boot/vmlinuz-2.6.x-xenU";
ramdisk = "/boot/initrd-ifyouhaveone";
builder = "linux";

# virtual harddisk
disk = ['tap:aio:/xvmstore/images/vmThree.img,sda,w'];
root = "/dev/sda1 ro"; #or whatever your root partition is


-Joe
It's hard to use dd if the drive is very large. When making an VM, I
only want to system OS/Apps in one vms image file.  Extra disk space can
be made available from second vm image or partition.

Simon

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


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

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