An answer to a question that came up on the internal Microsoft discussion group for Virtual Server 2005 amused me. The question was what could you do if you lost the BIOS password for a virtual machine.
In a physical machine, you can often move a jumper on the motherboard or remove the battery to reset the CMOS. Obviously a virtual machine doesn’t have anything physical like this, but the answer posted up was to “remove the virtual battery”. You can’t, although I did look through the .vmc (Virtual Machine Configuration) file for a battery setting 🙂
The actual answer is simply to open the .vmc file in a text editor, and scan down to the <bios> section which will be similar to below:
If you remove the highlighted line above starting “<cmos” and restart your Virtual Machine, the password will be gone (as will any other customisations made to your BIOS). Note that this file is locked while the Virtual Machine is running, and this should also work under Microsoft Virtual PC 2004 as the .VMC file is largely compatible between the two products.