Re: GRUB and support for Virtio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux