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 drive.
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.