A virtual machine will definitely do this. You just need to select the media or ISO containing the software as your boot drive. Note that the VM won't have direct access to your hardware, so tools designed to check hardware like Memtest won't run properly.