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 CentOS system to Xen image?

To: James Pifer <jep@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Convert CentOS system to Xen image?
From: Igor Chubin <igor@xxxxxxx>
Date: Tue, 1 Apr 2008 22:54:21 +0300
Cc: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 01 Apr 2008 12:53:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1207079240.8297.41.camel@xxxxxxxxxxxxxxxxxxxxxxxx>
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: <1207075783.8297.22.camel@xxxxxxxxxxxxxxxxxxxxxxxx> <20080401191809.GD2937@xxxxxxx> <1207079240.8297.41.camel@xxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: Igor Chubin <igor@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.17+20080114 (2008-01-14)
On Di, Apr 01, 2008 at 03:47:20 -0400, James Pifer wrote:
> > First of all, you must know, do you want to convert it
> > to a PV or an HVM Xen domain.
> 
> I believe I need to convert to a PV. 
> 
> > 
> > HVM:
> > 
> > 1) Just copy image of your server to a logical volume of 
> > the Xen server LVM or to any other block device.
> 
> Is it possible to create an uncompressed image using something like g4l
> and make use of that image file somehow?

I think yes, but I have never used it.


You can create image with cat, netcat or ssh.


knoopix#  cat /dev/sda | nc -l -p 3000

dom0#     nc knoppix 3000 > centos.img   

or 

(if you use LVM and have a volume group called VG)

dom0#     lvcreate -L 20G -n centos /dev/VG
dom0#     nc knoppix 3000 > /dev/VG/centos


> 
> Thanks,
> James
> 
> 

-- 
WBR, i.m.chubin


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