To connect a FC tape library to a VM, you'll need to use Direct Path I/O to pass through the FC ports directly to the VM. This makes the tape library appear as if it's directly attached to the VM. VMware's documentation provides a guide on setting up pass-through devices, which is applicable up to vSphere 7.
While some might consider NPIV, pass-through is the more straightforward and commonly successful approach for this task.