Received: from [140.186.70.92] (port=41251 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhNjE-0008NB-Jr for qemu-devel@nongnu.org; Fri, 06 Aug 2010 10:17:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhN5T-0001M9-I8 for qemu-devel@nongnu.org; Fri, 06 Aug 2010 09:35:55 -0400 Received: from adelie.canonical.com ([91.189.90.139]:56804) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhN5T-0001Lz-8f for qemu-devel@nongnu.org; Fri, 06 Aug 2010 09:35:51 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1OhN5R-00067S-Bg for ; Fri, 06 Aug 2010 14:35:49 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 08F2E2E8765 for ; Fri, 6 Aug 2010 14:35:45 +0100 (BST) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 06 Aug 2010 13:25:32 -0000 From: Hadmut Danisch Sender: bounces@canonical.com References: <20100804164344.4635.76028.malonedeb@wampee.canonical.com> Message-Id: <20100806132532.28279.48159.malone@potassium.ubuntu.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 613529] Re: qemu does not accept regular disk geometry Reply-To: Bug 613529 <613529@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org has been (orally) confirmed by other users. It is effectively impossible to reliably install a system on an lvm logical device and run it under kvm/qemu -- = qemu does not accept regular disk geometry https://bugs.launchpad.net/bugs/613529 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: Hi, = I am currently hunting a strange bug in qemu/kvm: I am using an lvm logical volume as a virtual hard disk for a virtual machi= ne. = I use fdisk or parted to create a partition table and partitions, kpartx to= generate the device entries for the partitions, then install linux on ext3= /ext4 with grub or msdos filesystem with syslinux. = But then, in most cases even the boot process fails or behaves strangely, s= ometimes even mounting the file system in the virtual machine fails. It see= ms as if there is a problem with the virtual disk geometry. The problem doe= s not seem to occur if I reboot the host system after creating the partitio= n table on the logical volume. I guess the linux kernel needs to learn the = disk geometry by reboot. A blkdev --rereadpt does not work on lvm volumes. = The first approach to test/fix the problem would be to pass the disk geomet= ry to qemu/lvm with the -drive option. Unfortunately, qemu/kvm does not acc= ept the default geometry with 255 heads and 63 sectors. Seems to limit the = number of heads to 16, thus limiting the disk size.