From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRBpt-0002A2-AM for qemu-devel@nongnu.org; Fri, 31 Aug 2007 15:07:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRBpp-00029c-Pi for qemu-devel@nongnu.org; Fri, 31 Aug 2007 15:07:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRBpp-00029T-EY for qemu-devel@nongnu.org; Fri, 31 Aug 2007 15:07:13 -0400 Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IRBpo-0003L2-VU for qemu-devel@nongnu.org; Fri, 31 Aug 2007 15:07:13 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l7VJ76T7012000 for ; Fri, 31 Aug 2007 15:07:06 -0400 Received: from file.surrey.redhat.com (file.fab.redhat.com [10.33.63.6]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l7VJ7509025396 for ; Fri, 31 Aug 2007 15:07:05 -0400 Received: (from berrange@localhost) by file.surrey.redhat.com (8.13.1/8.13.1/Submit) id l7VJ75g8014309 for qemu-devel@nongnu.org; Fri, 31 Aug 2007 20:07:05 +0100 Date: Fri, 31 Aug 2007 20:07:04 +0100 From: "Daniel P. Berrange" Subject: Re: [Qemu-devel] disk images & driver geometry Message-ID: <20070831190704.GC7881@redhat.com> References: <46BB7C30.3050007@visible-assets.com> <46BB7E37.7050609@codemonkey.ws> <46D8675F.1050300@visible-assets.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46D8675F.1050300@visible-assets.com> Reply-To: "Daniel P. Berrange" , 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 Fri, Aug 31, 2007 at 03:09:19PM -0400, Christopher Friedt wrote: > Anthony Liguori wrote: > >I have no idea what you're talking about. QEMU doesn't care whether you > >use a physical disk or a file. It handles geometry the same way. > > > >Is there a concrete example that doesn't work that you think should? > > Yes, a simple example is running CentOS after a typical install from a > hard disk image. > > If Qemu is started with the installation cdrom (-cdrom CentOS-1of4*.iso) > the installation creates several partitions on the virtual disk, > including /boot, and a logical disk containing /. The first 512 Bytes of > the disk image are assumed to be the MBR of the disk, which is where the > installation will write the boot loader. > > After installation, qemu is started with > > qemu -hda centos.img -boot c That scenario works just fine for me when I try it with either RHEL-5 or Fedora Core 6 / 7. QEMU reads the MBR from the disk I pass with -hda, whether that's backed by a physical device, or a file backed disk & will succesfully boot the OS. I just followed the recommended partitioning scheme that RHEL-5 installer suggests making no changes. Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|