If you don't use PCI passthrough to passthough the NICs into the VM it would be useless to install the Mellanox drivers inside the VM, as the VM then only sees the virtual E1000 or virtual virtio NICs. VMs can't make use of physical hardware that isn't passed through, so the VM only needs the drivers of the virtual devices (so E1000 or virtio drivers). I wouldn`t install the Mellanox drivers inside the VM. Just more bloatware and confusing when administrating it.