Virtualization Native Boot Windows 11 Virtual Hard Disk (VHDX)


  • Staff
Drive_banner.png

This tutorial will show you how to boot a Windows 11 VHDX file natively to dual boot with Windows 10 or Windows 11.

Native Boot allows you to create a virtual hard disk (VHDX), install Windows to it, and then boot it up, either on your PC side-by-side with your existing installation, or on a new device.

A native-boot VHDX can be used as the running operating system on designated hardware without any other parent operating system. This differs from a scenario where a VHDX is connected to a virtual machine on a computer that has a parent operating system.

Native boot for Windows 11 requires the .vhdx format, not the .vhd format.

VHDXs can be applied to PCs or devices that have no other installations of Windows, without a virtual machine or hypervisor. (A hypervisor is a layer of software under the operating system that runs virtual computers.) This enables greater flexibility in workload distribution because a single set of tools can be used to manage images for virtual machines and designated hardware.


You must be signed in as an administrator to setup and Native Boot a Windows 11 VHDX file.

The Windows 11 VHDX file used in this tutorial was created with a Hyper-V Windows 11 virtual machine, and copied to the OS to dual boot with.



EXAMPLE: Dual boot Windows 10 with a Native Boot Windows 11 VHDX

Native_boot_Windows11_VHDX.png



Here's How:

1 Copy the Windows 11 VHDX file where you want to keep it saved at to the Windows OS you want to dual boot with.

2 Open Disk Management (diskmgmt.msc).

3 In Disk Management, click/tap on Action on the menu bar, and click/tap on Attach VHD. (see screenshot below)

Native_boot_Windows11_VHDX-1.png

4 Perform the following steps to select the Windows 11 VHDX file to attach: (see screenshot below)
  1. Click/tap on Browse.
  2. Navigate to and select the VHDX file.
  3. Click/tap on Open.
  4. Click/tap on OK.
Native_boot_Windows11_VHDX-1B.png

5 Right click on the middle "Healthy (Basic Data Partition)" for the attached VHDX, and click/tap on Change Drive Letter and Paths. (see screenshot below)

If a drive letter has already been assigned to the attached Windows 11 VHDX, then jump to step 8 instead.


Native_boot_Windows11_VHDX-2.png

6 Click/tap on Add. (see screenshot below)

Native_boot_Windows11_VHDX-3.png

7 Select (dot) Assign the following drive letter, select an available drive letter (ex: "F") you want to assign, and click/tap on OK. (see screenshot below)

Native_boot_Windows11_VHDX-4.png

8 The Windows 11 VHDX file will now be mounted as a drive with the drive letter (ex: "F") you selected to assign to it. (see screenshots below)

Native_boot_Windows11_VHDX-5.png
Native_boot_Windows11_VHDX-6.png
Native_boot_Windows11_VHDX-7.png

9 You can now close Disk Management if you like.

10 Open an elevated Windows Terminal, and select Command Prompt.

11 Type the command below you want to use into the elevated command prompt, and press Enter. (see screenshot below)

(Keep current OS default at boot)
bcdboot <drive letter>:\Windows /d

OR

(Make VHDX the default OS at boot)
bcdboot <drive letter>:\Windows

This command will add the attached Windows 11 VHDX to the boot manager to dual boot.

Substitute <drive letter> in the command above with the actual drive letter (ex: "F") of the attached Windows 11 VHDX.

For example: bcdboot F:\Windows


Native_boot_Windows11_VHDX-8.png

12 You can now close the elevated command prompt.

13 The next time you boot or restart the computer, you can select to boot from Windows 11 (VHDX) or Windows 10 (installed OS).


That's it,
Shawn Brink


 

Attachments

  • Drive.png
    Drive.png
    5.8 KB · Views: 196
Last edited:
Thanks -- !! I missed that one

BTW on your other post - I think London to Aberdeen is less than 700 Miles (round trip maybe !!!! )

Cheers
jimbo
actually 550 miles as crow flies, 600 miles by road - I meant 600 - typo.
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0
Hello to all. i want to make a windows 10 VHDX so that i can dual boot. i have read about it but cannot find tutorial on how to make the file itself....
i suppose i should download windows iso...but then how to i make the "instalation" on vhdx file?
thanks
 

My Computer

System One

  • OS
    Windows 11

My Computers

System One System Two

  • OS
    Windows 11 Workstation
    Computer type
    PC/Desktop
    Manufacturer/Model
    doofenshmirtz evil incorporated
    CPU
    Ryzen 9 5950X
    Motherboard
    Asus ROG Crosshair VIII Formula
    Memory
    Corsair Vengeance RGB PRO Black 64GB (4x16GB) 3600MHz AMD Ryzen Tuned DDR4
    Graphics Card(s)
    ASUS AMD Radeon RX 6900 XT 16GB ROG Strix LC OC
    Sound Card
    Sound BlasterX Katana
    Monitor(s) Displays
    3 x27" Dell U2724D & 1 x 34" Dell U3415W
    Hard Drives
    Samsung 980 Pro 1TB M.2 2280 PCI-e 4.0 x4 NVMe Solid State
    Drive
    PSU
    ASUS ROG THOR 850W 80 Plus Platinum
    Case
    ASUS ROG Strix Helios Midi-Tower ARGB Gaming Case
    Cooling
    ASUS ROG Strix LC Performance RGB AIO CPU Liquid Cooler - 360mm
    Keyboard
    Logi Ergo
    Mouse
    Logitech MX Master 3
    Internet Speed
    900/100 Mbps
    Browser
    Chrome
    Antivirus
    Windows Defender, Malwarebytes Pro
    Other Info
    HP M281 Printer
    Logitech Brio Stream webcam
    Yeti X mic
  • Operating System
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop
    CPU
    i7
Hello to all. i want to make a windows 10 VHDX so that i can dual boot. i have read about it but cannot find tutorial on how to make the file itself....
i suppose i should download windows iso...but then how to i make the "instalation" on vhdx file?
thanks
Hello, :-)

In addition, you could use the method in the tutorial below to create the VHDX file at boot while setting up the dual boot.

 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
In post #1 it says....

The Windows 11 VHDX file used in this tutorial was created with a Hyper-V Windows 11 virtual machine, and copied to the OS to dual boot with.



I did just that, and it worked very well. Then I tried a .vhdx from a different Hyper-V virtual machine and it gave a BSOD when I tried to boot from it. In both cases the .vhdx files were dynamically expanding, the default option when creating a new Hyper-V virtual machine.

1648474643832.png


The only difference between them was that the one that worked one had a maximum size of 64GB and the one that BSOD'd was 127GB.

What caught me out was that while you are running the OS from the .vhdx the file physically occupies the maximum size allocated to the .vhdx even if most of its contents is free space. Once you shut down the .vhdx file shrinks back down again to just the size of the used space. So in order to be able to boot a .vhdx you must have enough free space on the drive holding it to allow it to expand like this. I didn't, and that's what caught me out.

BSOD - NOT ENOUGH SPACE.png



It's an easy trap to fall in to, and I don't recall seeing this 'gotcha' documented any where.

Oh, and I fixed it by reducing the maximum size of the .vhdx down to 64GB. It's not as if it needed that big a virtual drive anyway, most of it was unused space.
 

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Lattitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
There is no restriction native booting VHDX files in Windows 10 Home.
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0
There is no restriction native booting VHDX files in Windows 10 Home.
No, none whatsoever. In fact, you can create you .vhdx and put an OS on it in Home too.

Disk Management can make the .vhdx, and when mounted you could restore a Macrium image to it.
 

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Lattitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
In post #1 it says....

The Windows 11 VHDX file used in this tutorial was created with a Hyper-V Windows 11 virtual machine, and copied to the OS to dual boot with.



I did just that, and it worked very well. Then I tried a .vhdx from a different Hyper-V virtual machine and it gave a BSOD when I tried to boot from it. In both cases the .vhdx files were dynamically expanding, the default option when creating a new Hyper-V virtual machine.

View attachment 25585

The only difference between them was that the one that worked one had a maximum size of 64GB and the one that BSOD'd was 127GB.

What caught me out was that while you are running the OS from the .vhdx the file physically occupies the maximum size allocated to the .vhdx even if most of its contents is free space. Once you shut down the .vhdx file shrinks back down again to just the size of the used space. So in order to be able to boot a .vhdx you must have enough free space on the drive holding it to allow it to expand like this. I didn't, and that's what caught me out.

View attachment 25588


It's an easy trap to fall in to, and I don't recall seeing this 'gotcha' documented any where.

Oh, and I fixed it by reducing the maximum size of the .vhdx down to 64GB. It's not as if it needed that big a virtual drive anyway, most of it was unused space.

Yeah - it is one of these "you just have to know" things.

One other thing you need to know is if you are using expanding disks, they of course grow as you add things e.g. if you add 10GB of data, vhdx grows by 10 GB.

You then delete the 10 GB data and when booted natively Windows shows the data as deleted BUT of you look at size of the VHD file when booting from host, the VHD HAS NOT reduced in size.

Bssically the space os not freed up from host pc perspective.

It does not really affect anything in terms of running vhd natively booted but you use more space on host than needed.

There is a compact function you can use but it does not work well.

Easiest solution is to create a new expandable vhd and clone vhd to that.

You can get compact option to work but you have to go through some hoops and loops

1) mount vhd as drive

2) shrink C partition to minimum using minitool partition wizard (assumes no partions after C drive)

3) dismount vhdx

4) select vhdx from Hyper-V "edit disk" menu.

5) select compact option

6) select vhdx from Hyper-V "edit disk" menu again.

7) select shrink option and shrink vhdx to minimum.

8) select vhdx from Hyper-V "edit disk" menu again and select compact again.

9) select vhdx from Hyper-V "edit disk" menu again and select expand option and expand to desired size.

10) mount vhdx as drive again

11) expand c drive to fill all of drive.

You are now using minimum space on host. Simply easier to clone.
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0
No, none whatsoever. In fact, you can create you .vhdx and put an OS on it in Home too.

Disk Management can make the .vhdx, and when mounted you could restore a Macrium image to it.
You can also just do a clean install to a .vhdx file. You could start with a completely blank HDD/SDD. Boot the computer from a Windows 10/11 installation USB flash drive. Partition and format the "host" HDD/SSD. Create the .vhdx and mount it with diskpart. Then continue with the normal clean install routine. You would have to leave unallocated space on the "host" HDD/SSD, though, for the system partition the computer would boot from.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homebuilt
    CPU
    AMD Ryzen 7 3800XT
    Motherboard
    ASUS ROG Crosshair VII Hero (WiFi)
    Memory
    32GB
    Graphics Card(s)
    EVGA GeForce GTX 1080 Ti
  • Operating System
    Windows 11 Education
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 7773
    CPU
    Intel i7-8550U
    Memory
    32GB
    Graphics card(s)
    Nvidia Geforce MX150
    Sound Card
    Realtek
    Monitor(s) Displays
    17"
    Screen Resolution
    1920 x 1080
    Hard Drives
    Toshiba 512GB NVMe SSD
    SK Hynix 512GB SATA SSD
    Internet Speed
    Fast!
You can also just do a clean install to a .vhdx file. You could start with a completely blank HDD/SDD. Boot the computer from a Windows 10/11 installation USB flash drive. Partition and format the "host" HDD/SSD. Create the .vhdx and mount it with diskpart. Then continue with the normal clean install routine. You would have to leave unallocated space on the "host" HDD/SSD, though, for the system partition the computer would boot from.

:shawn:

 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
You can also just do a clean install to a .vhdx file. You could start with a completely blank HDD/SDD. Boot the computer from a Windows 10/11 installation USB flash drive. Partition and format the "host" HDD/SSD. Create the .vhdx and mount it with diskpart. Then continue with the normal clean install routine. You would have to leave unallocated space on the "host" HDD/SSD, though, for the system partition the computer would boot from.
Sure this is true, but only problem is if you ever need to upgrade the OS, as you cannot upgrade OS in natively booted vhds.

I always clean install to a vm im Hyper-V first, so vhd has all the boot files as well.

I cannot think of an easy way to clean install to a vhd, and include boot files in a vhd, without a Host OS.

Simplest way I can think of would be to have WTG drive, mount iso in a vm, install OS, then boot from Windows installation drive and create boot entry on host pc.
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0
You can manually create a system partition on the .vhdx and put boot files in it using the bcdboot command.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homebuilt
    CPU
    AMD Ryzen 7 3800XT
    Motherboard
    ASUS ROG Crosshair VII Hero (WiFi)
    Memory
    32GB
    Graphics Card(s)
    EVGA GeForce GTX 1080 Ti
  • Operating System
    Windows 11 Education
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 7773
    CPU
    Intel i7-8550U
    Memory
    32GB
    Graphics card(s)
    Nvidia Geforce MX150
    Sound Card
    Realtek
    Monitor(s) Displays
    17"
    Screen Resolution
    1920 x 1080
    Hard Drives
    Toshiba 512GB NVMe SSD
    SK Hynix 512GB SATA SSD
    Internet Speed
    Fast!
You can manually create a system partition on the .vhdx and put boot files in it using the bcdboot command.
How - won't the bcdboot command add boot entry to Host bcd, not bcd in vhd?

edit: is it this command

bcdboot c:\windows /s h: /f UEFI

where h: is set to c: as well (assuming c is drive letter assigned to vhd)?
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0
How - won't the bcdboot command add boot entry to Host bcd, not bcd in vhd?

edit: is it this command

bcdboot c:\windows /s h: /f UEFI

where h: is set to c: as well (assuming c is drive letter assigned to vhd)?
A .vhdx file is a virtual hard drive. It can have any of the same partitions as a regular hard drive. So let's say I am booted into the OS on my .vhdx virtual hard drive. Just like a real hard drive, I can shrink the OS partition by 100 MB. Create a new system partition in the 100 MB unallocated space. Either mark it as Active if it is an MBR virtual hard drive, or create it as an EFI System Partition if it is a GPT virtual hard drive. Assign the new system partition drive letter S:. Then bcdboot C:\Windows /s S: /f <UEFI or BIOS or ALL>. Just like I would on a physical HDD. Now I can boot the .vhdx file in a VM if I want to.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homebuilt
    CPU
    AMD Ryzen 7 3800XT
    Motherboard
    ASUS ROG Crosshair VII Hero (WiFi)
    Memory
    32GB
    Graphics Card(s)
    EVGA GeForce GTX 1080 Ti
  • Operating System
    Windows 11 Education
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 7773
    CPU
    Intel i7-8550U
    Memory
    32GB
    Graphics card(s)
    Nvidia Geforce MX150
    Sound Card
    Realtek
    Monitor(s) Displays
    17"
    Screen Resolution
    1920 x 1080
    Hard Drives
    Toshiba 512GB NVMe SSD
    SK Hynix 512GB SATA SSD
    Internet Speed
    Fast!
With this dual-boot approach, does the Win 11 vhdx get activated with the same key that 10 is using? Does it allow both OSs to have the key or will one be lost?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
With this dual-boot approach, does the Win 11 vhdx get activated with the same key that 10 is using? Does it allow both OSs to have the key or will one be lost?
If you already have Windows 10 installed and activated on same computer, then when you do a VHDX install of Windows 11 also on same computer, the OS will get activated automatically using a digital license even if you did not enter any key at all. All you need to do is having an internet connection, which is a requirement for any activation in the first place. And OFC Windows 10 and 11 editions (Home/Pro/Enterprise...) much match...
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 build 10.0.22631.3296 (Release Channel) / Linux Mint 21.3 Cinnamon
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo A485
    CPU
    Ryzen 7 2700U Pro
    Motherboard
    Lenovo (WiFi/BT module upgraded to Intel Wireless-AC-9260)
    Memory
    32GB
    Graphics Card(s)
    iGPU Vega 10
    Sound Card
    Realtek
    Monitor(s) Displays
    14" FHD (built-in) + 14" Lenovo Thinkvision M14t (touch+pen) + 32" Asus PB328
    Screen Resolution
    FHD + FHD + 1440p
    Hard Drives
    Intel 660p m.2 nVME PCIe3.0 x2 512GB
    PSU
    65W
    Keyboard
    Thinkpad / Logitech MX Keys
    Mouse
    Logitech MX Master 2S
    Internet Speed
    600/300Mbit
    Browser
    Edge (Chromium)
    Antivirus
    Windows Defender
    Other Info
    SecureBoot: Enabled
    TPM2.0: Enabled
    AMD-V: Enabled
  • Operating System
    Windows 11 Pro 23H2 build 10.0.22631.3296(Release Preview Channel)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    i7-7700k @4.8GHz
    Motherboard
    Asus PRIME Z270-A
    Memory
    32GB 2x16GB 2133MHz CL15
    Graphics card(s)
    EVGA GTX1080Ti FTW 11GB
    Sound Card
    Integrated
    Monitor(s) Displays
    32" 10-bit Asus PB328Q
    Screen Resolution
    WQHD 2560x1440
    Hard Drives
    512GB ADATA SX8000NP NVMe PCIe Gen 3 x4
    PSU
    850W
    Case
    Fractal Design Define 7
    Cooling
    Noctua NH-D15 chromax.black
    Mouse
    Logitech MX Master 2S
    Keyboard
    Logitech MX Keys
    Internet Speed
    600/300Mbit
    Browser
    Edge (Cromium)
    Antivirus
    Windows Defender
    Other Info
    AC WiFi Card
Native Boot allows you to create a virtual hard disk (VHDX), install Windows to it, and then boot it up, either on your PC side-by-side with your existing installation, or on a new device.
Are we saying here that W11 can be copied to another machine? Surely not - this would be piracy
 

My Computer

System One

  • OS
    w 11 Home 22H2 22621.1105
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acer 84df3mi 2 machines
    CPU
    intel i5 9400 2.9GHz
    Memory
    16G
    Monitor(s) Displays
    lg ultrawide 29"
    Screen Resolution
    2400 x 1900
    Hard Drives
    1TB
    Internet Speed
    broadband
    Antivirus
    windows shield
Are we saying here that W11 can be copied to another machine? Surely not - this would be piracy

Hello Brian, :alien:

Each Windows 11 installation would still require its own unique valid product key or digital license to activate it.

If moved or coped to another computer, that would be considered a separate installation due to the hardware change, and would require activation.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
Hello Brian, :alien:

Each Windows 11 installation would still require its own unique valid product key or digital license to activate it.

If moved or coped to another computer, that would be considered a separate installation do to the hardware change, and would require activation.
Thnx @Brink I didnt think it was right. The Virtual HDD tutorial descended into a Nerdy playground arguing over quotes vs double quotes Jeez . As Baldric said "I have a cunning plan". No more Nerdy nonesense and its sssssooooo simple. Look on my Works, ye Mighty, and despair!
 

My Computer

System One

  • OS
    w 11 Home 22H2 22621.1105
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acer 84df3mi 2 machines
    CPU
    intel i5 9400 2.9GHz
    Memory
    16G
    Monitor(s) Displays
    lg ultrawide 29"
    Screen Resolution
    2400 x 1900
    Hard Drives
    1TB
    Internet Speed
    broadband
    Antivirus
    windows shield
WOW. I just read this thread and am shaking my head in disbelief. You've all made it so incredibly complicated to do such an easy task. First off. The VHD / VHDX file must be created FIRST in order to even install any OS. 2nd. And most importantly ALL THIS can be done booting off a USB drive and using the WinPE environment and the Shift + F10 command prompt during init. You do NOT need any "installed" or "pre-existing" OS whatsoever to create a VM out of thin blue sky. You simply need to know how to run a FEW SIMPLE COMMANDS in a cmd prompt. Boot the USB pen. When it stops at the partition drive window. Stop. If you are on a system that is BARE METAL fresh. Manually create a "system" drive to host Windows using the nifty GUI Microsoft has provided. Simply tell the partitioner to create you a "Windows" drive that is Blah Blah Blah in size. We don't want the drive. We only want the EFI partition that gets created during this automatic process. After it finishes you will have 3 devices. EFI, Recovery, and your Windows Blah Blah Blah drive. DELETE the recovery and the Windows device. Click "Create" and make your Storage volume to hold your newly created VM's. Don't forget to format it after creation. Press Shift + F10. Then create your vdisk and place it ANYWHERE on the newly formatted device you'd like. I use "X:\VM". Preferably on your fastest device M.2 or SSD. Another great choice is ANY USB 3.2 Gen 2 device. Also it does NOT matter whether you use VHD or VHDX. One is simply a dynamic disk that fills up "as you use it" while the other creates a "full volume" VHD from the get go using all of the space you intially create. Windows will update on either version. Trust me. Then after creation you leave your new VHD mounted. Then, break out dism command and image whatever flavor of windows you want on your new VHD using the existing "install.vim" in "sources" on your USB pen drive. After this finishes you then use bcdboot and finish getting the VHD into a bootable state. The benefit of this is that it will use the UUID and PATH of the new VHD volume as the boot identifier allowing you to literally store the volume anywhere. As long as your EFI loader knows the UUID you're all set it will boot every time. Anyway ... dismount your new VHD device. Now simply CTL - ALT - DEL ... or exit setup. System reboots. Menu displays. Choose the new VM. It will boot and run the usual setup routine. DONE. The ONLY thing required is that somewhere on the system you've got a workable 50+MB FAT32 EFI partition setup as the active device in bios and of course NTFS / exFat drive with a crapload of space for all your 100GB VM's. I have created over a dozen VM's and all boot flawlessly without ANY host OS whatsoever. All you need is a bootable USB pen device and a system with a workable EFI system partition enabled and a storage device capable of holding your new VM's. The rest is cake. I hope this helps.
 

My Computer

System One

  • OS
    Windows 11, 10, 8.1, 7, XP, 2K, Debian, Mint, Arch, SuSE, PuppEX, Cent
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus, GigaByte, SuperMicro, PowerEdge
    CPU
    Xeon, Intel, AMD, Risc
    Motherboard
    itx, atx, u1, u2, card, virtual
    Memory
    32gb --> 256gb : varies with system
    Graphics Card(s)
    ATI, Nvidia
    Sound Card
    Realtek, SB, Alessis
    Monitor(s) Displays
    Samsung, Dell, Sony, Google
    Screen Resolution
    1024 SD --> 8K UHD varies with system
    Hard Drives
    Hitachi, WD, Samsung, Seagate, PNY, Intel, Fujitsu, Sandisk
    PSU
    Corsair, Thermaltake, IDT Systems, HP, Dell
    Case
    Lian, Thermaltake, Dell, RackMount
    Cooling
    Water, Fan, Air
    Keyboard
    Standard BT, Wireless, and PS2.
    Mouse
    PS2, BT, Wireless
    Internet Speed
    Fibre Channel, GigE, Cable, 5G Ultra,
    Browser
    Firefox, Chrome, Opera, Safari, Brave, Edge
    Antivirus
    Eset, McAfee, Defender, Symantec, Kaspersky
    Other Info
    Home Lan: GigE 2 24 port Smart Switches, Cisco Fibre Channel switch, 2 Nighthawk 5g Ultra Wideband Wireless AP's

Latest Support Threads

Back
Top Bottom