I would need to pass a tape drive to a vm. I found out I could use the /dev/sgX similarly to disks but I could not figure out to get a more persisting name for the device as /dev/sgX names can change across reboots.
You can use lsscsi|grep -i tape|awk ‘{print $NF}’ or lsscsi -g|grep -i tape|awk ‘{print $NF}’ to find out which is your tape and auto pass the device to your vm.