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: Joseph Smith <smithj@xxxxxxxxx>
Date: Wed, 22 Aug 2007 16:59:34 -0500
Delivery-date: Wed, 22 Aug 2007 15:02:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46CCB07E.3000003@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>
Organization: Interact Incorporated
References: <46CCB07E.3000003@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.7
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

On Wednesday 22 August 2007 16:54:06 Simon Gao wrote:
> Hi,
>
> Anyone has any suggestions on programs, utility or instructions on how
> to convert a physical server to domU VM?
>
> Thanks,
>
> Simon
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users



-- 
---
Joseph Smith
smithj@xxxxxxxxx
(402)476-8786 x391
Linux IT Specialist


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

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