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

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

  • To: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>, "Andi Kleen" <ak@xxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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
>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.


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.