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?

Subject: Re: [Xen-users] Convert CentOS system to Xen image?
From: "Joe Royall" <joenukem@xxxxxxxxx>
Date: Wed, 2 Apr 2008 09:23:02 -0400
Cc: "Xen List" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 02 Apr 2008 06:27:43 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:subject:cc:in-reply-to:mime-version:content-type:references; bh=nAjEVxAvMQJOJm5H5ZoH5BLYtscc3qyw9/f5sFEEym4=; b=rW7CaK6JwSM8tZBtv+QJuY2mZbYI24K1onIF2tjjbSaux41mMlrhnxmBqdsRnJMAd88oWWfWIlTRJYeArBvzM9jR7DAXXdYGtc2Vo1ulDq2ATd1tiWpaLZwE99rozZvTLPBoTILX5RlLyOHNBD9+gcL/gpWfj1KRshie/UmM9S4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:subject:cc:in-reply-to:mime-version:content-type:references; b=O6B1T+ngcKdCtFEkCq2/BNM8yrP1zgQ7+7wu22obOgnldZggqvGuYin25lNzZo/3n44miq7UUN76YUscKxJmCS7nXUFptV62/UGHrJ/ZuQ4FQE5U1MBjMAwNjZCKoXKw+ZOKCJO8v8zQ5AaSg7AQYIr8RBxHr5uPKl4GHNQabvw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1207140100.8297.59.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> <20080401195421.GJ2937@xxxxxxx> <1207081039.8297.52.camel@xxxxxxxxxxxxxxxxxxxxxxxx> <20080401223507.GA4561@xxxxxxx> <1207140100.8297.59.camel@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Wed, Apr 2, 2008 at 8:41 AM, James Pifer <jep@xxxxxxxxxxxxxxxx> wrote:
Attempted to do this using netcat + ssh and here's my next problem. The
CentOS server is using LVM, so instead of getting an img file of around
8 gig that I expected, I got one that is 18 gig, or the size of the LV.

I tried it anyway and I get a valid boot sector not found.

Any suggestions?

Xen uses a partition within a partiton.  If you are going from a real system to a xen and they are both on lvms do something like

lvcreate -n xenBoot -L <a little bigger than the real servers lvm>G /dev/VolGroup00
fdisk /dev/VolGroup00/xenBoot
  create a primary partion

kpartx -a /dev/VolGroup/xendBoot  <this will make the partition visible to dom0 in /dev/mapper/xenBoot1

dd if=/dev/VolGroup/<your real boot volume> of=/dev/mapper/xenBoot1

 


Thanks,
James


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



--
Joe Royall
407-401-2007
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>