Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467034 - 10.b grub-install step incorrect for virtio systems
Summary: 10.b grub-install step incorrect for virtio systems
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-24 04:05 UTC by Michael Mol
Modified: 2013-08-15 08:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mol 2013-04-24 04:05:09 UTC
Both approaches listed under 10.b for using grub fail in an environment using virtio block devices. In these environments, the following must be done:

echo "(hd0)\t/dev/vda" >> /boot/grub/device.map

On virtio-based systems, this step should happen either immediately prior to code listing 2.6 or code listing 2.7, depending on whether the user takes the primary or alternate approach. This may be true of some other paravirtualized disk environments as well, but I don't know what they would be.

Explanation:

When using Linux virtio disks, the VM BIOS has no knowledge of them. As a consequence, grub fails to detect them as well. We must tell grub where to find them by adding the line to the device.map file.
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2013-08-15 08:15:08 UTC
Thanks, updated in CVS; should show up on the size in an hour or so