Windows 10: How to install vhdx image onto win 10 new computer

Discus and support How to install vhdx image onto win 10 new computer in Windows 10 Installation and Upgrade to solve the problem; Attach the drive with the VHD file to any windows 8/10 PC I assume the .VHD(X) file is on an external USB drive.... we'll example it as drive letter... Discussion in 'Windows 10 Installation and Upgrade' started by lyndonaus, Nov 29, 2015.

  1. How to install vhdx image onto win 10 new computer


    Hello. I'm also trying to boot to a VHDX file from a USB drive.

    I successfully did the steps above (for x64). However when I reboot, the VHDX is no longer attached! Is there a way to attach the VHDX prior to selecting it from the boot menu?
     
    Day Trooper, Aug 14, 2016
    #16
  2. Kyhi Win User

    Explain where the VHD file is located
    and where you wrote the boot files

    You also have to be booting in Legacy mode (legacy support enabled) - if using a usb stick...
    as uefi booting would require an partitioned drive

    no need to pre-attach (mount) VHD in order to boot it..
     
  3. I think the above is the cause of my issue.

    First off, the VHDX file is located on a 'WD MyBook' drive which is attached via a USB port. And I do see UEFI in my boot menu (next to some, but not all, boot options).

    So basically, what is UEFI and is it possible for me to enable legacy mode? (I'll do some digging around on this myself, too).

    In addition, when I executed your commands my USB drive was mapped to drive W and the VHDX file (located on that same drive) was mounted to drive H.

    EDIT: I can see that legacy mode is enabled for the USB drive and so I'm guessing that looks ok. Could my problem be that my VHDX was created from a 'UEFI Windows 10' install and it somehow needs to be modified to be a 'Legacy Windows Install'?
     
    Day Trooper, Aug 14, 2016
    #18
  4. cereberus Win User

    How to install vhdx image onto win 10 new computer

    You could try this but be warned it might not work due to driver issues.

    Copy vhdx file to say c:\vhd folder as say win10.vhdx

    Then boot from a windows 10 installation usb drive

    Then, select language etc, and at install now screen, press shift+f10

    Then enter these commands

    diskpart

    select vdisk file=c:\vhd\win10.vhdx

    attach vdisk

    exit

    exit

    Remove installation usb drive and reboot. You will now be able to boot from vhdx.

    With luck it will boot but you might get driver issues. If so, installing vhdx in a vm is more likely to work.
     
    cereberus, Aug 14, 2016
    #19
  5. Thanks for the reply. I was able to attach my VHDX, but unfortunately after rebooting the VHDX is no longer attached. *Sad

    Any other ideas?
     
    Day Trooper, Aug 14, 2016
    #20
  6. cereberus Win User
    Sorry my brain was not in gear - I forgot to mention the bcdboot commands needed

    When running diskpart after attaching vhd, you have to find the volume that contains the system reserved (legacy bios) or efi partition (uefi), and assign a drive letter to it temporarily.


    in diskpart still, run

    list vol

    and you get something like

    Volume 0 C 10 Pro N NTFS Partition 195 GB Healthy Boot
    Volume 1 E Data NTFS Partition 735 GB Healthy
    Volume 2 FAT32 Partition 329 MB Healthy System
    Volume 3 NTFS Partition 465 MB Healthy Hidden
    Volume 4 F Disk 2 NTFS Partition 471 GB Healthy
    Volume 5 G Disk 2 NTFS Partition 459 GB Healthy
    Volume 6 D 10 Home NTFS Partition 149 GB Healthy

    Here volume 2 is mine - it is the FAT32 volume

    To assign drive letter still in diskpart:

    select volume 2 (in my case)

    assign letter=s (could be any letter but I use S for system)

    Here volume 6 is my vhd attached as per earlier command and is drive D in my case

    Then you exit diskpart and type

    bcdboot d:\windows /s s: /f uefi (or bios as appropriate)

    See step 4 in this guide.

    Boot to VHD (Native Boot): Add a Virtual Hard Disk to the Boot Menu
     
    cereberus, Aug 14, 2016
    #21
  7. cereberus Win User
    Good to see you back. Hope things are going ok with you.
     
    cereberus, Aug 14, 2016
    #22
  8. SIW2 Win User

    How to install vhdx image onto win 10 new computer

    You can apply it using wbadmin command from booted winpe. Once applied, you have to set the correct os letter before attempting to boot into it. That is also better done from winpe. I have made a tool to do that. Use the fix OS drive letter section.
    nt6rep.zip


    How to install vhdx image onto win 10 new computer [​IMG]
     
  9. SIW2 Win User
    If wbadmin can't find the vhdx, you could mount it with disk mgmt, make an image of the mounted disk ( using aomei backupper, macrium, paragon, etc - they all have fee versions). Then apply the image you just created.

    That is probably easiest.
     
  10. I tried to locate my system volume but it wasn't listed. This might be because my hard drive is going bad *Shock

    So at this point I'll probably reinstall Windows to another drive.

    Is there a way to take my Windows 10 VHDX file and apply it to another drive so that drive will boot?

    Note: The VHDX I'm referring to was created using Disk2VHD. Is that all I needed to do to create a bootable VHDX, or were there more steps involved? This is my first time trying this so please forgive my ignorance *Huh
     
    Day Trooper, Aug 15, 2016
    #25
  11. cereberus Win User
    Post image from disk management.
     
    cereberus, Aug 15, 2016
    #26
  12. Ok, I'll do that after I backup my C drive (as I'm now receiving warnings that the drive is failing).

    EDIT: Here's the screenie:
     
    Day Trooper, Aug 15, 2016
    #27
  13. cereberus Win User

    How to install vhdx image onto win 10 new computer

    That is as I feared - the system files are not in a separate partition, as is normal these days. This is a pretty old style setup.

    I am not sure how you do this here. I think you may be able to simply use c: rather than s: in the bcdboot command.
     
    cereberus, Aug 16, 2016
    #28
  14. OK thanks, I'll give that a try. And would the last switch on mine be /UEFI or /BIOS?
     
    Day Trooper, Aug 16, 2016
    #29
  15. cereberus Win User
    /bios
     
    cereberus, Apr 4, 2018
    #30
Thema:

How to install vhdx image onto win 10 new computer

Loading...
  1. How to install vhdx image onto win 10 new computer - Similar Threads - install vhdx image

  2. How can I install Microsoft Digital Image 2006 onto Win 10 service..

    in Windows 10 Software and Apps
    How can I install Microsoft Digital Image 2006 onto Win 10 service..: How can I install Microsoft Digital Image 2006 onto Win 10 service.. https://answers.microsoft.com/en-us/windows/forum/all/how-can-i-install-microsoft-digital-image-2006/59ef027a-d309-4647-b83d-9c831863824f
  3. ISO or VHDX image file

    in Windows 10 Software and Apps
    ISO or VHDX image file: I am a iMac User running Sur. To use an app name3d Parallels to run a Windows 10 environment, I need to download a ISO or VHDX image file but cannot find it anywhere. Can you please point me in the nright direction?The message I receive during the Parallels installation is:...
  4. Windows vhdx image problem

    in Windows 10 Backup and Restore
    Windows vhdx image problem: I made a vhdx image of Win10 (1909) from Backup and Restore in the Control Panel. Having successfully downloaded it to my external drive, when I boot to Win RE ->Troubleshoot->Advanced Options->System Image Recovery, in an attempt to restore it Win10 fails to locate my image....
  5. New computer with Win 10 - How to install Win 7 with disk to replace

    in Windows 10 Installation and Upgrade
    New computer with Win 10 - How to install Win 7 with disk to replace: New computer with Win 10 - How to install Win 7 with disk to replace Win 10? https://answers.microsoft.com/en-us/windows/forum/all/new-computer-with-win-10-how-to-install-win-7-with/d1fc2fc3-5532-4779-9b3d-58634aa19bf4
  6. installing a system image onto a new device

    in Windows 10 Installation and Upgrade
    installing a system image onto a new device: Win10 pro is my OS system image available Am I required to purchase a Win10 pro system on my new computer or is any Win10 system appropriate to use the system image backup?...
  7. Image of disk before/after installing programs on Win 10 new computer?

    in Windows 10 Backup and Restore
    Image of disk before/after installing programs on Win 10 new computer?: I am in the process of setting up a new HP computer, Win 10, Ver 1803, Build 17134.191. It has a partition with the O/S etc. on it to restore. 1) I want to make an image of the new computer disk on an external disk in case the new disk goes bad. Should I make the image...
  8. install win 10 onto laptop

    in Windows 10 Installation and Upgrade
    install win 10 onto laptop: The question is this.. how on earth do i re-install a new version of win 10 on to my machine ? without any disks? https://answers.microsoft.com/en-us/windows/forum/all/install-win-10-onto-laptop/57ad5e6c-5cee-4e72-8fd8-8a59e9cbcd00
  9. Installing new windows 10 onto a new computer

    in Windows 10 Installation and Upgrade
    Installing new windows 10 onto a new computer: i just finished building a pc and im trying to install windows 10 but my product key is not working https://answers.microsoft.com/en-us/windows/forum/all/installing-new-windows-10-onto-a-new-computer/cd131f2a-54dd-41b7-a1b7-72f7bffd7914
  10. installing windows onto a new custom computer

    in Windows 10 Installation and Upgrade
    installing windows onto a new custom computer: I built a brand new custom computer and im trying to install windows 10 from a flash drive. I get to the windows setup screen to install windows and pick my drive to boot windows from its does its thing and then says windows ends to restart. once it it restarts it seems fine...