Install Windows to VDHX virtual hard disk on a new hard drive

Windows Server Blue logo

This is how I create VHDX files during Windows setup, first formatting a blank disk, creating a VHDX virtual hard disk, and then installing Windows on the disk.

  1. Insert the Windows Server 2012, 8.1, or 7 DVD or bootable USB key. I always use a USB key as it is so much faster.
  2. Press SHIFT-F10 to get to a command prompt when setup is loaded.
  3. Type in diskpart
  4. list disk (note the disk ID)
  5. select disk 0 (assuming that it was listed as disk 0)
  6. clean
  7. create partition primary
  8. select partition 1
  9. active
  10. format fs=ntfs
  11. assign
  12. create vdisk file=”C:\disk1.vhdx” maximum=50000
  13. attach vdisk
  14. exit

No go back to setup and click through to the disk selection screen, or refresh if you were already there, and you will see the virtual disk. Windows will say that it cannot be installed onto this disk but just press next and it should install and boot with no issues.

Also see https://cloudrun.co.uk/server/dual-booting-windows-8-1-and-windows-server-2012-r2-from-vhd/

Posted in Server

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.