Skip to content

Update attach-gpu-to-linux-vm.md #3379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions azure-stack/hci/manage/attach-gpu-to-linux-vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,27 @@ This document assumes you have the Azure Stack HCI cluster deployed and VMs inst

:::image type="content" source="media/attach-gpu-to-linux-vm/pciroot.png" alt-text="Location Path Screenshot." lightbox="media/attach-gpu-to-linux-vm/pciroot.png":::

7. Open Windows PowerShell with elevated privileges and execute the `Dismount-VMHostAssignableDevice` cmdlet to dismount the GPU device for DDA to VM. Replace the *LocationPath* value with the value for your device obtained in step 6.
7. Core OS doesnt have MMC components and hence opening device manager is not possible, use command line to obtain the location information as explained below.
```PowerShell
#Get the instance ID for NVIDIA Device from the list of devices printed using the command below.
pnputil /enum-devices /class display

#Use the Instance ID as shown in the example command below:-
pnputil /enum-devices /instanceid "PCI\VEN_10DE&DEV_1CBA&SUBSYS_225F17AA&REV_A1\4&357120c5&0&0008" /properties | findstr -i pciroot

#Alternatively, if you do not wish to filter for this string, remove the | findstr -i pciroot to print all propertie.
pnputil /enum-devices /instanceid "PCI\VEN_10DE&DEV_1CBA&SUBSYS_225F17AA&REV_A1\4&357120c5&0&0008" /properties

#LocationPaths can be found under one of the sections shown in example excerpt below.
DEVPKEY_Device_LocationPaths [String List]:
PCIROOT(0)#PCI(0100)#PCI(0000)
ACPI(_SB_)#ACPI(PCI0)#ACPI(PEG0)#ACPI(PEGP)
```
8. Open Windows PowerShell with elevated privileges and execute the `Dismount-VMHostAssignableDevice` cmdlet to dismount the GPU device for DDA to VM. Replace the *LocationPath* value with the value for your device obtained in step 6.
```PowerShell
Dismount-VMHostAssignableDevice -LocationPath "PCIROOT(16)#PCI(0000)#PCI(0000)" -force
```
8. Confirm the device is listed under system devices in **Device Manager** as Dismounted.
9. Confirm the device is listed under system devices in **Device Manager** as Dismounted.

:::image type="content" source="media/attach-gpu-to-linux-vm/dismounted.png" alt-text="Dismounted Device Screenshot." lightbox="media/attach-gpu-to-linux-vm/dismounted.png":::

Expand Down