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


cereberus

Well-known member
Guru
VIP
Local time
9:52 AM
Posts
8,693
OS
Windows 11 Pro + Win11 Canary VM.
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 My Computer

At a glance

Windows 11 Pro + Win11 Canary VM.I9 13th gen i9-13900H 2.60 GHZ16 GB solderedIntegrated Intel Iris XE
OS
Windows 11 Pro + Win11 Canary VM.
Computer type
Laptop
Manufacturer/Model
ASUS Zenbook 14
CPU
I9 13th gen i9-13900H 2.60 GHZ
Motherboard
Yep, Laptop has one.
Memory
16 GB soldered
Graphics Card(s)
Integrated Intel Iris XE
Sound Card
Realtek built in
Monitor(s) Displays
laptop OLED screen
Screen Resolution
2880x1800 touchscreen
Hard Drives
1 TB NVME SSD (only weakness is only one slot)
PSU
Internal + 65W thunderbolt USB4 charger
Case
Yep, got one
Cooling
Stella Artois (UK pint cans - 568 ml) - extra cost.
Keyboard
Built in UK keybd
Mouse
Bluetooth , wireless dongled, wired
Internet Speed
900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
Browser
Edge
Antivirus
Defender
Other Info
TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

Macrium Reflect Home V8
Office 365 Family (6 users each 1TB onedrive space)
Hyper-V (a vm runs almost as fast as my older laptop)
Thanks for the info, that's good to know. It just happens that I was planning something that this will impact.
 

My Computers My Computers

  • At a glance

    Win11 Pro 25H2 (RTM+)Intel i7-14650HX32 GBNo GPU - Built-in Intel Graphics
    OS
    Win11 Pro 25H2 (RTM+)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic
    CPU
    Intel i7-14650HX
    Memory
    32 GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    Varies as machine will often be moved to locations with different monitors
    Screen Resolution
    Varies
    Hard Drives
    1 x 1TB Gen 4 NVMe SSD
    PSU
    120W Power Brick
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • At a glance

    Win11 Pro 25H2 (RTM+)Intel i7-1255U16 GBIntel Iris Xe Graphics
    Operating System
    Win11 Pro 25H2 (RTM+)
    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
    Keyboard
    Backlit, spill resistant keyboard
    Mouse
    Buttonless Glass Precision Touchpad
    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 My Computer

At a glance

Windows 11 Pro + Win11 Canary VM.I9 13th gen i9-13900H 2.60 GHZ16 GB solderedIntegrated Intel Iris XE
OS
Windows 11 Pro + Win11 Canary VM.
Computer type
Laptop
Manufacturer/Model
ASUS Zenbook 14
CPU
I9 13th gen i9-13900H 2.60 GHZ
Motherboard
Yep, Laptop has one.
Memory
16 GB soldered
Graphics Card(s)
Integrated Intel Iris XE
Sound Card
Realtek built in
Monitor(s) Displays
laptop OLED screen
Screen Resolution
2880x1800 touchscreen
Hard Drives
1 TB NVME SSD (only weakness is only one slot)
PSU
Internal + 65W thunderbolt USB4 charger
Case
Yep, got one
Cooling
Stella Artois (UK pint cans - 568 ml) - extra cost.
Keyboard
Built in UK keybd
Mouse
Bluetooth , wireless dongled, wired
Internet Speed
900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
Browser
Edge
Antivirus
Defender
Other Info
TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

Macrium Reflect Home V8
Office 365 Family (6 users each 1TB onedrive space)
Hyper-V (a vm runs almost as fast as my older laptop)
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 My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
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 My Computer

At a glance

Windows 11 Pro + Win11 Canary VM.I9 13th gen i9-13900H 2.60 GHZ16 GB solderedIntegrated Intel Iris XE
OS
Windows 11 Pro + Win11 Canary VM.
Computer type
Laptop
Manufacturer/Model
ASUS Zenbook 14
CPU
I9 13th gen i9-13900H 2.60 GHZ
Motherboard
Yep, Laptop has one.
Memory
16 GB soldered
Graphics Card(s)
Integrated Intel Iris XE
Sound Card
Realtek built in
Monitor(s) Displays
laptop OLED screen
Screen Resolution
2880x1800 touchscreen
Hard Drives
1 TB NVME SSD (only weakness is only one slot)
PSU
Internal + 65W thunderbolt USB4 charger
Case
Yep, got one
Cooling
Stella Artois (UK pint cans - 568 ml) - extra cost.
Keyboard
Built in UK keybd
Mouse
Bluetooth , wireless dongled, wired
Internet Speed
900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
Browser
Edge
Antivirus
Defender
Other Info
TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

Macrium Reflect Home V8
Office 365 Family (6 users each 1TB onedrive space)
Hyper-V (a vm runs almost as fast as my older laptop)
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 My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2

Latest Support Threads

Back
Top Bottom