From mboxrd@z Thu Jan 1 00:00:00 1970 From: lists Subject: Re: GRUB and support for Virtio Date: Wed, 18 Aug 2010 11:02:35 -0400 Message-ID: <4C6BF60B.3020104@internyc.net> References: <20100818045422.GA21969@defiant.freesoftware> <20100818124957.GA15196@/bin/hostname> <20100818133025.GD21969@defiant.freesoftware> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: dbareiro@gmx.net, KVM General Return-path: Received: from omr17.networksolutionsemail.com ([205.178.146.67]:54705 "EHLO omr17.networksolutionsemail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752926Ab0HRPPI (ORCPT ); Wed, 18 Aug 2010 11:15:08 -0400 Received: from cm-omr9 (mail.networksolutionsemail.com [205.178.146.50]) by omr17.networksolutionsemail.com (8.13.6/8.13.6) with ESMTP id o7IF2gUR031662 for ; Wed, 18 Aug 2010 11:02:42 -0400 In-Reply-To: <20100818133025.GD21969@defiant.freesoftware> Sender: kvm-owner@vger.kernel.org List-ID: 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