Move pci-hyperv.ko from linux-modules-extra to support installation to Hyper-V using DDA

Bug #1859212 reported by TJ
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Move "pci-hyperv.ko" to the primary kernel image package.

Whilst attempting a 20.04 install into a Microsoft Windows Hyper-V guest that uses Discrete Device Assignment (DDA a.k.a. PCI pass-through) for 2x NVMe SSDs and Intel i350-T4 quad-port Gigabit Ethernet we found that the installer kernel (ubuntu-server) does not include the "drivers/pci/controller/pci-hyperv.ko" module that is required for Linux to discover the Hyper-V para-virtualised PCI bus.

Eventually discovered the module in the installer ISO's /pool/main/l/linux/linux-modules-extra-`uname-r`_amd64.deb and were able to manually install it with:

# udpkg --unpack /cdrom/pool/main/l/linux/linux-modules-extra-`uname -r`_amd64.deb
# depmod

After which it could be loaded ("pci-hyperv-intf.ko" is already installed):

# modprobe pci-hyperv-intf
# modprobe pci-hyperv

At this point it is possible to use the NVMe devices.

We used 'mdadm' to create a RAID-1 mirror and then returned to the installer and were able to use the partitioner to install the root file-system to NVMe, although it is worth noting that GRUB has to be installed to a Hyper-V virtual storage device (a Hyper-V file on NTFS) in order to boot since the guest UEFI nor GRUB can 'see' any PCI devices without help from a para-virtualisation driver.

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1859212

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
TJ (tj) wrote :

There are no logs required; this is a feature enhancement request

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.