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


rick99

New member
Local time
2:25 PM
Posts
8
OS
Windows 10
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 10

cereberus

Well-known member
Power User
VIP
Local time
7:25 PM
Posts
1,685
OS
Windows 10 Pro + others in VHDs
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 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

rick99

New member
Thread Starter
Local time
2:25 PM
Posts
8
OS
Windows 10
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 10
Top Bottom