Hello Julia,
thanks for you question. This depends on the virtualization environment.
- Using VMWare Workstation Pro you can change setting in the properties of the VM “Options/ Advanced”. Please see the following screenshot as well:

- Using VMWare Workstation Player the settings needs to be adapted in the .vmx of your VM directly. Just add the following line
firmware = "efi"
to the very end of the “.vmx” file.