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

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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] how to setup a hvm using image file, which include LVM partition, as backend
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
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=AsKssHBCMmMxsxJhYjnHcTJwbRJi6kDWGvZ+eoNBDWMxzzDiw/HTG/KzeuR1I+4zcJnfbPzGbzN444vG3UnOec5FJ1HBBTjxY6fuOh2ywlnJizU+m9kimQoWAfhu8nKWHf6GE31saSxkk6TayNuN0cJh2klukVib4ufK3RyZR+o=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] how to setup a hvm using image file, which include LVM partition, as backend, thomas fan <=