Switching from BIOS/Legacy installation to EFi will not work just like that.
Just changing the VM settings is not enough. Actually you will end up doing more work than simply create a new VM and install it. So, create a new VM, enable EFI and do the install.