Walkthrough: Deploy a Virtual Hard Disk for Native Boot

Letzte Aktualisierung: April 2009

Betrifft: Windows 7

This walkthrough describes how to create and configure a virtual hard disk (VHD) running Windows® 7 for native boot. A native-boot VHD is a virtual hard disk that can be used as the running operating system on designated hardware without any other parent operating system. This is in contrast to a scenario where a VHD is connected to a virtual machine on a computer with a parent operating system.

In this release, VHDs can be applied to computers that have no other installations of Windows, for usage as a native-boot VHD, without a virtual machine or hypervisor. (A hypervisor is a layer of software below the operating system that runs virtual computers.) This allows for greater flexibility in workload distribution in that a single set of tools can be used to manage images for virtual machines and designated hardware.

Hinweis

This walkthrough describes how to deploy the VHD to a computer with no other installations of Windows. For more information about deploying multiple VHDs with native-boot on a single computer, or deploying VHDs on computers with a parent operating system, see Add a Native-Boot Virtual Hard Disk to the Boot Menu.

Use a generalized Windows 7 image. A specialized image is customized to a specific computer, while a generalized image can be deployed across many computers. For more information about the specialize and generalize configuration passes, see the Windows Setup Configuration Passes topic in the Windows Automated Installation Kit für Windows 7 Beta.

A destination computer on which to install the VHD. This computer requires 30 gigabytes (GB) or more of free disk space. You can install the VHD to a computer already running other operating system installations, or as the only operating system on a computer.

Step 1: Create a VHD

On the technician computer, use the Diskpart tool to create, attach, partition, and format a new virtual hard disk. You can attach a VHD by using the Attach vdisk command which adds the .vhd file as a disk to the storage controller on the host. This virtual disk will appear as the R: drive at the end of this procedure. The Detach command will stop this virtual disk from appearing on the host.

Step 3: Clean and partition the destination computer

Boot the destination computer with your bootable Windows PE media.

Clean the hard disk using the DiskPart tool.

Vorsicht

Running this command will erase all information on the computer. If you are deploying a VHD and want to maintain an existing native-boot VHD deployment or running operating system on the destination computer, do not run this command. See Add a Native-Boot Virtual Hard Disk to the Boot Menu for more information.

Use the BCDboot tool, located in the \System32 directory of the Windows 7 VHD or in a Windows® 7 Windows PE media, to copy the boot-environment files from the \Windows directory in the VHD to the system partition. The BCDboot tool will create the BCD configuration to boot from the VHD. For more information about the BCDboot tool, see the BCDboot Command-Line Options topic in the Windows Automated Installation Kit für Windows 7 Beta.