I had built a SQL Server Hyper-V virtual machine on my laptop which has Windows Server 2008 R2 with Service Pack 1. I deployed the VM on my client’s machine with Windows Server 2008 R2 (no SP1). I ran the VM and got the following error:
It wasn’t immediately apparent that Service Pack 1 for Windows Server 2008 R2 was a pre-requisite since in earlier cases my VMs, that I built on SP1, did run on Windows Server 2008 R2 machines without SP1.
This error that you see above is a common error that pops up due to multiple reasons. I check into Hyper-V error logs and found the actual error 3040 which said:
<virtual machine name> Failed to set/change partition property
Upon investigating and reading this URL: http://support.microsoft.com/kb/2517374, I realized that the client machine’s latest hardware supports Intel’s VX feature which is not supported by Windows Server 2008 R2. Thus, I need to apply Service Pack 1 to my client’s PC, which I did and things worked fine.
Lesson to be learnt: As usual, the immediate error messages are less meaningful and very common, so dig into error logs to find the root cause of an issue.