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

[Xen-users] how to setup a hvm using image file, which include LVM partition, as backend


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "thomas fan" <thomas.hf.fan@xxxxxxxxx>
  • Date: Tue, 28 Aug 2007 15:43:34 +0800
  • Delivery-date: Tue, 28 Aug 2007 00:44:05 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=k0+e06hsgjFCLLh0vpq+Nlcqju4KFWFR2JPBVd9RHr1h4LMtoWM9a5yHSebm6nPgUgFGuqB4BXmjoEdLKvqm08qd8RwcLAW0GaYMHsw/qr7k6FafARJKDqCBYhE3jCdEp7OP7WCNohYsqQDqxM6GE4Wzpy06aeQoH2I9kEGlY1w=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Basically, I want to use a VMWare image in the XEN.
 
I have a RHEL43 installation using LVM at VMWare, and then I convert the .vmdk file into a raw .img file using qemu-img file, name it as rhel43-flat.img.

#fdisk -l -u rhel43-flat.img
You must set cylinders.
You can do this from the extra functions menu.

Disk rhel43-flat.img: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes

          Device Boot      Start         End      Blocks   Id  System
rhel43-flat.img1   *          63      208844      104391   83  Linux
rhel43-flat.img2          208845    41929649    20860402+  8e  Linux LVM
Partition 2 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(2609, 254, 63)

I searched a lot, there are follwing instructions on how to setup a hvm:

# lvcreate -L 20G -n rhel43 vg
# dd if=rhel43-flat.img of=/dev/vg/rhel43 bs=1M

It uses a logical volume to finish this job, however I want to know if there is a way to setup the hvm using the file as backend instead of LVM(We can split the original image into multiple image through dd, but just not use a logical volume). Is there anybody having some ideas?

Thanks,

Thomas

_______________________________________________
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®.