SlideShare a Scribd company logo
2
Most read
Disk2vhd v2.01
01/20/2014 • 2 minutes to read • Contributors
In this article
Introduction
Command Line Usage
By Mark Russinovich
Published: January 21, 2014
Download Disk2vhd (879 KB)
Run now from Sysinternals Live.
Introduction
Disk2vhd is a utility that creates VHD (Virtual Hard Disk - Microsoft's Virtual Machine
disk format) versions of physical disks for use in Microsoft Virtual PC or Microsoft
Hyper-V virtual machines (VMs). The difference between Disk2vhd and other physical-
to-virtual tools is that you can run Disk2vhd on a system that’s online. Disk2vhd uses
Windows' Volume Snapshot capability, introduced in Windows XP, to create consistent
point-in-time snapshots of the volumes you want to include in a conversion. You can
even have Disk2vhd create the VHDs on local volumes, even ones being converted
(though performance is better when the VHD is on a disk different than ones being
converted).
The Disk2vhd user interface lists the volumes present on the system:
Disk2vhd - Windows Sysinternals | Microsoft Docs https://docs.microsoft.com/en-us/sysinternals/downloads/disk2vhd
1 of 4 3/19/2019, 11:08 PM
It will create one VHD for each disk on which selected volumes reside. It preserves the
partitioning information of the disk, but only copies the data contents for volumes on
the disk that are selected. This enables you to capture just system volumes and exclude
data volumes, for example.
Virtual PC supports a maximum virtual disk size of 127GB. If you create a VHD from
a larger disk it will not be accessible from a Virtual PC VM.
To use VHDs produced by Disk2vhd, create a VM with the desired characteristics and
add the VHDs to the VM's configuration as IDE disks. On first boot, a VM booting a
captured copy of Windows will detect the VM's hardware and automatically install
drivers, if present in the image. If the required drivers are not present, install them via
the Virtual PC or Hyper-V integration components. You can also attach to VHDs using
the Windows 7 or Windows Server 2008 R2 Disk Management or Diskpart utilities.
Do not attach to VHDs on the same system on which you created them if you plan
on booting from them. If you do so, Windows will assign the VHD a new disk
signature to avoid a collision with the signature of the VHD’s source disk. Windows
references disks in the boot configuration database (BCD) by disk signature, so
when that happens Windows booted in a VM will fail to locate the boot disk.
Disk2vhd does not support the conversion of volumes with Bitlocker enabled. If you
wish to create a VHD for such a volume, turn off Bitlocker and wait for the volume to
be fully decrypted first.
Disk2vhd - Windows Sysinternals | Microsoft Docs https://docs.microsoft.com/en-us/sysinternals/downloads/disk2vhd
2 of 4 3/19/2019, 11:08 PM
Disk2vhd runs on Windows Vista, Windows Server 2008, and higher, including x64
systems.
Here's a screenshot of a copy of a Windows Server 2008 R2 Hyper-V system running in a
virtual machine on top of the system it was made from:
(click image to zoom)
Command Line Usage
Disk2vhd includes command-line options that enable you to script the creation of VHDs.
Specify the volumes you want included in a snapshot by drive letter (e.g. c:) or use "*" to
include all volumes.
Usage: disk2vhd <[drive: [drive:]...]|[*]> <vhdfile>
Example: disk2vhd * c:vhdsnapshot.vhd
Physical-to-virtual hard drive migration of a Windows installation is a valid function
for customers with Software Assurance and full retail copies of Windows XP,
Windows Vista, and Windows 7. Software Assurance provides users valuable benefits
—please contact Microsoft Corporation for further information. Windows XP,
Windows Vista and Windows 7 installed by Original Equipment Manufacturers
(OEM) using OEM versions of these products may not be transferred to a virtual
hard drive in accordance with Microsoft licensing terms.
Download Disk2vhd (879 KB)
Run now from Sysinternals Live.
Disk2vhd - Windows Sysinternals | Microsoft Docs https://docs.microsoft.com/en-us/sysinternals/downloads/disk2vhd
3 of 4 3/19/2019, 11:08 PM
Disk2vhd - Windows Sysinternals | Microsoft Docs https://docs.microsoft.com/en-us/sysinternals/downloads/disk2vhd
4 of 4 3/19/2019, 11:08 PM

More Related Content

PDF
Native VHD Boot: A Walkthrough of Common Scenarios
PPTX
2 Boot To Vhd
PDF
Linuxdiskmanagementcommands
PDF
Iscsi
PDF
Booting an image as a forensically sound vm in virtual box
PPT
Windows 7 configuration
PPTX
Mounting virtual hard drives
PDF
Virtualbox
Native VHD Boot: A Walkthrough of Common Scenarios
2 Boot To Vhd
Linuxdiskmanagementcommands
Iscsi
Booting an image as a forensically sound vm in virtual box
Windows 7 configuration
Mounting virtual hard drives
Virtualbox

What's hot (20)

PDF
Virtual box
DOCX
mirroring harddrive
ODP
Virtual Box Presentation
PPT
4.4 manage disk quotas
DOCX
การติดตั้งเครือข่ายภายในบ้าน 11
PPTX
2 27-2018-partedpt2
PDF
How to boot a VM form a Forensic Image
PPTX
How to make bootable usb pendrive for windows[7 8 8
PDF
Needle In An Encrypted Haystack: Forensics in a hardened environment (with Fu...
PPTX
Docker
PPTX
PPTX
Upgrade laptopshdd
PDF
Flourish11
DOCX
Hard disk ultra
PPTX
MVUG Webcast Slide:- From Zero to Hero on Hyper V R2- Part 2
PPT
An overview of OpenVZ virtualization technology
DOCX
Wd sandisk-ssd-dashboard
PPT
Raid designs in Qsan Storage
DOCX
Extend rootfile system Oracle Vmware
PDF
Azure vm resizing the os disk
Virtual box
mirroring harddrive
Virtual Box Presentation
4.4 manage disk quotas
การติดตั้งเครือข่ายภายในบ้าน 11
2 27-2018-partedpt2
How to boot a VM form a Forensic Image
How to make bootable usb pendrive for windows[7 8 8
Needle In An Encrypted Haystack: Forensics in a hardened environment (with Fu...
Docker
Upgrade laptopshdd
Flourish11
Hard disk ultra
MVUG Webcast Slide:- From Zero to Hero on Hyper V R2- Part 2
An overview of OpenVZ virtualization technology
Wd sandisk-ssd-dashboard
Raid designs in Qsan Storage
Extend rootfile system Oracle Vmware
Azure vm resizing the os disk
Ad

Similar to SysInternals Disk2vhd - docs.pdf (20)

PPTX
Upgrading and deploying Windows 7
PPTX
Microsoft Windows Server 2012 R2 Hyper V server overview
PPTX
Virtual Hard disk
PDF
Windows server 2012 r2 Hyper-v Component architecture
PPTX
Hyper-V overview and building test network - harold.wong
PPTX
4. install and configure hyper v
DOCX
Dual boot with a vhd final
PPTX
Practical Implementation of Virtual Machine
PPTX
What's new in Windows Server 2012 R2
PDF
The Holy Grail of Deployment
PDF
Virtual dj 7 getting started
PDF
Virtualization workshop - part 1
PPT
Intrack14dec tips tricks_clean
PPTX
Storage and hyper v - the choices you can make and the things you need to kno...
PDF
Windows server 2012 r2 hyper v component architecture ga
PDF
Windows Server 2012 R2 Hyper V Component Architecture
PDF
Virtual dj 7 getting started
PDF
Virtual dj 7 getting started
PDF
Windows 2008 R2 Virtualization
PPT
Tech X Virtualization Tips
Upgrading and deploying Windows 7
Microsoft Windows Server 2012 R2 Hyper V server overview
Virtual Hard disk
Windows server 2012 r2 Hyper-v Component architecture
Hyper-V overview and building test network - harold.wong
4. install and configure hyper v
Dual boot with a vhd final
Practical Implementation of Virtual Machine
What's new in Windows Server 2012 R2
The Holy Grail of Deployment
Virtual dj 7 getting started
Virtualization workshop - part 1
Intrack14dec tips tricks_clean
Storage and hyper v - the choices you can make and the things you need to kno...
Windows server 2012 r2 hyper v component architecture ga
Windows Server 2012 R2 Hyper V Component Architecture
Virtual dj 7 getting started
Virtual dj 7 getting started
Windows 2008 R2 Virtualization
Tech X Virtualization Tips
Ad

More from htdvul (10)

PPTX
Agile Enterprise architecture.pptx
PPTX
CON 1300V Webinar Slides v1.pptx
PDF
PMOs Deliver Value.pdf
PDF
asmjit - Complete x86 x64 JIT Assembler for C++.pdf
PDF
Team drive get free storage
PDF
American civil war museum va
PDF
Ap08 compsci coursedesc
PDF
Leadtools evaluation downloads
KEY
Oscon anatomy of_os_cloud_ecosystem
KEY
Linkedinmobile 111011223417-phpapp02
Agile Enterprise architecture.pptx
CON 1300V Webinar Slides v1.pptx
PMOs Deliver Value.pdf
asmjit - Complete x86 x64 JIT Assembler for C++.pdf
Team drive get free storage
American civil war museum va
Ap08 compsci coursedesc
Leadtools evaluation downloads
Oscon anatomy of_os_cloud_ecosystem
Linkedinmobile 111011223417-phpapp02

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Machine learning based COVID-19 study performance prediction
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Getting Started with Data Integration: FME Form 101
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
Teaching material agriculture food technology
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
A Presentation on Artificial Intelligence
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Tartificialntelligence_presentation.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
NewMind AI Weekly Chronicles - August'25-Week II
20250228 LYD VKU AI Blended-Learning.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Machine learning based COVID-19 study performance prediction
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Unlocking AI with Model Context Protocol (MCP)
Getting Started with Data Integration: FME Form 101
Advanced methodologies resolving dimensionality complications for autism neur...
Teaching material agriculture food technology
Spectral efficient network and resource selection model in 5G networks
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
A Presentation on Artificial Intelligence
Building Integrated photovoltaic BIPV_UPV.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
A comparative analysis of optical character recognition models for extracting...
Tartificialntelligence_presentation.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Encapsulation_ Review paper, used for researhc scholars
Dropbox Q2 2025 Financial Results & Investor Presentation
NewMind AI Weekly Chronicles - August'25-Week II

SysInternals Disk2vhd - docs.pdf

  • 1. Disk2vhd v2.01 01/20/2014 • 2 minutes to read • Contributors In this article Introduction Command Line Usage By Mark Russinovich Published: January 21, 2014 Download Disk2vhd (879 KB) Run now from Sysinternals Live. Introduction Disk2vhd is a utility that creates VHD (Virtual Hard Disk - Microsoft's Virtual Machine disk format) versions of physical disks for use in Microsoft Virtual PC or Microsoft Hyper-V virtual machines (VMs). The difference between Disk2vhd and other physical- to-virtual tools is that you can run Disk2vhd on a system that’s online. Disk2vhd uses Windows' Volume Snapshot capability, introduced in Windows XP, to create consistent point-in-time snapshots of the volumes you want to include in a conversion. You can even have Disk2vhd create the VHDs on local volumes, even ones being converted (though performance is better when the VHD is on a disk different than ones being converted). The Disk2vhd user interface lists the volumes present on the system: Disk2vhd - Windows Sysinternals | Microsoft Docs https://docs.microsoft.com/en-us/sysinternals/downloads/disk2vhd 1 of 4 3/19/2019, 11:08 PM
  • 2. It will create one VHD for each disk on which selected volumes reside. It preserves the partitioning information of the disk, but only copies the data contents for volumes on the disk that are selected. This enables you to capture just system volumes and exclude data volumes, for example. Virtual PC supports a maximum virtual disk size of 127GB. If you create a VHD from a larger disk it will not be accessible from a Virtual PC VM. To use VHDs produced by Disk2vhd, create a VM with the desired characteristics and add the VHDs to the VM's configuration as IDE disks. On first boot, a VM booting a captured copy of Windows will detect the VM's hardware and automatically install drivers, if present in the image. If the required drivers are not present, install them via the Virtual PC or Hyper-V integration components. You can also attach to VHDs using the Windows 7 or Windows Server 2008 R2 Disk Management or Diskpart utilities. Do not attach to VHDs on the same system on which you created them if you plan on booting from them. If you do so, Windows will assign the VHD a new disk signature to avoid a collision with the signature of the VHD’s source disk. Windows references disks in the boot configuration database (BCD) by disk signature, so when that happens Windows booted in a VM will fail to locate the boot disk. Disk2vhd does not support the conversion of volumes with Bitlocker enabled. If you wish to create a VHD for such a volume, turn off Bitlocker and wait for the volume to be fully decrypted first. Disk2vhd - Windows Sysinternals | Microsoft Docs https://docs.microsoft.com/en-us/sysinternals/downloads/disk2vhd 2 of 4 3/19/2019, 11:08 PM
  • 3. Disk2vhd runs on Windows Vista, Windows Server 2008, and higher, including x64 systems. Here's a screenshot of a copy of a Windows Server 2008 R2 Hyper-V system running in a virtual machine on top of the system it was made from: (click image to zoom) Command Line Usage Disk2vhd includes command-line options that enable you to script the creation of VHDs. Specify the volumes you want included in a snapshot by drive letter (e.g. c:) or use "*" to include all volumes. Usage: disk2vhd <[drive: [drive:]...]|[*]> <vhdfile> Example: disk2vhd * c:vhdsnapshot.vhd Physical-to-virtual hard drive migration of a Windows installation is a valid function for customers with Software Assurance and full retail copies of Windows XP, Windows Vista, and Windows 7. Software Assurance provides users valuable benefits —please contact Microsoft Corporation for further information. Windows XP, Windows Vista and Windows 7 installed by Original Equipment Manufacturers (OEM) using OEM versions of these products may not be transferred to a virtual hard drive in accordance with Microsoft licensing terms. Download Disk2vhd (879 KB) Run now from Sysinternals Live. Disk2vhd - Windows Sysinternals | Microsoft Docs https://docs.microsoft.com/en-us/sysinternals/downloads/disk2vhd 3 of 4 3/19/2019, 11:08 PM
  • 4. Disk2vhd - Windows Sysinternals | Microsoft Docs https://docs.microsoft.com/en-us/sysinternals/downloads/disk2vhd 4 of 4 3/19/2019, 11:08 PM