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?

Tony Hoyle wrote:
Didier Trosset wrote:

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

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

That works if you have already partitioned and formatted the image, not otherwise. I
can do that in the domu I guess.

I've to admit I never tried, but I'd guess it is possible to use both fdisk and mkfs on /dev/vg/lv. Within dom0, I can use fdisk -l to look at the partition table.

  # fdisk -l /dev/vg1/xen008-disk

  Disk /dev/vg1/xen008-disk: 8589 MB, 8589934592 bytes
  255 heads, 63 sectors/track, 1044 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes

                 Device Boot      Start         End      Blocks   Id  System
/dev/vg1/xen008-disk1 1 62 497983+ 82 Linux swap / Solaris
  /dev/vg1/xen008-disk2   *          63        1044     7887915   83  Linux


Didier


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