Sata SSD Passthrough?

Hello again.

I’m wanting to trying an experiment, and I’m not sure where to begin. I would like to create a Windows 10 VM with GPU passthrough. I found the instructions for that, and I’m going to try it, but I was curious about adding another piece of physical hardware.

I have a SATA SSD that already has Windows 10 installed and has the drivers for the card I’m going to passthrough. It seems it would be simpler to attach the SATA SSD to the VM instead of a virtual disk and use that as the VM’s boot volume. I haven’t been able to find a way to do that, however. Not sure if this is possible within LXD or if I have to take another approach with QEMU commands.

Any thoughts on this would be greatly appreciated.

Something like:

  • lxc init win10 --empty --vm
  • lxc config device add win10 ssd disk source=/dev/sdX boot.priority=10

That will pass /dev/sdX as a disk to the VM and configure the boot order to boot from it.
However note that for this to work, you’ll need that drive to at least:

  • Have all the virtio drivers installed
  • Be formatted using GPT and setup for UEFI boot

Thank you, I will try that. I don’t know why but after you replied I was then able to find the full list of device types available for lxc config device add. Thank you again for your help.