Issue upgrading a vhdx in Hyper-V, then native booting from it.


cereberus

Well-known member
Guru
VIP
Local time
2:00 PM
Posts
5,593
OS
Windows 10 Pro + others in VHDs
Not really a request for help - more an observation.


Years ago.

At one time, you could not upgrade an OS e.g. from one Insider version to the next when using a native booting vhdx file.

I had to attach the vhdx file to a Hyper-V VM and upgrade using a virtual machine, then I could reconnect VHDX file as a native booting vhdx file (deleting old boot entry and recreating a new one).

Later (couple of years back)

A year or two back, MS made it possible to upgrade a vhdx file in native boot mode. I could update without Hyper-V or do it in VM (e.g. if I wanted to keep using pc whilst vhdx was upgraded). This was the perfect solution - I could upgrade natively or in a vm.

Now (not sure when this started)

Something has happened and now if I upgrade by VM now, and try to reattach the vhdx file as native booting (recreating boot entry), it falls over and refuses to boot.

I can now only upgrade when natively booting - the vhdx does work in a vm.
However, I no longer have the option to do the upgrade in a vm (if I want to natively boot vhdx) which was useful sometimes.

Ok, this is slightly irritating and not a big deal, but if I forget and do the upgrade in a vm, I shoot myself in the foot, and have to revert to a backup!
 

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
Thanks for the info, that's good to know. It just happens that I was planning something that this will impact.
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
Thanks for the info, that's good to know. It just happens that I was planning something that this will impact.
Of course, I cannot guarantee this is the same for all users - it might be something specific e.g. some drive related issue.

The key point is to test it yourself, making sure you have a backup copy of the vhdx file if it is critical.

TBH, I tend not to backup my Insider VHDX files anyway, as I can just clone my main OS to a vhdx file and reupgrade to the relevant Insider version if needed. I think it is just a waste of space creating backups of what (for me) are temporary installations anyway.
 

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
Of course, I cannot guarantee this is the same for all users - it might be something specific e.g. some drive related issue.

The key point is to test it yourself, making sure you have a backup copy of the vhdx file if it is critical.

TBH, I tend not to backup my Insider VHDX files anyway, as I can just clone my main OS to a vhdx file and reupgrade to the relevant Insider version if needed. I think it is just a waste of space creating backups of what (for me) are temporary installations anyway.
Query here -- as you seem the best qualified to answer this stuff.

Assuming a load of vhdx files on a single disk (doesn't matter if external or internal) should the main geometry be efi file large partition containing the vhdx files the thing I'm curious to know is the geometry of the contents for the vhdx files

Should they all contain efi -- windows partitions -- i.e each vhdx file has its own efi file or should they have just a data partition. Are there any advantages / drawbacks or doesn't it matter.

The main disk presumably needs an EFI file and to be GPT (if MBR it can only support 4 primary partitions and while there are get arounds W11 won't normally boot) and one has to be able to install the primary boot loader to display the boot menu and Windows choices. An efi file is just a data file stored not in the computers bios but on the HDD itself. An MBR record is stored on sector 0 of the disk and isn't an acessible "data file" in the classic sense.

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
Query here -- as you seem the best qualified to answer this stuff.

Assuming a load of vhdx files on a single disk (doesn't matter if external or internal) should the main geometry be efi file large partition containing the vhdx files the thing I'm curious to know is the geometry of the contents for the vhdx files

Should they all contain efi -- windows partitions -- i.e each vhdx file has its own efi file or should they have just a data partition. Are there any advantages / drawbacks or doesn't it matter.

The main disk presumably needs an EFI file and to be GPT (if MBR it can only support 4 primary partitions and while there are get arounds W11 won't normally boot) and one has to be able to install the primary boot loader to display the boot menu and Windows choices. An efi file is just a data file stored not in the computers bios but on the HDD itself. An MBR record is stored on sector 0 of the disk and isn't an acessible "data file" in the classic sense.

Cheers
jimbo
You only need an efi partition in the vhdx file if you intend to boot the vhdx in a virtual machine.

The host OS could be legacy bios and the native boot vhds do not use separate partitions unlike multibooting. However, always better to use UEFI.
 

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 only need an efi partition in the vhdx file if you intend to boot the vhdx in a virtual machine.

The host OS could be legacy bios and the native boot vhds do not use separate partitions unlike multibooting. However, always better to use UEFI.
Thanks

Cheers
jimbo
 

My Computer

System One

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

Latest Support Threads

Back
Top Bottom