[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grub2 disk error with kvm
From: |
Daniel Dehennin |
Subject: |
grub2 disk error with kvm |
Date: |
Mon, 11 Aug 2008 14:08:58 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) |
Hello,
I post a bug report here as asked by nyu on #grub.
=== IRC LOG ===
[13:32] <nyu> 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
grub.cfg
Description: grub.cfg
- grub2 disk error with kvm,
Daniel Dehennin <=