From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRC1A-0001fz-T9 for qemu-devel@nongnu.org; Fri, 31 Aug 2007 15:18:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRC18-0001ck-V7 for qemu-devel@nongnu.org; Fri, 31 Aug 2007 15:18:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRC18-0001cD-Cc for qemu-devel@nongnu.org; Fri, 31 Aug 2007 15:18:54 -0400 Received: from wa-out-1112.google.com ([209.85.146.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IRC17-0005Bk-Bl for qemu-devel@nongnu.org; Fri, 31 Aug 2007 15:18:54 -0400 Received: by wa-out-1112.google.com with SMTP id k22so1102195waf for ; Fri, 31 Aug 2007 12:18:51 -0700 (PDT) Subject: Re: [Qemu-devel] disk images & driver geometry From: Anthony Liguori In-Reply-To: <46D8675F.1050300@visible-assets.com> References: <46BB7C30.3050007@visible-assets.com> <46BB7E37.7050609@codemonkey.ws> <46D8675F.1050300@visible-assets.com> Content-Type: text/plain Date: Fri, 31 Aug 2007 14:18:47 -0500 Message-Id: <1188587927.10527.4.camel@squirrel> Mime-Version: 1.0 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 Fri, 2007-08-31 at 15:09 -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 > > and it hangs after saying 'booting from hard disk' QEMU does the Right Thing in this case. If you're having trouble booting, it's not because of disk geometry. Please post a link to the exact location of your install disk, the command you used to create the disk, the command lines you're using to install and launch, and the version of QEMU. Regards, Anthony Liguori > If anyone knows a way to work around this, please don't hesitate to > offer a suggestion. > > ~/Chris > >