Process 'bcdedit.exe' returned a failure exit code!

  • 7010443
  • 11-Jul-2012
  • 11-Jul-2012

Environment

PlateSpin Migrate 9.1

Situation

When attempting to migrate a Windows 2008 R2 workload the job fails with the following error code:

Process 'bcdedit.exe' returned a failure exit code!

Investigation into the "Preparing Target Machine to Boot Operating System" step shows data similar to the following, just prior to the final error message:

Calling bcdedit.exe /set {default} device partition=E:
Output:The boot configuration data store could not be opened. The system cannot find the file specified.
Calling bcdedit.exe /store E:\Boot\bcd /set {default} device partition=E:
Output:The boot configuration data store could not be opened. The system cannot find the file specified.

Resolution

In order to resolve this issue, the source workload's XML must be modified:

1. Switch to the Servers View in the Migrate client
2. Right-click on the source workload and select Export
3. Make a copy of the resulting XML
4. Open either one of the XML files with Notepad
5. Locate the <machines:partitions> tag, near the bottom of the file.  Data might appear similar to the following example:

<machines:partitions>
 <machines:partition>
  <machines:name>\disk0\partition0\</machines:name>
  <machines:size>90445824</machines:size>
  <machines:startingOffset>32256</machines:startingOffset>
  <machines:active>false</machines:active>
  <machines:partitionType>222</machines:partitionType>
  <machines:primary>true</machines:primary>
 </machines:partition>
 <machines:partition>
  <machines:name>\disk0\partition1\</machines:name>
  <machines:size>2155023360</machines:size>
  <machines:startingOffset>90478080</machines:startingOffset>
  <machines:active>false</machines:active>
  <machines:partitionType>7</machines:partitionType>
  <machines:primary>true</machines:primary>
 </machines:partition>
 <machines:partition>
  <machines:name>\disk0\partition2\</machines:name>
  <machines:size>64424509440</machines:size>
  <machines:startingOffset>2246049792</machines:startingOffset>
  <machines:active>true</machines:active>
  <machines:partitionType>7</machines:partitionType>
  <machines:primary>true</machines:primary>
 </machines:partition>
 <machines:partition>
  <machines:name>\disk0\partition3\</machines:name>
  <machines:size>79490449408</machines:size>
  <machines:startingOffset>66671607808</machines:startingOffset>
  <machines:active>false</machines:active>
  <machines:partitionType>7</machines:partitionType>
  <machines:primary>false</machines:primary>
 </machines:partition>
</machines:partitions>

6. Determine which partition currently has the <machines:active> value set to true (in the example above, \disk0\partition2 is the C: drive).  Change that value to false
7. Locate the System Reserved Boot Partition (in the example above, this is \disk0\partition1).  Change the <machines:active> value to true
8. Save the file
9. In the Migrate client go to File -> Import Machines
10. Select the modified XML.  When asked to overwrite, click Yes
11. Run the migration again