Created a Custom Windows 11 VHD - Mounting the VHD does not assign a drive letter


rick99

Well-known member
Member
VIP
Local time
4:20 AM
Posts
113
Visit site
OS
Windows 11
I created a custom Windows 11 VM as described in Kari's thread, Create Windows 10 ISO image from Existing Installation. Starting with Step 4.6, he shows how to create a custom install.wim. When I mount the AVHDX file associated with the most recent snapshot in Disk Management, the system does not assign a drive letter. Therefore, I cannot proceed with the DISM command (below) to create the WIM as it requires a drive letter for the /capturedir argument.

dism /capture-image /imagefile:D:\install.wim /capturedir:K:\ /name:"AnyName" /compress:maximum /checkintegrity /verify /bootable

This works with my Windows 10 VMs. I cannot even right-click the mount in Disk Management and assign a letter as those options are greyed out. Does anyone know why this is happening and how I can get around this to create my install.wim?
 
Windows Build/Version
Windows 10 21H1 Build 19043.1526

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
I would try and use the merge option from Hyper-V edit disk menu, and create a NEW vhdx file (merge the checkpoint with parent vhdx file). Then try and mount new vhdx file.
 

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. I also tried to mount the parent vhdx file (without merging) but that didn't help. I then used Diskpart to assign a letter to the volume and that worked for some reason.

Doesn't deleting the checkpoint also merge the snapshot with the parent... leaving just a vhdx file?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop

Similar threads

Replies
159
Views
62K
Back
Top Bottom