Testing out the Hyper-V role within Server 2022 in the lab, with it I've got a pair of storage spaces mirrored SSDs for VM storage but I'm looking to pass-through a SAS2008 device to a VM and hitting a wall.
---------------------------------------------------------------------
$pnpdevs = Get-PnpDevice | where {($_.Class -eq "SCSIAdapter") -and ($_.FriendlyName -like "LSI*")}
Disable-PnpDevice -InstanceId $pnpdevs.PNPDeviceID
Set-VM -HighMemoryMappedIoSpace 6Gb -VMName $myvm
Set-VM -GuestControlledCacheTypes $true -VMName $myvm
Add-VMAssignableDevice -LocationPath "PCIROOT(0)#PCI(0300)#PCI(0000)" -VMName $myvm
-------------------------------------------------------------------
Add-VMAssignableDevice : The specified device 'PCIROOT(0)#PCI(0300)#PCI(0000)' was not found on server 'hyper-1'.
At line:1 char:1
+ Add-VMAssignableDevice -LocationPath "PCIROOT(0)#PCI(0300)#PCI(0000)" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: ) [Add-VMAssignableDevice], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.AddVmAssignableDevice
Is this even possible within Hyper-V?
---------------------------------------------------------------------
$pnpdevs = Get-PnpDevice | where {($_.Class -eq "SCSIAdapter") -and ($_.FriendlyName -like "LSI*")}
Disable-PnpDevice -InstanceId $pnpdevs.PNPDeviceID
Set-VM -HighMemoryMappedIoSpace 6Gb -VMName $myvm
Set-VM -GuestControlledCacheTypes $true -VMName $myvm
Add-VMAssignableDevice -LocationPath "PCIROOT(0)#PCI(0300)#PCI(0000)" -VMName $myvm
-------------------------------------------------------------------
Add-VMAssignableDevice : The specified device 'PCIROOT(0)#PCI(0300)#PCI(0000)' was not found on server 'hyper-1'.
At line:1 char:1
+ Add-VMAssignableDevice -LocationPath "PCIROOT(0)#PCI(0300)#PCI(0000)" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: ) [Add-VMAssignableDevice], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.AddVmAssignableDevice
Is this even possible within Hyper-V?