|
3#
楼主 |
发表于 2011-2-24 11:07:29
|
只看该作者
还有一个博客上也有相关的方法
http://www.markwilson.co.uk/blog ... ows-xp-computer.htm
To achieve this, we created a new Windows 7 or Windows Server 2008 R2 bootloader, and “chained” the original Windows XP bootloader from it. At boot, this allows us to select a Native Boot from VHD into, for example, a 64-bit Windows Server 2008 R2 Enterprise build, or to select the chained bootloader which allows us to boot into the corporate Windows XP build.
Of course, you’ll need to create your VHD-contained Windows 7 or Windows Server 2008 R2 OS build and put it to your local disk, and this post doesn’t go into that detail, but once you have done that, the steps below will allow you to create a new bootloader and chain your existing Windows XP corporate build from it.
To begin, boot your computer using your Windows 7 or Windows Server 2008 R2 installation media.
When you reach the Install Windows screen, select your preferences in the Language to install, Time and currency format, and Keyboard or input method boxes, and then click Next.
Do not click Install now. Instead, click Repair your computer.
The search for supported operating systems will fail, and the System Recovery Options dialog box appears with the Restore your computer using a system image that you created earlier option selected. Click Next.
The Re-image your computer tool will fail to find a system image and will display a dialog informing you of this. Click Cancel on the dialog, and then Cancel again on the main tool window.
The System Recovery Options menu appears. Click Command Prompt.
To write the new Windows 7 or Windows Server 2008 R2 bootloader:
BOOTSECT /NT60 C: /FORCE /MBR
To create a BCD store from the Windows VHD:
DISKPART
SELECT VDISK FILE=C:\BOOTVHDS\W2K8R2ENTX64.VHD
ATTACH VDISK
ASSIGN LETTER=X
EXIT
BCDBOOT X:\WINDOWS /S C:
Set up the VHD native boot:
BCDEDIT /SET {default} DEVICE VHD=[LOCATE]\BOOTVHDS\W2K8R2ENTX64.VHD
BCDEDIT /SET {default} OSDEVICE VHD=[LOCATE]\BOOTVHDS\W2K8R2ENTX64.VHD
BCDEDIT /SET {default} DETECTHAL ON
Set up the legacy boot:
BCDEDIT /CREATE {ntldr} /d "Chain Legacy Bootloader"
BCDEDIT /SET {ntldr} DEVICE PARTITION=C:
BCDEDIT /SET {ntldr} PATH \ntldr
BCDEDIT /DISPLAYORDER {ntldr} -ADDLAST
To put things back to normal, should you ever need to:
BOOTSECT /NT52 C: /FORCE /MBR |
|