[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.
>-----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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |