Error when installing windows 8 on vmware ESXi 5 “your pc needs to restart”

When you try to install Windows 8 Preview on VMware ESXi 5 you get an error message that look like this:

Your PC needs to restart.

Please hold down the power button.

Error Code: 0x0000005D






To fix the problem you need to change the ESXi host Bios setting to enable the date execution bit.

Note that in each server the wording of this is different so these are some of the type your server might show:

Data execution bit enable = enable

Data execution prevention = enable

No Execute Memory Protection = enable