Install Windows 11 in Hyper-V (VM) and use it in Native Boot (VHDX)

  • Thread starter Thread starter Deleted member 36428
  • Start date Start date

Will it work?

Only add: bcdboot K:\Windows on VHDX Image or?
The problem here is that in a VM it's running under the Hypervisor or other Virtual Software program. This means the Virtual machine will need a bootloader (on the virtual disk on an efi partition).

The usual way to do this is to boot into a Windows install disk / or other Winpe environment - FROM THE GUEST -- choose repair system and then in command mode enter diskpart, attach the vhdx file as a vdisk, this will then mount as a disk volume from which you can install the bootloader from the installed Windows build. You don't really want to mix builds -- unless there's specific reasons such as using a bootloader from the 23H2 builds.

So the actual Virtual disk created in the Hyper-V configuration settings for the VM needs to contain an EFI partition, the vhdx windows file and a bit left over.

I don't think (I don't know the definitive answer) it will work purely from the vhdx file -- macrium viboot has some mechanism for booting directly vhdx files but logically unless Ms have changed Hyper-V a lot I can't reason why this would work.

If anybody has been able to make it work under HYPER-V (running of course a Guest Windows system) I'd be very interested.

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
I will just use:

dism /get-wiminfo /wimfile:J:\sources\install.wim

dism /apply-image /imagefile:J:\sources\install.wim /index:1 /applydir:K:\

bcdboot K:\Windows

Hyper-V create own GPT Partition and i can't even Mount VHDX.
 

My Computer

I will just use:

dism /get-wiminfo /wimfile:J:\sources\install.wim

dism /apply-image /imagefile:J:\sources\install.wim /index:1 /applydir:K:\

bcdboot K:\Windows

Hyper-V create own GPT Partition and i can't even Mount VHDX.
I think you have to attach the vhdx file in diskpart and then select disk , then select volume and create a volume letter for it.

cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
Hey Deleted member 36428,

Showing gratitude is important in online communities. Use the "like" button to appreciate helpful content. This motivates people to keep sharing knowledge. A "like" gives 1 point, "Helpful" gives 5 points, and "Great support" gives 10 points for exceptional help.

Back
Top Bottom