By Mark Russinovich
Whatever ISO you use, note the Index number for the edition you wish to install. This example shows a Windows 10 Pro installation from a WIM-based Windows Insider ISO to the VHD using the. The way in this guide can only be done from Windows 7! And you need to have WAIK (Windows Automated Installation Kit)installed. And yes there are more ways to do this. First unpack a version from before the build you have as.VHD (In this guide i will take build 7229 as an example) to a folder. Create an ISO image in Windows 7/8/10. In Windows 7, you can use built-in feature Backup and Restore to create image backup of your Windows 7 of hard drive. You can restore it or mount it as a virtual drive. However, it is VHD formatted instead of ISO.
Published: January 21, 2014
Download Disk2vhd(879 KB)
Run now from Sysinternals Live.
Disk2vhd is a utility that creates VHD (Virtual Hard Disk - Microsoft'sVirtual Machine disk format) versions of physical disks for use inMicrosoft Virtual PC or Microsoft Hyper-V virtual machines (VMs). Thedifference between Disk2vhd and other physical-to-virtual tools is thatyou can run Disk2vhd on a system that’s online. Disk2vhd uses Windows'Volume Snapshot capability, introduced in Windows XP, to createconsistent point-in-time snapshots of the volumes you want to include ina conversion. You can even have Disk2vhd create the VHDs on localvolumes, even ones being converted (though performance is better whenthe VHD is on a disk different than ones being converted).
The Disk2vhd user interface lists the volumes present on the system:
It will create one VHD for each disk on which selected volumes reside.It preserves the partitioning information of the disk, but only copiesthe data contents for volumes on the disk that are selected. Thisenables you to capture just system volumes and exclude data volumes, forexample.
Virtual PC supports a maximum virtual disk size of 127GB. Ifyou create a VHD from a larger disk it will not be accessible from aVirtual PC VM.
To use VHDs produced by Disk2vhd, create a VM with the desiredcharacteristics 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 theVM's hardware and automatically install drivers, if present in theimage. If the required drivers are not present, install them via theVirtual PC or Hyper-V integration components. You can also attach toVHDs using the Windows 7 or Windows Server 2008 R2 Disk Management orDiskpart utilities.
Do not attach to VHDs on the same system on which you createdthem if you plan on booting from them. If you do so, Windows willassign the VHD a new disk signature to avoid a collision with thesignature of the VHD’s source disk. Windows references disks in theboot configuration database (BCD) by disk signature, so when thathappens 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 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 systemrunning in a virtual machine on top of the system it was made from:
(click image to zoom)
Disk2vhd includes command-line options that enable you to script thecreation of VHDs. Specify the volumes you want included in a snapshot bydrive 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 Windowsinstallation is a valid function for customers with Software Assuranceand full retail copies of Windows XP, Windows Vista, and Windows 7.Software Assurance provides users valuable benefits—please contactMicrosoft Corporation for further information. Windows XP, WindowsVista and Windows 7 installed by Original Equipment Manufacturers(OEM) using OEM versions of these products may not be transferred to avirtual hard drive in accordance with Microsoft licensing terms.
Download Disk2vhd(879 KB)Staad pro student download.
Run now from Sysinternals Live.
If you frequently use VirtualBox , one of the best free virtual machine software, then you should know how to convert an ISO file into a VirtualBox hard disk (VHD). The process of converting is also more difficult than booting Virtual from the ISO file, instead of using an xx.iso file and then converting it to a Virtual disk. It's very helpful, especially when you want to customize the image file or use it for testing. In this guide today, we'll walk you through how to convert a bootable ISO file into VHD or VMDK using Command line. This tutorial will be both for Mac and Windows computers.
ISO file is the most widely-used format for OS installation. While you can still use the ISO file to directly start up any OS on virtual disk image like VirtualBox, VMWare, if you do not want to install ISO file, converting it to VDI format (Virtual desktop infrastructure) will be the best idea. You can consider the pre conversion way to directly convert an ISO file into an VHD/ VMDK using VirtualBox. You can convert:
After the conversion, you can directly boot the operating system from VHD/VMDK . Here is how to use Command line tool on Windows 10 and MacOS. It's also the same for Linux OS.
Before proceeding, make sure you have the VirtualBox software already installed on your computer. It can be downloaded for free since it's open source tool. We'll get started with Windows computers by converting ISO file to VMDK.
Step 1: Open Command Prompt (Powershell) on your Windows computer. Run it with administrator
Step 2: Go to the VirtualBox directory in C:Program FilesOracleVirtualBox. From there, open cmd and run the following command:
cd Program FilesOracleVirtualBox
Step 3: In the VirtualBox directory, run the command to convert ISO to VMDK:
VBoxManage convertfromraw [file.iso] [file.VMDK]
You should replace the filename.ISO with the name of the IOS file, along with file patch
Step 4: In our circumstance, the ISO file is on the Desktop, and the name of the ISO file was system.iso. You can follow the command below:
VBoxManage Convertfromraw C:USersJackDesktopsystem.iso
C:UsersJackDesktopsystem.vmdk
The file path in the command above is the file path where the ISO file is. You can use Windows Explorer to find the patch from the Address bar.
Similar to converting ISO to VMDK, changing it into VHD is pretty simple.
Step 1: Run Command prompt (cmd) on your computer with administrator.
Step 2: Switch to the VirtualBox directory on your Windows computer. /wads-wii-download.html.
Step 3: Once done, enter the following command:
VirtualBox convertfromraw file.iso file.vhd
Step 4: Then, continue to enter the command above:
VBoxManage Convertfromraw C:USersJackDesktopsystem.iso
C:USersJackDesktopsystem.vhd
The only change here is that instead of writing VMDK, you enter VHD for replacement.
Converting a bootable ISO into a Virtual disk VHD/VMDK on Mac is almost the same with Windows. All you need is to open Terminal on your Mac and run commands. However, as mentioned earlier, you need to have VirtualBox app already installed on your Mac. Otherwise, you are unable to convert the ISO file to VHD/VMDK.
Step 1: Open Terminal on Mac by clicking on Finder > Applications > Favorites > Disk Utilities. You can also open it from the Spotlight.
Step 2: Type in the following command on your Mac and hit Enter:
VBoxManage convertfromraw DiskImage.iso VirtualDisk.vhd
For instance, if you want to convert the file into a virtualbox VHD file, simply enter the command below:
VBoxManage convertfromraw ~/Downloads/system.iso ~/VMs/system.vhd
Step 3: All the conversion process will take a few minutes, depending on the hardware of your Mac. Once again, you can use those commands on MacOS, Windows, Linux OS with typing in the ‘VBoxManage' command first.
Remember to capitalize the 'VBoxManage' and use correct capitalization to avoid 'not found' result after typing in the command since the problem comes from syntax error.
Another useful trick is to prepare a live disk, or create an ISO image with the help of command line. After you can convert it into VHD and then load it into VirtualBox. Alternatively, you can take the existing ISO files and then convert it into a VHD file, which is better for system admins.
That's how to convert a bootable ISO file to Virtual disk VHD/VMDK. All the entire process is pretty simple and you can do it on your own. You might feel the commands are complicated, but in fact, you simply copy them into cmd/Terminal and make some changes. Do you know other methods to convert a bootable ISO file or a disk image into a VirtualBox VHD/VMDK? Let's know in the comment below.