Environment Details:
-
Host Machine:
- OS: Windows Server 2022 (Hyper-V)
- GPU: NVIDIA L4 x 3
- CPU: Intel Xeon Gold 6542Y (with VT-d enabled)
- IOMMU and SR-IOV: Enabled in BIOS
-
Virtual Machine (VM):
- OS: Linux ( Debian 12)
- Hyper-V DDA Configurations completing without errors.
Steps Performed:
-
Check the Current State of the VM
PS C:\Users\Administrator> Get-VM
Output:
Name State CPUUsage(%) MemoryAssigned(M) Uptime Status Version ---- ----- ----------- ----------------- ------ ------ ------- VM_4.5.12_Build Off 0 0 00:00:00 正常稼働中 10.0
-
Set the Automatic Stop Action
PS C:\Users\Administrator> Set-VM -Name VM_4.5.12_Build -AutomaticStopAction TurnOff
-
Enable Guest Controlled Cache Types
PS C:\Users\Administrator> Set-VM -GuestControlledCacheTypes $true -VMName VM_4.5.12_Build
-
Configure Memory-Mapped I/O Space
- Allocated low memory-mapped I/O space:
PS C:\Users\Administrator> Set-VM -LowMemoryMappedIoSpace 3Gb -VMName VM_4.5.12_Build
- Allocated high memory-mapped I/O space:
PS C:\Users\Administrator> Set-VM -HighMemoryMappedIoSpace 33280Mb -VMName VM_4.5.12_Build
- Allocated low memory-mapped I/O space:
-
Dismount the GPU from the Host
The GPU was removed from the host using the following command:PS C:\Users\Administrator> Dismount-VMHostAssignableDevice -LocationPath "PCIROOT(9E)#PCI(0100)#PCI(0000)" -Force
-
Assign the GPU to the VM
The GPU was assigned to the VM using:PS C:\Users\Administrator> Add-VMAssignableDevice -LocationPath "PCIROOT(9E)#PCI(0100)#PCI(0000)" -VMName VM_4.5.12_Build
-
Start the VM
After completing the DDA setup, the VM was started:PS C:\Users\Administrator> Start-VM -Name VM_4.5.12_Build
-
Verify the GPU in the Guest OS
Inside the guest OS, the following command was used to check if the GPU is visible:lspci | grep -i nvidia
-
Started the VM and checked for the GPU in the guest OS using
lspci
.
Observed Issue:
- The GPU does not appear in the output of
lspci
inside the Linux VM, despite all configurations completing without errors. - No errors or warnings were observed during the DDA setup process.
Additional Notes:
- NVIDIA drivers are installed on Windows server host.
- Data Center L4 Driver for Windows 560.94 | Windows Server 2022
Driver Details | NVIDIA