Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Virtualization»4 Ways to Fix “Virtual Machine Disks Consolidation is Needed”

4 Ways to Fix “Virtual Machine Disks Consolidation is Needed”

BhishuBy BhishuDecember 27, 2022
virtual machine disks consolidation is needed

“Virtual machine disk consolidation is needed” can pop up when merging multiple virtual disk files on the VMware vSphere Client. Basically, this is a message informing you to perform the snapshot consolidation manually.

Taking snapshots on your virtual machine creates delta disks, and all the changes are stored here. With more snaps, the delta disk file size starts to increase, which can negatively hamper the performance. To prevent such an issue, VMware vSphere Client asks you to perform disk consolidation.

Reportedly, VMSphere ESXi Host Clients didn’t face the consolidation problem with Linux or other operating systems. So, it seems the issue exists only on Windows OS servers, and this article features the related solutions for the same.

You’ll get the “Virtual machine disks consolidation is needed” error in the Summary tab of the VSphere Client when the snapshots aren’t deleted properly. Also, this can appear when the database lacks storage space which should be at least 1 GB.

Below are some of the other possible causes of this issue:
  • Snapshot files are locked
  • Snapshot consolidation failure during backups
  • Connectivity problem between the server and the ESXi host
  • One of the snapshots is undergoing consolidation
  • Poor storage system
  • More than the recommended VM snapshots (32)

Table of Contents

  • Fixing “Virtual Machine Disks Consolidation is Needed” Error
    • Consolidate Snapshot in GUI
    • Disk Consolidation in PowerCLI
    • Delete All Unwanted VM Snapshots
    • Migrate the VM to Another Host

Fixing “Virtual Machine Disks Consolidation is Needed” Error

Disk consolidation simply means deleting those redundant files that remain after a failed snapshot operation (restore, delete, delete all, etc.). The time taken to complete this process depends on the snapshot size. This means the larger the snapshot, the longer it takes to consolidate it.

Before moving forward, you need to know that you can only keep a maximum of 32 snapshots. However, we recommend keeping no more than three to four snapshots as more number can affect the performance. Also, we discourage using the same snapshot for more than 72 hours as longer they remain, the greater disk space they exert.

Now, without further delay, let’s get into the five possible solutions to fix the “Virtual machine disks consolidation is needed” error.

Consolidate Snapshot in GUI

The primary thing to carry out when you encounter the “Virtual machine disks consolidation is needed” message is to consolidate the snapshot correctly. However, consolidating snapshots in GUI is only possible with version 5 and later:

  1. Launch vSphere Client or ESXi Host Client, and from the left panel, expand Virtual Machines. 
  2. Right-click your virtual machine and choose Snapshots.
  3. Next, pick the Take Snapshot option.
    snapshots take snapshot
  4. This should take you to the Take Snapshot dialogue box. Here, input an appropriate Name and add a description.
    take snapshot for windows
  5. If you wish to take the snapshot along with the memory, we recommend checking the Snapshot virtual machine’s memory option. Then, hit the Ok button.
    snapshot the virtual machine memory
  6. Now, move to the Recent Tasks tab, where you can inspect the task status, completion time, server, and more. Here, once the status reaches 100%, know that the consolidation is completed.
    check recent tasks in vsphere

Disk Consolidation in PowerCLI

Alternatively, you can also use the command-line interface, PowerCLI, for consolidating the snapshots. This can come in handy when you want to consolidate multiple snapshots, which is a little tricky in the GUI. Kindly follow the below guide to check and consolidate disks on VSphere Client:

  1. Launch the PowerCLI utility and execute the following command to establish a connection with the vCenter Server:
    Connect-VIServer vcenter01.test.com
  2. Next, copy and paste the following command line to check those virtual machines that require consolidation:
    Get-VM | Where-Object {$_.Extensiondata.Runtime.ConsolidationNeeded}
  3. Then, run the below command to consolidate all the machines at once:
    Get-VM | Where-Object {$_.Extensiondata.Runtime.ConsolidationNeeded} | foreach {$_.ExtensionData.ConsolidateVMDisks_Task()}
    However, if you’re planning to consolidate a specific machine, here’s the command you can try:
    (Get-VM -Name "[Your VM Name]").ExtensionData.ConsolidateVMDisks()

Delete All Unwanted VM Snapshots

If you’re unable to consolidate the disk files and get another message, “An error occurred while consolidating disks”, you can try deleting all your VM snapshots. This can also be useful when a backup application locks all the files, or the consolidation option is greyed out. 

Basically, removing the unnecessary snapshots will free up the disk space that’s preventing disk consolidation. Here’s a quick workaround on how to delete snapshots:

  1. Open vSphere Client and from the left pane, expand Virtual Machine.
  2. Now, right-click on your virtual machine and select Snapshots.
  3. From the drop-down, choose Manage Screenshots.
    manage snapshots
  4. In the pop-up window, select the virtual machine and press the Delete button.
    delete snapshot
    If you wish to remove all the virtual machines, click the Delete All button.

Migrate the VM to Another Host

If the disk files are locked, there’s a high chance you get the “Virtual machine disks consolidation is needed” error. So, another method to unlock the disk files is by migrating your virtual machine to another ESXi host. This way, you can change the resource that your VM runs on. Below is the complete guide on how to move your VM to another host:

  1. In the vSphere Client or vSphere Web Client, move to the left pane, expand Virtual Machine and select the ESXi host.
  2. Switch to the right pane and right-click on your virtual machine. Here, choose the Migrate option.
  3. In the new window, select the migration type and hit Next.
  4. Then, select a compute resource and press the Next button.
  5. Now, select a network and tap Next.
  6. Pick a vMotion Priority to protect the performance of your running VM. We recommend choosing the recommended option – Schedule vMotion with high priority.
  7. In the final window, press Finish to complete the migration process. This should solve the “Virtual machine disks consolidation is needed” problem.
fix
Bhishu

Bhishu is an experienced technical writer and hardware specialist. He is passionate about repairing computers and fixing errors. At Tech News Today, he mainly covers Windows and Hardware.

Related Posts

virtualbox shared folder

How to Create Shared Folder on Virtualbox

November 29, 2022
failed to open a session for the virtual machine

How to Fix “Failed to Open a Session For The Virtual Machine” Error?

September 30, 2022
how to uninstall virtualbox

How to Uninstall VirtualBox on Windows

September 28, 2022
how to use vmware

How to Use VMware (Detailed Guide)

September 23, 2022
virtualize a physical machine vmware

How To Virtualize A Physical Machine With VMware

September 17, 2022
virtualbox-copy-paste-not-working

Virtualbox Copy Paste Not Working? Here’s How to Fix it

September 17, 2022
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
what is ghost of tsushima legends

What is the Ghost of Tsushima Legends Mode

January 12, 2023
raid 5 vs raid 10

RAID 5 Vs RAID 10 – Which One Is Better?

January 12, 2023
best-tv-settings-for-gaming

Best TV Settings for Gaming

January 9, 2023
You may also like
tv-screen-goes-black-randomly

TV Screen Goes Black Randomly? Try These 11 Fixes

January 15, 2023
how to find unique values in excel

How to Find Unique Values in Excel

January 15, 2023
how-to-open-and-use-chrome-settings

How to Open and Use Chrome Settings

January 16, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Editorial Guidelines
  • Fact-Checking Policy
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday.

Type above and press Enter to search. Press Esc to cancel.