Public bug reported:

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.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1859212

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

Status in linux package in Ubuntu:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1859212/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to