Pass Thru devices in Hyper-V (IOMMU)


jimbo45

Well-known member
Power User
VIP
Local time
6:30 PM
Posts
1,885
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
Hi folks
Is there some documentation around on how to pass devices, specifically GPU's, Disks and CPU's (if on an MP system).

On Linux host it's easy enough :

For Intel CPUs (VT-d) set intel_iommu=on. Since the kernel config option CONFIG_INTEL_IOMMU_DEFAULT_ON is not set by default when booting the host in Linux. You should also append the iommu=pt parameter. This will prevent Linux from touching devices which cannot be passed through.

I'm sure for AMD there's similar.

I'm messing around with HYPER-V today -- I've got a machine with 2 GPU's, 2 Physical CPU's (4 cores each) and 4 Mobo disk ports spare. I can't get the VM booted on to a "Native disk" and the 2nd monitor / GPU just seems to display what the ist one is showing - or just blank,

Using passthru if you have the hardware makes the VM about 99% as respomsive as it would be on a physical machine - It certainly does running Windows on a Linux beast.

Anybody got decent passthru work with HYPER-V with any version of VM. Using Host USB devices doesn't address the problem either since the Host still has to provide the main USB driver in the first place.

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7

Kari

PhD in Malt Based Liquids
Power User
VIP
Local time
8:30 PM
Posts
754
Location
Expat from Finland in Leipzig Germany
OS
Windows 11 PRO x64 Dev
Although already almost 6 yeas old, this article is still one of the best about passing through devices in Hyper-V:


Kari
 

My Computers

System One System Two

  • OS
    Windows 11 PRO x64 Dev
    Manufacturer/Model
    Hyper-V Virtual Machine (host in System 2 specs)
    CPU
    Intel Core i7-8550U
    Memory
    6 GB
    Graphics Card(s)
    Microsoft Hyper-V Video
    Monitor(s) Displays
    Laptop display (17.1") & Samsung U28E590 (27.7")
  • Operating System
    Windows 11 PRO x64 Dev Channel
    Computer type
    Laptop
    Manufacturer/Model
    HP HP ProBook 470 G5
    CPU
    Intel Core i7-8550U
    Motherboard
    HP 837F KBC Version 02.3D.00
    Memory
    16 GB
    Graphics card(s)
    Intel(R) UHD Graphics 620 & NVIDIA GeForce 930MX
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    Laptop display (17.1") & Samsung U28E590 (27.7")
    Hard Drives
    128 GB SSD & 1 TB HDD
    Mouse
    Wireless Logitech MSX mouse
    Keyboard
    Wireless Logitech MK710 keyboard
    Internet Speed
    100 Mbps down, 20 Mbps up
    Browser
    Edge Chromium Dev Channel
    Antivirus
    Windows Defender
    Other Info
    2 * 3 TB USB HDD
    6 TB WD Mirror NAS

jimbo45

Well-known member
Power User
VIP
Thread Starter
Local time
6:30 PM
Posts
1,885
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
Although already almost 6 yeas old, this article is still one of the best about passing through devices in Hyper-V:


Kari

Thanks -- still seems relevant

I must say though also KVM/QEMU has improved massively too over the years. I'm running an experimental guest W11 system with a load of hardware passed thru so its performance is nearly as good as native and the load on the Host is shown as really minimal as it should be as one of the 2 CPU's in the system have been passed thru to the Guest.

Screenshot_20220410_230222.pngCheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
Top Bottom