Is there anyway to prevent malicious virtual machines from crashing host machine?

I would like to know if there is anyway to ensure security of the host machine while hosting potentially malicious virtual machines. The host machine should never crash or be compromised no matter what the virtual machine does – is this possible if configured correctly?