Re: [Qemu-devel] using partition images

2006-05-08 Thread Paul Brook
> The syntax is getting kinda ugly though. Anthony suggested that we use > mini-config files with all the options and just pass those to -hda (e.g. > -hda multipart:hda.config) > > > A vmware split image file is just a composite of several raw images with > > a funny config file. > > It'd still be

Re: [Qemu-devel] using partition images

2006-05-08 Thread Jim C. Brown
On Mon, May 08, 2006 at 03:28:31PM +0100, Paul Brook wrote: > > If split vmdks are just a series of partition images plus an image of an > > MBR/partition table then it may be possible to hack this up via a partition > > driver that supported harddisk sharing (using multiple partition images as > >

Re: [Qemu-devel] using partition images

2006-05-08 Thread Jim C. Brown
On Mon, May 08, 2006 at 08:26:20AM -0400, Jim C. Brown wrote: > > - Instead of copying the raw block driver, use the block driver recursively. > > I'll work on this tonight. I've been thinking about doing this, since it would > allow one to use any qemu-supported disk image format as a partition i

Re: [Qemu-devel] using partition images

2006-05-08 Thread Paul Brook
On Monday 08 May 2006 15:19, Jim C. Brown wrote: > On Mon, May 08, 2006 at 02:11:36PM +0100, Paul Brook wrote: > > > I'll work on this tonight. I've been thinking about doing this, since > > > it would allow one to use any qemu-supported disk image format as a > > > partition image. > > > > > > I c

Re: [Qemu-devel] using partition images

2006-05-08 Thread Jim C. Brown
On Mon, May 08, 2006 at 02:11:36PM +0100, Paul Brook wrote: > > I'll work on this tonight. I've been thinking about doing this, since it > > would allow one to use any qemu-supported disk image format as a partition > > image. > > > > I can't think of any disk format that's heavily used in qemu tha

Re: [Qemu-devel] using partition images

2006-05-08 Thread Paul Brook
> > - Instead of copying the raw block driver, use the block driver > > recursively. > > I'll work on this tonight. I've been thinking about doing this, since it > would allow one to use any qemu-supported disk image format as a partition > image. > > I can't think of any disk format that's heavily

Re: [Qemu-devel] using partition images

2006-05-08 Thread Johannes Schindelin
Hi, On Mon, 8 May 2006, Jim C. Brown wrote: > I can't think of any disk format that's heavily used in qemu that is > normally used for partition images except for raw. OTOH it might be > interesting to have qcow partition images. Well, you might argue it is not heavily used, but there is a dis

Re: [Qemu-devel] using partition images

2006-05-08 Thread Jim C. Brown
On Mon, May 08, 2006 at 12:20:28PM +0200, Fabrice Bellard wrote: > A few ideas: > > - Use an external file 'bootsect.bin' as it is done for linux_boot.bin. Done. I've decided to use the name bootmbr.bin because I think that name describes its function more accurately. > - Provide the source code

Re: [Qemu-devel] using partition images

2006-05-08 Thread Fabrice Bellard
A few ideas: - Use an external file 'bootsect.bin' as it is done for linux_boot.bin. - Provide the source code of the boot sector. - Instead of copying the raw block driver, use the block driver recursively. Fabrice. Jim C. Brown wrote: On Sun, May 07, 2006 at 11:53:46PM -0400, Jim C. Brown wr

Re: [Qemu-devel] using partition images

2006-05-07 Thread Jim C. Brown
On Sun, May 07, 2006 at 11:53:46PM -0400, Jim C. Brown wrote: > Known Issues: > > booting is not supported - this will require passing a separate bootsector. I stand corrected. New patch that adds support for booting partition images. Apply this on top of the first one. Also attached is the requ

[Qemu-devel] using partition images

2006-05-07 Thread Jim C. Brown
This is a preliminary patch that adds support for using a single partition image as a hard disk image. Syntax is: qemu -hdX part:file E.g. qemu -hda part:/dev/hda1 qemu will see a hard disk with a single partition on it. Reading appears to work ok, I haven't tested writing yet. Writing to the M