All of lore.kernel.org
 help / color / mirror / Atom feed
From: lists <lists@internyc.net>
To: dbareiro@gmx.net, KVM General <kvm@vger.kernel.org>
Subject: Re: GRUB and support for Virtio
Date: Wed, 18 Aug 2010 11:02:35 -0400	[thread overview]
Message-ID: <4C6BF60B.3020104@internyc.net> (raw)
In-Reply-To: <20100818133025.GD21969@defiant.freesoftware>

make sure your device.map has correct maps (yours look good) then run 
grub as follows:

grub --device-map=/boot/grub/device.map

I migrated all my centos 5.5 vms to virtio like that, and it worked 
fine. And yes something is not correct with grub and virtio detection on 
centos, it works on fedora.

fil

On 08/18/2010 09:30 AM, Daniel Bareiro wrote:
> Hi, Martin.
>
> On Wednesday, 18 August 2010 14:49:57 +0200,
> Martin Kraus wrote:
>
>>> I'm doing some tests in a KVM virtual machine with CentOS 5.5 and it
>>> seems that GRUB is not recognizing the Virtio devices:
>>>
>>> # ll /dev/vd*
>>> brw-r----- 1 root disk 253,  0 ago 17 23:35 /dev/vda
>>> brw-r----- 1 root disk 253,  1 ago 17 23:35 /dev/vda1
>>> brw-r----- 1 root disk 253,  2 ago 17 23:35 /dev/vda2
>>> brw-r----- 1 root disk 253, 16 ago 18 00:27 /dev/vdb
>>> brw-r----- 1 root disk 253, 17 ago 18 00:32 /dev/vdb1
>>> brw-r----- 1 root disk 253, 18 ago 18 00:32 /dev/vdb2
>
>> I've never had any problems with installing grub on virtio. what is in
>> your /boot/grub/device.map?
>
> # cat /boot/grub/device.map
> # this device map was generated by anaconda
> (hd0)     /dev/vda
>
>
> In Debian I had no problems, but in CentOS 5.5 I came across this when I
> was doing some tests to convert an existing installation in another with
> RAID-1.
>
> Thanks for your reply.
>
> Regards,
> Daniel

  reply	other threads:[~2010-08-18 15:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-18  4:54 GRUB and support for Virtio Daniel Bareiro
2010-08-18 12:49 ` Martin Kraus
2010-08-18 13:30   ` Daniel Bareiro
2010-08-18 15:02     ` lists [this message]
2010-08-18 18:45       ` Nikolai K. Bochev
2010-08-22  0:44         ` Daniel Bareiro
2010-08-24 14:23         ` Daniel Bareiro
2010-08-24 18:51           ` SeaBIOS and GRUB booting from Virtio devices [was: GRUB and support for Virtio] Daniel Bareiro
2010-08-24 19:27             ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C6BF60B.3020104@internyc.net \
    --to=lists@internyc.net \
    --cc=dbareiro@gmx.net \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.