Microsoft WindowsMicrosoft Windows Server

How to Install Dual Boot Windows Using VHD Drive

In this article, I’m going to show you how to install dual boot windows using VHD drive.
There are a lot of methods to do this and I am just going to show you the most user-friendly method, to create a blank VHD, a PowerShell script to expand the.

Instead of dividing your hard disk into multiple partitions typically required for dual booting multiple operating systems, booting to a VHD permit you to keep your primary OS untouched and contrary boot to a VHD file on the same file system.

Even if you have only 1 hard drive in your PC.

Note: I am facing windows OS problems, my Windows server OS is crash, not showing server desktop. I have very important data on my server HDD; I have no other option to copy my data because I don’t have any USB enclosure to connect my SAS hard disk to copy my data. It is called DUAL BOOT config.
You can download Windows Server 2019 evaluation from Microsoft

Install Dual Boot Windows Using VHD

Insert Windows Server DVD and boot your PC/Computer/Server from the DVD. Boot to the DVD/USB ISO (you might have to go into PC’s bios. Select Next.

windows server 2019 setup

Choose Install Now.

Repair your computer

Select OS and then click next.

Optionally, enter your product key and then Next or click I don’t have a product key

windows setup operating system

Accept Terms of Use and then click next.

Applicable notices and license terms

Select Custom Install.

Custom: install windows only

SHIFT-F10 (to open a command prompt window).

windows setup partitions

Find installation drive (Dir C:, D:, E:, etc)
Create a Folder if you like (eg. WIN2019).

Diskpart
Create vdisk file=d:WIN2019.vhd type=expandable maximum=40000
Attach vdisk

command promplt create vdisk

Type dir d: to check the VHD disk
Type Exit

command diskpart dir

Choose the Disk with Unallocated Space which matches the drive size we have created earlier. In my example, I created a 60GB hard drive which is shown below as Disk 2. This is mine.VHD Virtual Drive I will be Dual Booting onto it, select it and then click Next.

Note: ignore the warning (Window can’t be installed).

windows setup unallocated space

Install Underway – it will take some time to complete.

installing windows

The system will reboot automatically when completed.

windows boot manager

Set Administrator Password and then click finish.

windows customize settings

Windows Login screen

windows login screen

Now you can see all your Physical drives. In fact, you can have a look at the Physical disk where you stored the.VHD (Virtual Hard Disk) you will see the.VHD file that Windows OS is installed in. In my example below the C: is my System Drive where Windows is installed on, and the D Drive is my Physical Disk. See the WIN2019.VHD file. That is my C: Drive.

this pc

Select Windows key+R and then type msconfig

run command msconfig
[Optional:] Change default boot order
Click on the Boot tab
Select the boot you want to be the default
Select set as default button
Click ok

system configuration boot option

Related: VHD Virtual Hard Disk Recovery

Jamil Parvez

Jamil Pervez works as a Network Administrator, based in Kuwait with a Primary focus on Microsoft technologies. Microsoft Certified MCSE, MCTP, MCITP, CCNP, CCIP, CCVP with 20 years of experience in administering Windows Servers, Exchange, VMWare, Veeam B&R, Veritas BackupExec.

Related Articles

Leave a Reply

Back to top button