VM Workstation Pro


bobbybob

New member
Local time
2:44 AM
Posts
8
OS
11
Hello, first time post so go easy on me. running vmware workstation Pro 17. with a windows 11 host. I'm unable to "clean up disks" it identifies that about 1tb of space can be reclaimed, says it completes but doesn't actually do anything. I've done all the basic stuff such as defrag etc. i'm tired of creating new VM's and imaging them from one to the next. does this have something to do with TPM and encryption? or what are your thoughts on how to get these vmk to shrink?
 
Windows Build/Version
11

My Computer

System One

  • OS
    11
    Computer type
    PC/Desktop
what are your thoughts on how to get these vmk to shrink?
Welcome to Eleven Forum.

See if this helps....

Workstation virtual machines can be pre-allocated or sparse.
  • In a pre-allocated virtual machine, the size of the virtual disk file .... is equal to the size of the virtual machine.
  • In a sparse virtual machine, the size of the virtual disk file (or files) is equal to the total used space of the virtual machine.
.... if the size of your virtual disks is significantly larger than the used space shown in the virtual machine's operating system, it is possible to reduce this size.
 

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Dev, Beta, and RP 24H2 as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, Canary, and Release Preview builds as a native boot .vhdx.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Lattitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Dev, Beta, and RP 24H2 as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, Canary, and Release Preview builds as a native boot .vhdx.
Hello, first time post so go easy on me. running vmware workstation Pro 17. with a windows 11 host. I'm unable to "clean up disks" it identifies that about 1tb of space can be reclaimed, says it completes but doesn't actually do anything. I've done all the basic stuff such as defrag etc. i'm tired of creating new VM's and imaging them from one to the next. does this have something to do with TPM and encryption? or what are your thoughts on how to get these vmk to shrink?
I am not sure about vmk files but vhdx files exhibit similar issues.

Suppose you have used 50 GB space on an 80GB drive, and then you delete 5GB of stuff in vhdx file, you would expect to see the vhdx file as only be using 45GB but it still shows externally as 50 GB.

Basically the 5GB recovered is not really deleted but it can be re-used i.e.inside the vm it shows as only 45GB being used.

In the end, when running the vm, you still have 35 GB to use allthough externally you get the illusion you only have 30GB to use.

There are ways to sort this out. Easiest way is to clone vhdx to a second vhdx.

I see @Brink has suggested a solution but I never found the vhdx compact method ever recovers much.
 

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)
The only other thing that would be stopping you is if you have snapshots, remove all snapshots and then you can compact the VM disk size, as long as you don't have the space pre allocated. If you have snapshots, remove them, compact, then take a snapshot.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS Z790-P PRIME WiFi Intel LGA 1700 ATX Motherboard
    CPU
    i9 12900K
    Motherboard
    Asus Z790 Pro
    Memory
    64GB DDR5 6400
    Graphics Card(s)
    Nvidia RTX 2070 Super
    Sound Card
    Built in to MB
    Monitor(s) Displays
    2 x AOC 32in using Display ports
    Screen Resolution
    1920x1080 - Yeah I'm old
    Hard Drives
    2TB Samsung 990 pro and 16TB Seagate Iron Wolf Pro v2
    PSU
    MSI MAG A750GL PCIE 5 & ATX 3.0 Gaming Power Supply - Full Modular - 80 Plus Gold Certified 750W
    Case
    It's a 11 year old PC case, generic, still works why buy fancy
    Cooling
    An extra 80mm case fan to exhaust the heat
    Keyboard
    HyperX
    Mouse
    Logitech G502
    Internet Speed
    1.4GB download, 45MB upload
    Browser
    Firefox
    Antivirus
    Defender with Malwarebytes
    Other Info
    ASUS ROG Rapture GT-AX11000 Pro Tri-Band WiFi 6 Extendable Gaming Router, 10G & 2.5G Ports and Three ASUS ZenWiFi AX Whole-Home Tri-band Mesh WiFi 6 System (XT8). This is a Solid Wifi system with awesome coverage in my whole house and yard. The ZenWiFI benchmarks at 720MB downloads from the 1.4GB going into the 2.5GB port.
hello ty for the responses. there are no snapshots (I double checked) also when I have a windows 10 host I don't have this issue at all. but I also don't add tpm or encrypt the machine the way windows 11 requires? i know i'm hung up on that right now. Back to my windows 11 machine. I've also added a second virtual hdd to a secondary physical drive, I have the same issue I moved about 500gig to it, deleted it, removed from recycling bin, ran disk clean up (within windows) within the host it showed 0 file 0 folders. it was empty. workstation pro shows 500+gig in use said it could reclaim the 500+ it ran for a short moment said done but never reduced the size.
 

My Computer

System One

  • OS
    11
    Computer type
    PC/Desktop
hello ty for the responses. there are no snapshots (I double checked) also when I have a windows 10 host I don't have this issue at all. but I also don't add tpm or encrypt the machine the way windows 11 requires? i know i'm hung up on that right now. Back to my windows 11 machine. I've also added a second virtual hdd to a secondary physical drive, I have the same issue I moved about 500gig to it, deleted it, removed from recycling bin, ran disk clean up (within windows) within the host it showed 0 file 0 folders. it was empty. workstation pro shows 500+gig in use said it could reclaim the 500+ it ran for a short moment said done but never reduced the size.
I think there is some confusion with the allocated virtual space vs. actual space.

On the screenshot below, I have 4 VMs, 2 Linux/2 Win11 ,each allocated 100 GB, yet the drive size I: is only 152 GB.
If that space was truly allocated, it would be 400 GB.

Screenshot 2024-08-28 174218.jpg
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    ASUSTeK COMPUTER INC. TUF Gaming FX705GM
    CPU
    2.20 gigahertz Intel i7-8750H Hyper-threaded 12 cores
    Motherboard
    ASUSTeK COMPUTER INC. FX705GM 1.0
    Memory
    24428 Megabytes
    Graphics Card(s)
    Intel(R) UHD Graphics 630 / NVIDIA GeForce GTX 1060
    Sound Card
    Intel(R) Display Audio / Realtek(R) Audio
    Monitor(s) Displays
    Integrated Monitor (17.3"vis)
    Screen Resolution
    FHD 1920X1080 16:9
    Hard Drives
    2 SSD SATA/NVM Express 1.3
    WDS500G2B0A-00SM50 500.1 GB
    WDCSDAPNUW-1002 256 GB
    PSU
    19V DC 6.32 A 120 W
    Cooling
    Dual Fans
    Mouse
    MS Bluetooth
    Internet Speed
    Fiber 1GB Cox -us & ADSL Bouygues -fr
    Browser
    Edge Canary- Firefox Nightly
    Antivirus
    Windows Defender
    Other Info
    VMs of Windows 11 stable/Beta/Dev/Canary
    VM of XeroLinux- Arch based & Debian 12
  • Operating System
    Windows 11 Insider Canary
    Computer type
    Laptop
    Manufacturer/Model
    ASUS X751BP
    CPU
    AMD Dual Core A6-9220
    Motherboard
    ASUS
    Memory
    8 GB
    Graphics card(s)
    AMD Radeon R5 M420
    Sound Card
    Realtek
    Monitor(s) Displays
    17.3
    Screen Resolution
    1600X900 16:9
    Hard Drives
    1TB 5400RPM
I think there is some confusion with the allocated virtual space vs. actual space.

On the screenshot below, I have 4 VMs, 2 Linux/2 Win11 ,each allocated 100 GB, yet the drive size I: is only 152 GB.
If that space was truly allocated, it would be 400 GB.

View attachment 106369


Hello, I appreciate your thoughts but I'm not confused on allocated vs actual space. the 500g I referenced before was on a virtual disk that was not preallocated, and was a 2TB drive. I'm currently copying some data over to provide screen shots.
 

My Computer

System One

  • OS
    11
    Computer type
    PC/Desktop
Hello, I appreciate your thoughts but I'm not confused on allocated vs actual space. the 500g I referenced before was on a virtual disk that was not preallocated, and was a 2TB drive. I'm currently copying some data over to provide screen shots.

In order to reduce allocated size you need to reduce the size within the VM, exit the VM & reclaim the actual space through the Pro interface.
That is the only way you can reclaim that space.

Screenshot 2024-08-28 175852.jpg

As a result, within one of the VMs, Dev in this case, it looks like this:

Screenshot 2024-08-28 180702.png
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    ASUSTeK COMPUTER INC. TUF Gaming FX705GM
    CPU
    2.20 gigahertz Intel i7-8750H Hyper-threaded 12 cores
    Motherboard
    ASUSTeK COMPUTER INC. FX705GM 1.0
    Memory
    24428 Megabytes
    Graphics Card(s)
    Intel(R) UHD Graphics 630 / NVIDIA GeForce GTX 1060
    Sound Card
    Intel(R) Display Audio / Realtek(R) Audio
    Monitor(s) Displays
    Integrated Monitor (17.3"vis)
    Screen Resolution
    FHD 1920X1080 16:9
    Hard Drives
    2 SSD SATA/NVM Express 1.3
    WDS500G2B0A-00SM50 500.1 GB
    WDCSDAPNUW-1002 256 GB
    PSU
    19V DC 6.32 A 120 W
    Cooling
    Dual Fans
    Mouse
    MS Bluetooth
    Internet Speed
    Fiber 1GB Cox -us & ADSL Bouygues -fr
    Browser
    Edge Canary- Firefox Nightly
    Antivirus
    Windows Defender
    Other Info
    VMs of Windows 11 stable/Beta/Dev/Canary
    VM of XeroLinux- Arch based & Debian 12
  • Operating System
    Windows 11 Insider Canary
    Computer type
    Laptop
    Manufacturer/Model
    ASUS X751BP
    CPU
    AMD Dual Core A6-9220
    Motherboard
    ASUS
    Memory
    8 GB
    Graphics card(s)
    AMD Radeon R5 M420
    Sound Card
    Realtek
    Monitor(s) Displays
    17.3
    Screen Resolution
    1600X900 16:9
    Hard Drives
    1TB 5400RPM
In order to reduce allocated size you need to reduce the size within the VM, exit the VM & reclaim the actual space through the Pro interface.
That is the only way you can reclaim that space.

View attachment 106374


is this a windows 11 specific issue? never done that with any other OS to reduce actual size on disk.

what causes this is I move an enormous amount of data on off virtual disks on a windows machine. the virtual disk size grows even though i'm removing\deleting data from within the host. this is normal behavior of a windows vm. so it's not uncommon for me on a weekly basis shut down the vm host "clean up disks" to reduce the size of the file so my hardware host doesn't run out of space. I've done this for years with windows XP, windows 7, and windows 10 hosts with no issue. only when I started using windows 11 hosts do I run into this issue?
 

My Computer

System One

  • OS
    11
    Computer type
    PC/Desktop
is this a windows 11 specific issue? never done that with any other OS to reduce actual size on disk.

what causes this is I move an enormous amount of data on off virtual disks on a windows machine. the virtual disk size grows even though i'm removing\deleting data from within the host. this is normal behavior of a windows vm. so it's not uncommon for me on a weekly basis shut down the vm host "clean up disks" to reduce the size of the file so my hardware host doesn't run out of space. I've done this for years with windows XP, windows 7, and windows 10 hosts with no issue. only when I started using windows 11 hosts do I run into this issue?
I do not know why you have that issue.
I do not get what you mean by 'removing data'?
Do you mean truncating the volume? Compacting the volume? Within the VM? or from the host?
Please clarify.

As you can see I can run 4 VMs, one at a time, within a small partition of 150 GB with room to spare.
A backup of those 4 VMs takes less than 1 minute.
You might have to reassess your setup and modify it accordingly.
And no, nothing has changed in Win11.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    ASUSTeK COMPUTER INC. TUF Gaming FX705GM
    CPU
    2.20 gigahertz Intel i7-8750H Hyper-threaded 12 cores
    Motherboard
    ASUSTeK COMPUTER INC. FX705GM 1.0
    Memory
    24428 Megabytes
    Graphics Card(s)
    Intel(R) UHD Graphics 630 / NVIDIA GeForce GTX 1060
    Sound Card
    Intel(R) Display Audio / Realtek(R) Audio
    Monitor(s) Displays
    Integrated Monitor (17.3"vis)
    Screen Resolution
    FHD 1920X1080 16:9
    Hard Drives
    2 SSD SATA/NVM Express 1.3
    WDS500G2B0A-00SM50 500.1 GB
    WDCSDAPNUW-1002 256 GB
    PSU
    19V DC 6.32 A 120 W
    Cooling
    Dual Fans
    Mouse
    MS Bluetooth
    Internet Speed
    Fiber 1GB Cox -us & ADSL Bouygues -fr
    Browser
    Edge Canary- Firefox Nightly
    Antivirus
    Windows Defender
    Other Info
    VMs of Windows 11 stable/Beta/Dev/Canary
    VM of XeroLinux- Arch based & Debian 12
  • Operating System
    Windows 11 Insider Canary
    Computer type
    Laptop
    Manufacturer/Model
    ASUS X751BP
    CPU
    AMD Dual Core A6-9220
    Motherboard
    ASUS
    Memory
    8 GB
    Graphics card(s)
    AMD Radeon R5 M420
    Sound Card
    Realtek
    Monitor(s) Displays
    17.3
    Screen Resolution
    1600X900 16:9
    Hard Drives
    1TB 5400RPM
wow just had an interesting test result. I'm normally trying to clean up disks to reclaim 300-800gig. for the sake of speed I stopped my transfer at about 20gig and tried to clean up disks and it worked! i didn't do anything different. my issue seems to be tied to the amount of space i'm trying to reclaim. i'm setting up more tests to see where the breaking point is. any one with experience on this?
 

My Computer

System One

  • OS
    11
    Computer type
    PC/Desktop
i wonder if on the backend it kicks off a process to "shrink" the dynamically expanding file and immediately returns control appearing that it's complete, but in actuality it's continuing to work it's way through the file in the background and just due to the size of the files in your case, it takes a fair amount of time.

just spitballing.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink SEI8
    CPU
    Intel Core i5-8279u
    Motherboard
    AZW SEI
    Memory
    32GB DDR4 2666Mhz
    Graphics Card(s)
    Intel Iris Plus 655
    Sound Card
    Intel SST
    Monitor(s) Displays
    Asus ProArt PA278QV
    Screen Resolution
    2560x1440
    Hard Drives
    512GB NVMe
    PSU
    NA
    Case
    NA
    Cooling
    NA
    Keyboard
    NA
    Mouse
    NA
    Internet Speed
    500/50
    Browser
    Edge
    Antivirus
    Defender
    Other Info
    Mini PC used for testing Windows 11.
  • Operating System
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 5900x
    Motherboard
    Asus Rog Strix X570-E Gaming
    Memory
    64GB DDR4-3600
    Graphics card(s)
    EVGA GeForce 3080 FT3 Ultra
    Sound Card
    Onboard
    Monitor(s) Displays
    ASUS TUF Gaming VG27AQ. ASUS ProArt Display PA278QV 27” WQHD
    Screen Resolution
    2560x1440
    Hard Drives
    2TB WD SN850 PCI-E Gen 4 NVMe
    2TB Sandisk Ultra 2.5" SATA SSD
    PSU
    Seasonic Focus 850
    Case
    Fractal Meshify S2 in White
    Cooling
    Dark Rock Pro CPU cooler, 3 x 140mm case fans
    Mouse
    Logitech G9 Laser Mouse
    Keyboard
    Corsiar K65 RGB Lux
    Internet Speed
    500/50
    Browser
    Chrome
    Antivirus
    Defender.
i wonder if on the backend it kicks off a process to "shrink" the dynamically expanding file and immediately returns control appearing that it's complete, but in actuality it's continuing to work it's way through the file in the background and just due to the size of the files in your case, it takes a fair amount of time.

just spitballing.
Good thought! it's possible.... I've got 3 new VM's spun up and they are copying data, it will take a while for me to finish the test due to the size of the data and only having a 1g interface to move it on. I'll update the thread with my results later tonight.
 

My Computer

System One

  • OS
    11
    Computer type
    PC/Desktop
ok believe I can verify that it's not running in the background. it just doesn't run. I cannot reproduce this issue when the total reclaim amount is 200G or less. I skipped 300g and 400g, and found at 500g I can consistently reproduce this failure. my hardware host only had 128gig left on a 1tb drive. I had a thought that maybe it has to do with how much free space or lack there of may contribute to this problem? For my last test I'm moving the entire vm host to a bigger harddrive for a retest. i'm hoping this will prove that it doesn't have to get bigger before smaller kind of thing. It's late I'll do my last test tomorrow and report the results.
 

My Computer

System One

  • OS
    11
    Computer type
    PC/Desktop
ok believe I can verify that it's not running in the background. it just doesn't run. I cannot reproduce this issue when the total reclaim amount is 200G or less. I skipped 300g and 400g, and found at 500g I can consistently reproduce this failure. my hardware host only had 128gig left on a 1tb drive. I had a thought that maybe it has to do with how much free space or lack there of may contribute to this problem? For my last test I'm moving the entire vm host to a bigger harddrive for a retest. i'm hoping this will prove that it doesn't have to get bigger before smaller kind of thing. It's late I'll do my last test tomorrow and report the results.
well that didn't work. when there is a large amount 500g+ of disk space to be reclaimed this process just fails. maybe a software "feature"? I'll have to clean up disk's much earlier in their life to get around this. Ty everyone for your time and help.
 

My Computer

System One

  • OS
    11
    Computer type
    PC/Desktop
well that didn't work. when there is a large amount 500g+ of disk space to be reclaimed this process just fails. maybe a software "feature"? I'll have to clean up disk's much earlier in their life to get around this. Ty everyone for your time and help.

@bobbybob

One way of doing it is to image the VM via Macrium / other type of backup software, delete the VM disk, re-allocate a new one of the size / type you want and then restore the backed up image to the new VM disk.

Use a stand alone bootable restore program to restore -- e.g an iso image and boot that IN THE VM.

This method Works for "all known" VM's !!!! -- also a good way to copy say a VMWare VM to Hyper-V or even KVM/QEMU.

If re-sizing VmWare using this method VM's don't delete the VM itself and the config file - just re-assign the virtual disk(s).

The Vm program should be able to add missing drivers when changing say from VmWare to Hyper-V / Virtual box or from a Linux KVM/QEMU to any vityualplatform on Windows -- or even if you want to create a physical Windows system from the VM (V2P conversion). -- Windows is pretty OK booting up a basic image on all sorts of different hardware- just update later. Note though in changing VM platfoerms you *Might* have to re-activate Windows again -- not always though -- depends on the amount of "common paravirtualisation of hardware" exists between the different VM platforms.

The last version of Macrium Free (the old Freebie) still works for this type of stuff BTW - just create the stand alone bootable iso.

In the unlikely event of the VM failing to boot just re-create the bootloader via bcdboot.exe -- the stand alone Macriun restore iso has a PE command line which works, or use any Windows install media and choose -->repair computer and get into command propmpt which is also a Winpe system - from which you can run bcdboot.exe.

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