Hello, as suggested by a Mod, I'll make a new thread:
I want to pass a single Sata port on my internal MOBO Sata controller to a VM. I've seen multiple threads on multiple places about passing through unique unassigned Hard Drives to a VM (through the unique HD UUID) and a specific threat about passing a SATA DVD or BD-Rom to a VM by assigning it to a SCSI controller and passing one of the devices through https://forums.unraid.net/topic/62070-pass-through-a-host-dvd-drive/. This last one would be ideal for me, but i'm having some issues.
Here's how I'm doing it:
Every hard drive I plug on that specific port always has the same SCSI address: It's address 2:0:0:0 on the "System Devices" pane in Unraid:
[2:0:0:0] disk ATA SAMSUNG HD250HJ 0-06 /dev/sdc 250GB
My current configuration leads me to believe that the VM is, in fact, looking at the device, because if I don't have a device on that port, the VM will simply say that it can't find such a device on that address, meaning it can't pass it through. So far so good. My issue is: Windows doesn't see it as a valid SCSI Device. It shows it in Device Manager, but it can't find drivers for it. Trying to install the SCSI drivers from the VirtIO DVD drive is also useless, it says it can't find any.
Here's my Current Windows 10 VM configuration file:
<hostdev mode='subsystem' type='scsi' managed='no'>
<source>
<adapter name='scsi_host2'/>
<address bus='0' target='0' unit='0'/>
</source>
<readonly/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</hostdev>
Multiple people in the thread I posted earlier mention that this works, but some say it just behaves as I mentioned: Windows 10 just says "unknown SCSI device" on device manager and I can't install VirtIO drivers on it. The VM is seeing the device (because if I remove it, the VM doesn't start). Any idea on the configuration file that would allow windows to identify the controller, or allow me to install the VirtIO drivers?
Just some clarification:
Mounting the hard drive directly through it's UUID wouldn't work: This is an external SATA dock on the case and I want to use it to service computers (mostly to make Macrium Reflect images of hard drives before I can service them). I wouldn't want to manually set the UUID every time I plug in a new hard drive
Passing through a third external controller is also not viable: There's not any PciExpress slots free on the motherboard AND my CPU doesn't support VT-x, thus I can't IOMMU it to the VM.
This *should* work, but I don't understand KVM's configuration enough to understand why the drivers are not being accepted (and I read some documentation on KVM).
Alternatively, a Docker Hard Drive imaging solution would suffice (although I still prefer using Macrium Reflect).
Any insights would be appreciated. Thanks for the help!