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] Best way to convert pv to hvm?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Best way to convert pv to hvm?
From: Didier Trosset <didier_trosset@xxxxxxxxxxx>
Date: Tue, 05 Jun 2007 11:39:34 +0200
Cc: Tony Hoyle <tmh@xxxxxxxxxxxx>
Delivery-date: Tue, 05 Jun 2007 02:38:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46652D43.3070907@xxxxxxxxxxxx>
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: <4664A97D.2010609@xxxxxxxxxxxx> <46650B75.9010405@xxxxxxxxxxxxxxxxxxxxxx> <46652D43.3070907@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Icedove 1.5.0.10 (X11/20070329)


Tony Hoyle wrote:
Yves-gaël Chény wrote:
If i understand it's linux domain.

  1. make a disk file qemu-img for example
  2. mount the partition of you PV in the dom0 and the qemu disk-file
  3. make a rsync -a between the two mount point
  4. make a /boot with kernel, initrd ....
  5. running in hvm mode on a linux live cdrom
  6. install a grub or a lilo

Step 2 is an issue though, since it's a whole disk image you have a partition table - you can't simply mount it, unless there's some way to convert it into a block device
in userspace (AFAIK loop devices only work on partitions).

You can mount it, using the lomount utility provided in /usr/lib/xen/bin:

  lomount -diskimage /dev/vg/lv -partition 1 /mnt/wherever



Tony

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


--
Didier Trosset-Moreau
Agilent Technologies
Geneva, Switzerland


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