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-devel

RE: [Xen-devel] Re: [PATCH] Add VMX guest quick start in user manual.

To: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>, "Andi Kleen" <ak@xxxxxxx>
Subject: RE: [Xen-devel] Re: [PATCH] Add VMX guest quick start in user manual.
From: "You, Yongkang" <yongkang.you@xxxxxxxxx>
Date: Wed, 11 Jan 2006 08:58:51 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 11 Jan 2006 01:05:50 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcYVlKkNeogYdpx9Qw+8Qha8l/GCKwAXjLqAABTvSLA=
Thread-topic: [Xen-devel] Re: [PATCH] Add VMX guest quick start in user manual.
>-----Original Message-----
>From: Ian Pratt [mailto:m+Ian.Pratt@xxxxxxxxxxxx]
>
>> > +\item {\bfseries Make the file system and install grub}\\
>> > +{\scriptsize {\tt \# ln -s /dev/loop0 /dev/loop\\ \# losetup
>> > +/dev/loop0 hd.img\\ \# losetup -o 16384 /dev/loop1 hd.img\\
>>
>> An easier/cleaner way to handle partitioning on loop is to
>> use kpartx from multipath-tools. It sets up device mapper in
>> a way that you can access all the partitions easily.
>
>I'd recommend using lomount, which is in the xen tree (borrowed from
>qemu).
>
>kpartx only works on recent distros, and installing it manually is far
>from trivial.
>

Hi Ian,

The doc introduces the lomount and uses it when user copy file system
files into the disk image file. It is a very good tool. User need not to
count the offset of partition.

But the lomount is not very fit for the make partitions and make grub,
because mkfs couldn't run if the target partition is mounted, and when
make grub user need to know which loop device need to use.

>Ian

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

<Prev in Thread] Current Thread [Next in Thread>