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: Joseph Smith <smithj@xxxxxxxxx>
Subject: Re: [Xen-users] Convert physical server to VM
From: Simon Gao <gao@xxxxxxxxxxxxxxx>
Date: Wed, 22 Aug 2007 15:42:21 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 22 Aug 2007 15:43:38 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200708221659.35080.smithj@xxxxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.6 (X11/20070803)
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

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