Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BUqT4-0008Ov-Nf for qemu-devel@nongnu.org; Mon, 31 May 2004 13:20:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BUqT3-0008OB-Mk for qemu-devel@nongnu.org; Mon, 31 May 2004 13:20:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BUqT3-0008O3-1q for qemu-devel@nongnu.org; Mon, 31 May 2004 13:20:57 -0400 Received: from [62.253.162.94] (helo=mta10-svc.ntlworld.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BUqSQ-0006RA-BF for qemu-devel@nongnu.org; Mon, 31 May 2004 13:20:18 -0400 Received: from [10.10.10.100] ([81.107.87.144]) by mta10-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20040531171549.XRIO13246.mta10-svc.ntlworld.com@[10.10.10.100]> for ; Mon, 31 May 2004 18:15:49 +0100 Subject: Re: [Qemu-devel] booting from /dev/hd? From: Antony T Curtis In-Reply-To: <20040531171005.GC10750@sentinelchicken.org> References: <20040531171005.GC10750@sentinelchicken.org> Content-Type: text/plain Message-Id: <1086023797.347.106.camel@pcgem.rdg.cyberkinetica.com> Mime-Version: 1.0 Date: Mon, 31 May 2004 18:16:37 +0100 Content-Transfer-Encoding: 7bit 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 On Mon, 2004-05-31 at 18:10, Tim wrote: > Hello, > > I know it is considered dangerous, but I am willing to accept the > risk... Has anyone been able to boot a virtual machine from their main > boot drive while the drive is in use? Yes, but I made a COW image from the hard drive so I don't trash the hard drive for real. > More specifically, I have a dual boot system, win2k/debian, and I would > like to try booting windoze from this disk as a guest OS while running > the linux system from this same disk. In order to protect my disk from > erroneous writes, I planned on running the vm system with -snapshot. > > I have tried this, and with basic options: > > qemu -hda /dev/hda -snapshot -boot c > > my bootloader (grub) comes up just fine, but once I select win2k, it > reports a disk read error. When booting Debian, it loads the kernel and > tries to begin booting, but just hangs. This may be because my kernel > is customized for my Athlon though... > I figured the windoze issue might be a geometry problem, so I ran > `fdisk -l /dev/hda' and then used that geometry: > > qemu -hda /dev/hda -snapshot -boot c -hdachs 4865,255,63 > > and I get the same results. Perhaps I need to use a non-LBA geometry or > something? I really don't know much about disk geometry, just a > guess... Try to do it with LBA Compat geometry.... -hdachs 77536,16,63 in your case... > > Has anyone tried doing something similar to what I am attempting? If > so, did you have any success, and what did you try that I haven't? I am > pretty sure I have permissions right in the host OS, is there anything I > am forgetting? > > thanks, > tim > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel > FLAGS (\Recent \Seen)) -- Antony T Curtis