Red Hat Bugzilla – Bug 499194
anaconda fails to install grub in KVM guest
Last modified: 2009-05-05 13:10:03 EDT
Using 2009-05-04 rawhide
I've installed a 64 bit guest using virtio, a 32 bit guest using virtio and a 64 bit guest using IDE, and each time grub wasn't installed and boot failed after install
Looking at program.log:
Running... ['/sbin/grub', '--batch', '--no-floppy', '--device-map=/boot/grub/device.map']
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename.]
grub> root (hd0,0)
Error 21: Selected disk does not exist
grub> install --stage2=/boot/grub/stage2 /grub/stage1 d (hd0) /grub/stage2 p (hd0,0)/grub/grub.conf
Error 12: Invalid device requested
/mnt/sysimage/boot/grub/device.map contains "(hd0) /dev/sda"
Interestingly, if I run:
if I run:
chroot /mnt/sysimage grub --device-map=/boot/grub/device.map
then it doesn't work; looks like an empty /mnt/sysimage/dev is the problem?
Ah, I see there's a newer anaconda in today's rawhide - I'll try again
Okay, seems to be fixed in today's rawhide.
Great, thanks for validating.