Bug 705162 - virtio_pci actually required, but not depended on by virtio_blk module
Summary: virtio_pci actually required, but not depended on by virtio_blk module
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Paolo Bonzini
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-16 20:17 UTC by joshua
Modified: 2013-07-31 05:01 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-06 14:20:59 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description joshua 2011-05-16 20:17:58 UTC
When converting a VM over to use virtio recently,  had to change modprobe.conf
to reference virtio_blk and virtio_net, and remake the initrd.

When running mkinitrd with verbose output, I noticed that virtio_blk,
virtio_pci, virtio_ring, and virtio where referenced as being included in the
initrd.

A reboot doesn't work, as the kernel can't find its own root disk.
I rescued the system, and remade the initrd with exactly the same command as
before, the one addition:  --with=virtio_pci

This works!

The problem is shown by "modinfo virtio_blk".  Notice that virtio_pci isn't
listed as a dependency... even though it is actually required to work properly.
Can we get this fixed so that mkinitrd doesn't unknowingly create incomplete
initrds ?

Comment 2 RHEL Program Management 2011-10-07 15:35:24 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 3 Eduardo Habkost 2012-06-06 14:20:59 UTC
virtio_blk does not depend on virtio_pci by design. The virtio module doesn't require all virtio devices to be PCI devices (see the upstream virtio_mmio module, for example).

After you are running on a system using virtio_blk, dracut pulls virtio_pci automatically. But as you are doing a manual conversion, you may need --with virtio_pci to be used on the first time you generate the initrd.


Note You need to log in before you can comment on or make changes to this bug.