From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KSWCt-0006Ed-Tl for mharc-grub-devel@gnu.org; Mon, 11 Aug 2008 08:09:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSWCs-0006CT-9x for grub-devel@gnu.org; Mon, 11 Aug 2008 08:09:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSWCr-0006Aq-Ka for grub-devel@gnu.org; Mon, 11 Aug 2008 08:09:01 -0400 Received: from [199.232.76.173] (port=48923 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSWCr-0006Ac-81 for grub-devel@gnu.org; Mon, 11 Aug 2008 08:09:01 -0400 Received: from zion.asgardr.info ([82.233.222.74]:46281) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KSWCq-0004pW-Ox for grub-devel@gnu.org; Mon, 11 Aug 2008 08:09:01 -0400 Received: from hati.asgardr.info ([192.168.1.2] helo=hati.baby-gnu.org) by zion.asgardr.info with esmtp (Exim 4.69) (envelope-from ) id 1KSWCo-0008R8-Lq for grub-devel@gnu.org; Mon, 11 Aug 2008 14:08:58 +0200 From: Daniel Dehennin To: grub-devel@gnu.org Organisation: Dark Church of Emacs Date: Mon, 11 Aug 2008 14:08:58 +0200 Message-ID: <87vdy7g3dx.fsf@hati.baby-gnu.org> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: grub2 disk error with kvm X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2008 12:09:02 -0000 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hello, I post a bug report here as asked by nyu on #grub. === IRC LOG === [13:32] nebuchadnezzar: could you report the grub one first? the problem is grub_biosdisk_get_diskinfo_standard() fails, but this call wasn't used when probing for drives (and I think it should be) === IRC LOG === I have a kvm machine featuring debian lenny (now upgraded to sid). It has only one disk configured, with one partition as LVM so I install grub2 1.96+20080724-7. When booting I have the following error: === error: unknown drive hd15 Entering rescue mode... === This does not come from the configuration, I renamed grub.cfg and the same happens. Nyu ask me to remove the grub_error call line 53: grub_error (GRUB_ERR_BAD_DEVICE, "unknown device %s", name); Then it gives me "error: no such disk". In rescue mode: - I can insmod normal and enter in normal mode to boot my system. - ls gives me (lenny-var) (lenny-usr) (lenny-root) (lenny-boot) (hd0) (hd0,1) (hd1) (hd2)...(hd15) The problem happens only when using the kvm -drive option: sudo /usr/bin/kvm -M pc -m 256 -smp 1 -name lenny -monitor stdio \ -boot c -drive file=/dev/hati/lenny,if=virtio,index=0,boot=on \ -net nic,model=virtio,vlan=0 -net tap,vlan=0,ifname=vnet0 \ -serial pty -parallel none -k fr Replacing this by -hda makes it work: sudo /usr/bin/kvm -M pc -m 256 -smp 1 -name lenny -monitor stdio \ -boot c -hda dev/hati/lenny \ -net nic,model=virtio,vlan=0 -net tap,vlan=0,ifname=vnet0 \ -serial pty -parallel none -k fr I provide the grub.cfg as attachement, I can provide lspci, dmesg or what ever you need. Regards. -- Daniel Dehennin Récupérer ma clef GPG: gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1 --=-=-= Content-Disposition: attachment; filename=grub.cfg Content-Description: grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by /usr/sbin/update-grub using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### set default=0 set timeout=5 insmod lvm set root=(lenny-usr) search --fs-uuid --set b67ea215-b6ec-40cc-bfe8-56e1284a42c8 if font /share/grub/ascii.pff ; then set gfxmode=640x480 insmod gfxterm insmod vbe terminal gfxterm fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=cyan/blue set menu_color_highlight=white/blue ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_hurd ### ### END /etc/grub.d/10_hurd ### ### BEGIN /etc/grub.d/10_linux ### insmod lvm set root=(lenny-boot) search --fs-uuid --set 5b03d02f-e69e-418d-8f03-b0eb4e3185de menuentry "Debian GNU/Linux, linux 2.6.25-2-amd64" { linux /vmlinuz-2.6.25-2-amd64 root=/dev/mapper/lenny-root ro vga=0x318 initrd /initrd.img-2.6.25-2-amd64 } menuentry "Debian GNU/Linux, linux 2.6.25-2-amd64 (single-user mode)" { linux /vmlinuz-2.6.25-2-amd64 root=/dev/mapper/lenny-root ro single initrd /initrd.img-2.6.25-2-amd64 } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/30_os-prober ### ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/40_custom ### # This file is an example on how to add custom entries ### END /etc/grub.d/40_custom ### --=-=-=--