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


cereberus

Well-known member
Guru
VIP
Local time
5:24 AM
Posts
7,311
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

System One

  • 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

System One System Two

  • OS
    Win11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self-built
    CPU
    Intel i7 11700K
    Motherboard
    ASUS Prime Z590-A MB
    Memory
    64GB (Waiting for warranty replacement of another 64GB for 128GB total)
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe SSD
    1 x 2TB NVMe SSD
    1 x 4TB NVMe SSD
    3 x 512GB 2.5" SSD
    1 x 4TB 2.5" SSD
    5 x 8TB Seagate Barracuda HDD
    PSU
    Corsair HX850i
    Case
    Corsair iCUE RGB 5000X mid tower case
    Cooling
    Noctua NF-S12A chromax.black.swap case fans (Qty. 7) & Home Computer Specifications, Configuration, and Usage Notes General Specifications ASUS Prime Z590-A motherboard, serial number M1M0KC222467ARP Intel Core i7-11700K CPU (11th Gen Rocket Lake / LGA 1200 Socket) 128GB Crucial Ballistix RGB DDR4 3200 MHz DRAM (4 x 32GB) Corsair iCUE RGB 5000X mid tower case Noctua NH-D15 chromax.black CPU cooler Noctua NF-S12A chromax.black.swap case fans (Qty. 7) & Corsair LL-120 RGB Fans (Qty. 3)
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    The five 8TB drives and three 512GB SSDs are part of a DrivePool using StableBit DrivePool software. The three SSDs are devoted purely to caching for the 8TB drives. All of the important data is stored in triplicate so that I can withstand simultaneous failure of 2 disks.

    Networking: 2.5Gbps Ethernet and WiFi 6e
  • 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 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

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 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

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