Grub with virtio disk

When coding around with the pentoo-installer in virtual machines, grub simply refused to detect the virtual device mounted on /dev/vda.

The solution was in this article:
https://wiki.archlinux.org/index.php/KVM#Preparing_an_.28Arch.29_Linux_guest

# grub
> device (hd0) /dev/vda
> root (hd0,0)
> setup (hd0)
> quit

Also put this in /boot/grub/device.map:

(hd0) /dev/vda
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: