From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FlqNE-0006yW-7z for qemu-devel@nongnu.org; Thu, 01 Jun 2006 12:50:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FlqNC-0006xA-MD for qemu-devel@nongnu.org; Thu, 01 Jun 2006 12:50:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlqNC-0006x4-Bc for qemu-devel@nongnu.org; Thu, 01 Jun 2006 12:50:14 -0400 Received: from [128.8.10.163] (helo=po1.wam.umd.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FlqTT-0008TQ-OL for qemu-devel@nongnu.org; Thu, 01 Jun 2006 12:56:43 -0400 Received: from jbrown.mylinuxbox.org (jma-box.student.umd.edu [129.2.250.193]) by po1.wam.umd.edu (8.12.11.20060308/8.12.11) with ESMTP id k51GoC7R006811 for ; Thu, 1 Jun 2006 12:50:12 -0400 (EDT) Date: Thu, 1 Jun 2006 12:50:11 -0400 From: "Jim C. Brown" Subject: Re: [Qemu-devel] block device loopback Message-ID: <20060601165011.GA5009@jbrown.mylinuxbox.org> References: <5370f2820606010908w7204c1afr17132397ec625c76@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5370f2820606010908w7204c1afr17132397ec625c76@mail.gmail.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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: > Hello, > > 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. > > Thank you very much and have a nice day ! > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.