In the UEB Resource based license, is the server license only for physical servers?
No. The number of server licenses applies to any machine (physical or virtual) that needs to have file level and / or bare metal protection or application level protection. So, for example, for virtual machines running on ESXi, each virtual machine will be treated as an individual server with an agent installed. In this case, a server license is required for the virtual machine that is being protected.