Windows 10: How to copy boot files from my Windows 11 C Drive to the VHDX Hyper V Drive?

Discus and support How to copy boot files from my Windows 11 C Drive to the VHDX Hyper V Drive? in Windows 10 Gaming to solve the problem; I want to install Windows 11 on Hyper-V, so I'm doing it manually DISM. I can do that part, but how can I add the boot files to the Virtual Hard Drive... Discussion in 'Windows 10 Gaming' started by Sushruth_944, Nov 17, 2021.

  1. How to copy boot files from my Windows 11 C Drive to the VHDX Hyper V Drive?


    I want to install Windows 11 on Hyper-V, so I'm doing it manually DISM. I can do that part, but how can I add the boot files to the Virtual Hard Drive by copying from my actual C Drive?

    :)
     
    Sushruth_944, Nov 17, 2021
    #1
  2. herg39458 Win User

    How to boot into bootable differencing vhdx in Hyper-V

    Hello,

    I am trying to upgrade my boot to VHD VHDX to the latest Windows 10 update using this terrific tutorial from @Kari: Native boot Virtual Hard Disk - How to upgrade Windows

    However, I am having trouble getting the vhdx to boot in Hyper-V. Everything seems to work as expected, but when I get to step 1.18, Hyper-V gives a "The boot loader did not load an operating system" error booting off the VHDX.

    I wonder if the boot files are getting created appropriately. When I run

    c:\windows\system32\bcdboot c:\windows /s c:

    it says it worked correctly, but if I run

    bcdedit /v

    after that, it says "The boot configuration data store could not be opened. The requested system device cannot be found."

    The c: drive is available via the windows installation command prompt.

    Other possibly useful information:
    - The VHDX is a differencing disk, and the parent VHDX file is read-only
    - The VHDX was created in Windows and initialized for Windows install using DISM. It was not created in Hyper-V.

    Any ideas? Thanks in advance.
     
    herg39458, Nov 17, 2021
    #2
  3. jimbo45 Win User
    How to boot into bootable differencing vhdx in Hyper-V

    Hi there

    You can try this method (from the Ms documentation) which doesn't need HYPER-V features so should work on any Windows version.

    https://docs.microsoft.com/en-us/win...-the-boot-menu

    Cheers
    jimbo
     
    jimbo45, Nov 17, 2021
    #3
  4. How to copy boot files from my Windows 11 C Drive to the VHDX Hyper V Drive?

    Reusing vhdx (native boot) in Hyper-V

    Thanks for the suggestion.

    I created a new machine in hyper-v, tried to install the latest insider builds but it wouldn't boot from them either. Only 17134.1 iso worked. So I installed that instead to get the correct vhdx configuration. However it took 1hr20mins!

    Tried imaging using macrium, at this point I was fed up with waiting and the time element. Thought there must be an easier way.

    Checked the structure of 17134.1 vhdx created in hyper-v, it contained EFI, Windows and Recovery partitions.

    Remembered you stating something about my previous vhdx not having correct boot files.
    (17760 only contained windows partition, no EFI, MSR or Recovery)

    So created a new vhdx (A1) within disk manager, used diskpart following instructions on MSoft website as guidance and adapted to my configuration. https://docs.microsoft.com/en-us/win...ive-partitions

    Deployed .wim to the windows (WHow to copy boot files from my Windows 11 C Drive to the VHDX Hyper V Drive? :) partition (A1) and applied bcdboot (from A1) to the EFI (SHow to copy boot files from my Windows 11 C Drive to the VHDX Hyper V Drive? :) partition on the vhdx (A1). Attached this vhdx (A1) to vm in hyper-v and booted successfully *Biggrin (Tip, rename the EFI to something like "SystemVHD or SysVHD" to avoid confusion)

    https://docs.microsoft.com/en-us/win...-the-boot-menu

    However, I had an existing vhdx (A2) with build 17760 deployed using dism and installed apps that I wanted to keep then boot in hyper-v to perform the upgrade to 17763. Obviously couldn't create EFI partition since there was one main partition starting from the beginning of the vhdx (A2).

    So I created a new vhdx (A3), 1gb (disk management complains about minimum size for gpt drive), gpt, made EFI and MSR partitions, and while the build 17760 vhdx (A2) was mounted in explorer I used bcdboot (from 17760 vhdx (A2)) to write boot files to this recent EFI (SHow to copy boot files from my Windows 11 C Drive to the VHDX Hyper V Drive? :)(A3).

    Ejected both drives, mounted the EFI vhdx (A3) as SCSI (0) and the 17760 vhdx (A2) as SCSI (1), made sure boot order was EFI (A3) first, 17760 (A2) second in the firmware section of vm properties and managed to boot successfully *Biggrin

    Insider upgrade using win update and also from attached iso both initiated and proceeded to install without error.

    Due to the slowness of VM I decided its much quicker to deploy wim to vhdx with each new build and go through setup process than inplace upgrade. Tried a few tweaks in VM to allocate more cores and RAM made a noticeable difference but performance still far below VHD native boot not to mention that I have had enough of hyper-v and VMs.

    Thanks again.
     
    Seymour Bhutz, Nov 17, 2021
    #4
Thema:

How to copy boot files from my Windows 11 C Drive to the VHDX Hyper V Drive?

Loading...
  1. How to copy boot files from my Windows 11 C Drive to the VHDX Hyper V Drive? - Similar Threads - copy boot files

  2. Files copying from c drive to d drive

    in Windows 10 Gaming
    Files copying from c drive to d drive: Why are all my files from my c drive also being put into my d drive. Ive tried to deleting files from one drive because i assumed they'd stay installed on the other drive but anything i remove from one drive is deleted from the other drive. Because that wasn't working right i...
  3. Files copying from c drive to d drive

    in Windows 10 Software and Apps
    Files copying from c drive to d drive: Why are all my files from my c drive also being put into my d drive. Ive tried to deleting files from one drive because i assumed they'd stay installed on the other drive but anything i remove from one drive is deleted from the other drive. Because that wasn't working right i...
  4. How to copy boot files from my Windows 11 C Drive to the VHDX Hyper V Drive?

    in Windows 10 Software and Apps
    How to copy boot files from my Windows 11 C Drive to the VHDX Hyper V Drive?: I want to install Windows 11 on Hyper-V, so I'm doing it manually DISM. I can do that part, but how can I add the boot files to the Virtual Hard Drive by copying from my actual C Drive?...
  5. How to boot into bootable differencing vhdx in Hyper-V

    in Windows 10 Virtualization
    How to boot into bootable differencing vhdx in Hyper-V: Hello, I am trying to upgrade my boot to VHD VHDX to the latest Windows 10 update using this terrific tutorial from @Kari: Native boot Virtual Hard Disk - How to upgrade Windows However, I am having trouble getting the vhdx to boot in Hyper-V. Everything seems to work as...
  6. Reusing vhdx (native boot) in Hyper-V

    in Windows 10 Virtualization
    Reusing vhdx (native boot) in Hyper-V: Hey all, I created a .vhdx in disk management, initialised, new volume and formatted. Deployed Win 10 Insider 17754 to it using dism /apply-image etc. Updated the bcd store on main OS, booted to .vhdx natively no issues. Now since MSoft doesn't allow the upgrade to newer...
  7. Reusing vhdx (native boot) in Hyper-V

    in Windows 10 Installation and Upgrade
    Reusing vhdx (native boot) in Hyper-V: Hey all, I created a .vhdx in disk management, initialised, new volume and formatted. Deployed Win 10 Insider 17754 to it using dism /apply-image etc. Updated the bcd store on main OS, booted to .vhdx natively no issues. Now since MSoft doesn't allow the upgrade to newer...
  8. Copying files from external drive to internal Hyper-V VM much faster.

    in Windows 10 Virtualization
    Copying files from external drive to internal Hyper-V VM much faster.: I always found it very slow copying files as a network share from Host to PC e.g. at 10 MB/s. Today, I had to copy a file, and it blitzed along at 80 MB/S which is not far off my hard drive maximum speed. This is using 16299 Fast/Slow Ring build. As an aside, I...
  9. Hyper-v guest internet connection lost after booting as VHDX.

    in Windows 10 Virtualization
    Hyper-v guest internet connection lost after booting as VHDX.: Hello, I am running Windows 10 Pro (10240) and have a guest Windows 10 VM (10528) which were working fine. Both were activated and connected to internet correctly. Today I booted the VM as native boot VHDX. This installed some drivers, connected to internet and...
  10. Can't native boot Hyper-V generation 2 vhdx

    in Windows 10 Virtualization
    Can't native boot Hyper-V generation 2 vhdx: If I create a generation 1 VM I can native boot the vhdx by adding bcd entry. If I make a generation 2 VM it fails with "a required device isn't connected...0xc0000225". Pressing f8 for "Startup Settings" gives "The application or operating system couldn't be loaded because a...