In Windows® 7 and Windows® 8, a virtual hard disk can be used as the running operating system on designated hardware without any other parent operating system, virtual machine, or hypervisor. Windows disk-management tools, the DiskPart tool and the Disk Management Microsoft® Management Console (Diskmgmt.msc), can be used to create a VHD file. A supported Windows image (.wim) file can be deployed to the VHD and the .vhd file can be copied to multiple systems. The Windows 8 boot manager can be configured to boot directly into the VHD.

The .vhd file can also be connected to a virtual machine for use with the Hyper-V Role inWindows Server.

Native-boot VHD files are not designed or intended to replace full image deployment on all client or server systems. Enterprise environments already managing and using .vhd files for virtual machine deployment will get the most benefit from the native-boot VHD capabilities. Using the .vhd file as a common image container format for virtual machines and designated hardware simplifies image management and deployment in an enterprise environment.

Using disk-management tools to create and attach a VHD for offline image management. You can attach a VHD by using the Attach vdisk command which activates the VHD so that it appears on the host as a disk drive instead of as a .vhd or .vhdx file.

Mounting reference VHD images on remote shares for image servicing.

Maintaining and deploying a common reference VHD image to execute in either virtual or physical computers.

Configuring VHD files for native boot without requiring a full parent installation.

Configuring a computer to boot multiple local VHD files that contain different application workloads, without requiring separate disk partitions.

The local disk partition that contains the VHD file must have enough free disk space for expanding a dynamic VHD to its maximum size and for the page file created when booting the VHD. The page file is created outside the VHD file, unlike with a virtual machine where the page file is contained inside the VHD.

Windows BitLocker Drive Encryption cannot be used to encrypt the host volume that contains VHD files that are used for native VHD boot, and BitLocker cannot be used on volumes that are contained inside a VHD.

The parent partition of a VHD file cannot be part of a volume snapshot.

An attached VHD cannot be configured as a dynamic disk. A dynamic disk provides features that basic disks do not, such as the ability to create volumes that span multiple disks (spanned and striped volumes), and the ability to create fault-tolerant volumes (mirrored and RAID-5 volumes). All volumes on dynamic disks are known as dynamic volumes.

The following are recommended precautions for using VHDs with native boot:

Use Fixed VHD disk types for production servers, to increase performance and help protect user data. Use Dynamic or Differencing VHD disk types only in non-production environments, such as for development and testing.

When using Dynamic VHDs, store critical application or user data on disk partitions that are outside the VHD file, when it is possible. This reduces the size requirements of the VHD. It also makes it easier to recover application or user data if the VHD image is no longer usable due to a catastrophic system shutdown such as a power outage.

Three types of VHD files can be created by using the disk-management tools:

Fixed hard-disk image. A fixed hard-disk image is a file that is allocated to the size of the virtual disk. For example, if you create a virtual hard disk that is 2 gigabytes (GB) in size, the system will create a host file approximately 2 GB in size. Fixed hard-disk images are recommended for production servers and working with customer data.

Dynamic hard-disk image. A dynamic hard-disk image is a file that is as large as the actual data written to it at any given time. As more data is written, the file dynamically increases in size. For example, the size of a file backing a virtual 2 GB hard disk is initially around 2 megabytes (MB) on the host file system. As data is written to this image, it grows with a maximum size of 2 GB.

Dynamic hard-disk images are recommended for development and testing environments. Dynamic VHD files are smaller, easier to copy, and will expand once mounted.

Differencing hard-disk image. A differencing hard-disk image describes a modification of a parent image. This type of hard-disk image is not independent; it depends on another hard-disk image to be fully functional. The parent hard-disk image can be any of the mentioned hard-disk image types, including another differencing hard-disk image.

The BCDboot tool is used for initializing the BCD store and copying boot-environment files to the system partition during image deployment. BCD files describe boot applications and boot application settings. The objects and elements in the store effectively replace the Boot.ini file. When installing a native-boot VHD on designated hardware, you may have to update to a Windows 8 BCD store. For more information about the BCDboot tool, see BCDboot Command-Line Options.

BCDedit is a command-line tool for managing BCD stores. It can be used for a variety of purposes such as creating new stores, modifying existing stores, and adding boot menu parameters. For more information about the BCDedit tool, see this Microsoft Web site.

DiskPart is a command-line tool in Windows that enables you to manage objects such as disks, partitions, or volumes, by using scripts or direct input at a command prompt. In Windows 8, the DiskPart tool can be used to create, partition, and attach VHDs. For more information about the DiskPart tool, see this Microsoft Web site.

Windows Deployment Services is a network-based installation server that enables corporations to remotely administer and deploy the latest operating system by using Windows PE and Windows Deployment Services server. Windows Deployment Services supports deployment of VHD image files in addition to .wim files. Using Windows Deployment Services automates the network deployment of VHD images for native boot. Windows Deployment Services handles copying the VHD image to a local partition, and configuring the local BCD for native boot from the VHD.