[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.