Re: block device loopback
Jim C. Brown <jma5 <at> umd.edu>
2006-06-01 16:50:11 GMT
I'm working on something that does just this. I'm calling it vda (its based
on lomount), and it provides access to vda, vda1, vda2, etc.
I don't see why you are unable to use the disk image as is though. lomount and
similar tools should be able to handle the job quite easily.
On Thu, Jun 01, 2006 at 06:08:56PM +0200, s[e]th & h[o]lth wrote:
> I'm a qemu user and I'm looking for a way to use my virtual target drive
> inside my host computer.
> I've created a file that I'll call hda.disk like this : "dd if=/dev/zer of=
> hda.disk count=1 bs=1M seek=1023" and i use it like "qemu -hda hda.disk"
> The problem i meet is that i can't use this file outside the virtual machine
> and I'm trying to program a block device driver to read this file as a IDE
> The aim of this driver is quite similar to the loop driver but instead of
> "emulating" a partition, it emulates a IDE Hard Drive and give an access to
> it via /dev/vdX and it's partition via /dev/vdXpY.
> Perhaps you will wonder why i use the qemu's mailing-list for this problem :
> - i don't know exactly where i can find a way to achieve this project ;
> - i wonder how you read your hda.disk without using qemu ;
> - i would like to know how qemu fix the virtual drive property inside the
> virtual machine (cylinders, sectors, etc...) ;
> - i don't know anyone interested by this problem and quite good enough linux
> driver developer to help me.
> Thank you very much and have a nice day !
> Qemu-devel mailing list
> Qemu-devel <at> nongnu.org
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.