Jump to content

Win 11 VM.img expanded beyond size of Drive


Go to solution Solved by Johns6977,

Recommended Posts

I ran into a problem I can't seem to find an answer to when searching  on the forum.

 

I have a virtual machine for windows 11 (win11 vm) that is 460GB; there is 200GB of free space on the windows install (so it is not full). 

 

The VM is on a 500GB NVME Drive, however the Vdisk.img is now 496GB. 

 

Is there away to shrink the Vdisk.img back down from 496GB to 460GB without destroying the win11 install?

 

Thank you for the help! 

Edited by Johns6977
Link to comment
  • Solution
Posted (edited)

Solved this. Had to edit the VM and add discard='unmap' to the VM editor (in Unraid) and then start the the win11 VM and optimize storage and trim the hard drive through windows 11 OS. I  watched on unraid main page as I reclaimed my missing space on the drive. 

 

    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback' discard='unmap' />

      <source file='/mnt/cache/domains/Windows 11/vdisk1.img'/>

 

Thanks to these two links:

 

 

 

 

Edited by Johns6977
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...