VMware ESXi Resize the disk of a Windows host

Mau paham tentang VMware ESXi Resize the disk of a Windows host, hanya disiniaja

Apr 21, 2024 - 16:47
Apr 21, 2024 - 17:40
 0  261

We will demonstrate how to use vSphere and OS management tools to add space to your virtual disks for Windows.
In the vSphere interface menu, go to the OS Hosts dashboard.

Before you can reduce the size of the virtual disk on the VMWare ESXi datastore:

1. Delete all virtual machine snapshots;

Run your Windows Hosts.

2. Delete all files and uninstall program not used;

The recommended system partition size is greater than 1 GB

Shutdown your Windows Hosts

3. Edit your ESXi host drive to large size

Start vm


4. Extend a Partition in a Windows Virtual Machine

You must start the Disk Management console (Computer Management-> Storage-> Disk Management)

In this case, the WinRE Recovery Partition is to the right of the partition we want to shrink. To shrink the partition in Windows, there should be no other partitions to the right of the partition you are trying to shrink. You Cannot extend volume blocked by A Recovery Partition.

Fix: Can’t Extend Volume in Windows
First, assign a drive letter to the recovery partition. Open a command prompt as an administrator and run:

diskpart

List available local disks:

DISKPART> list disk

Choose your disk where existing system volume:

DISKPART> select disk 0

 List available local partition disks:

DISKPART> list part

 

Select the recovery partition (in your case it may be a different partition number):

DISKPART> select part 4

 

DISKPART> assign letter r:

DISKPART> exit

 

reagentc /info

reagentc /disable

diskpart

DISKPART> rescan

DISKPART> list disk

DISKPART> select disk 0

DISKPART> list part

DISKPART> select part 4

DISKPART> delete partition override

DISKPART> rescan

DISKPART> exit

reagentc /info

reagentc /enable

bcdedit /enum all | find "osdevice"

 

Check your current WinRE configuration:

reagentc.exe /info

Now you can extend your system partition (drive C:):

·         Open the diskmgmt.msc console;

·         Right-click on the partition you want to increase and select Extend Volume; extend drive C in windows

·         Specify the amount of space in MB you want to increase your partition. In my case, I will extend the C: drive by 5 GB. Click Next -> Finish; Extend Volume to Unallocated Space in Windows

·         The system partition has been extended successfully.  Increase C Drive Space in Windows

Reboot

reagentc.exe /info

reagentc /disable

reagentc /info

diskpart

DISKPART> list disk

DISKPART> sel disk 0

DISKPART> list part

 select type primary

sel part 2

shrink desired=1024 minimum=1024

First, check if the disk partition style is a GUID Partition Table (GPT) or a Master Boot Record (MBR).

To do that, run list disk. Check if there is an asterisk character (*) in the “Gpt” column.

  If there is an asterisk character (*), then the drive is GPT. Otherwise, the drive is MBR.

If your disk is GPT

create partition primary id=de94bba4-06d1-4d40-a16a-bfd50179d6ac

gpt attributes =0x8000000000000001

 

If your disk is MBR

create partition primary id=27

format quick fs=ntfs label=”Windows RE tools

list vol

exit

reagentc /enable

After reagent enable then FINISH TO REBOOT

OK Finish.

You can watch this lesson on YouTube to understand better. Don't forget to help our channel to develope further so that, there is nothing that can't be done except https://disiniaja.id.

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow