How to shrink a vmware virtual machine and free up disk space

Our group of consultants have been completely vetted for his or her experience and business expertise. Specialists with Gold standing have obtained one in every of our highest-level Professional Awards, which acknowledge consultants for his or her beneficial contributions.

EE Fellow, MVE, Professional of the Yr 2021,2017-11, Scribe 2016-2012, Creator of the Yr 2018-6,2013-2012 VMware vExpert Professional, vExpert 2022-2011

HOW TO: Shrink a VMware Virtual Machine Disk (VMDK) in 15 minutes

In my earlier Specialists Change Articles, most have featured Primary and Intermediate VMware and Virtualisation Matters.

If you need to learn my Primary VMware articles, they’re listed right here in your comfort.

Throughout this sequence of articles VMware launched VMware vSphere 5.5 and VMware vSphere Hypervisor ESXi 5.5. These articles are additionally relevant to VMware vSphere Hypervisor ESXi 5.x and 5.5. For consistency, I’ve used VMware vSphere Hypervisor ESXi 5.1 by means of this sequence.

Growing the scale of a VMware Virtual Machine Disk (VMDK) is easy, and is supported within the vSphere Consumer, by choosing the virtual exhausting disk, and growing the scale utilizing the up arrow. or typing in a new worth. Please see my earlier Specialists Change article:

Nonetheless, though there may be a down arrow current, you can not shrink the disk on this approach, it isn’t supported. The one supported technique of shrinking a VMware virtual machine disk (VMDK) is to use VMware vCenter Converter Standalone and create a virtual to virtual (V2V) conversion, a related course of to a Bodily to Virtual (P2V) conversion.

Please see my earlier Specialists Change articles

The virtual machine is transformed, so there may be a small danger, the conversion may cause points with the transformed virtual machine.

After studying and understanding this text, it is possible for you to to scale back the scale of virtual machine disks in lower than 5 minutes. I’ll let the reader determine if that is a quicker technique than the standard observe of utilizing a V2V, to change the scale of a VMware Virtual Machine Disk (VMDK). From time to time we come throughout an set up, the place an Administrator has assigned a 2TB virtual disk, and doesn’t have the space to create a V2V!

On this article we’ll present you HOW TO: Shrink a VMware Virtual Machine Disk (VMDK) in 15 minutes

I really feel that is a little extra superior, so I’ve not included it within the Primary VMware article sequence.

Earlier than your begin the next process, please guarantee you will have a legitimate and examined Full Backup of your virtual machine. This doesn’t imply a VMware Snapshot.

Additionally test to see the virtual machine is NOT operating on a Snapshot disk, If not sure please refer to my Specialists Change Article

The next process is break up into two components

1. Login to the Virtual Machine and shrink the OS Partition

Earlier than we are able to shrink the VMware virtual machine disk (VMDK), we want to shrink the OS partition. (to keep away from file system corruption). On this instance I’m utilizing Home windows 2008 R2, which has a shrink operate. If you’re utilizing one other OS, please see the opposite third social gathering partition utilities which can be found, they’re listed in my Specialists Change article

Utilizing an RDP (Distant Desktop Protocol) connection or join by way of the Console, utilizing the vSphere Consumer, login to the virtual machine as an Administrator.
Press Management-Alt-Delete to login to the virtual machine.
Proper Click on My Laptop and Choose Handle
Choose Disk Administration, and choose the partition you want to shrink.
Proper Click on the Quantity/Partition to shrink, and choose Shrink.
The above dialogue will briefly seem while the file system is queried.
the above dialogue will seem. Enter a measurement to scale back the OS partition.

On this instance the VMware virtual machine disk (VMDK) is 40GB, and we want to scale back the scale of the VMware virtual machine disk (VMDK) to 20GB. The Disk Administration utility scans the obtainable file system, and studies a most measurement the OS partition could be scale back by, that is based mostly on present file system utilization.

Enter the determine 19.5 (GB) x 1024 = 19968
OS Partition measurement after Shrink Operation.
As could be clearly seen within the above screenshot, there may be now an unallocated 19.5GB space on the virtual disk, in Step 2 the VMware virtual machine disk (VMDK) will likely be “chopped”, eradicating this unallocated storage space, and lastly decreasing the virtual machine disk (VMDK) to 20GB. Offering that we DO NOT have an effect on the prevailing partitions, that is a secure operation. So in impact the “minimize” will likely be made within the unallocated storage space, after the OS partition.

2. Lowering the scale of the VMware Virtual Machine Disk (VMDK)

Login and join to the VMware vSphere Host ESXi server which hosts the virtual machine.

see my earlier Specialists Change articles

Energy OFF the Virtual Machine, and change to the datastore path the place the VMware virtual machine disk (VMDK) is positioned.

cd /vmfs/volumes//
We’d like to edit the *.vmdk, which is the descriptor file, which accommodates the variables for the scale of the *.-flat.vmdk. Utilizing cat, that is what the descriptor file accommodates
The quantity highlighted above, below the heading #Extent description, after the letters RW, defines the scale of the VMware virtual disk (VMDK).

this quantity – 83886080, and it is calculated as follows:

40 GB = 40 * 1024 * 1024 * 1024 / 512 = 83886080

We needed to scale back the scale of the VMware virtual machine disk (VMDK) from 40 GB to 20 GB. So the worth we want to enter into the descriptor file is:-

20 GB = 20 * 1024 * 1024 * 1024 / 512 = 41943040

Utilizing vi, edit the descriptor file, and change the quantity from 83886080 to 41943040, and save the file.
Migrate or Copy the virtual machine to one other datastore, should you should not have the migrate possibility, see my Specialists Change article right here

After the virtual machine disk (VMDK) has been moved, you’ll discover the disk measurement displays the specified measurement of 20GB.
After restarting the virtual machine, and checking with Disk Administration, you’ll discover the 19.5GB unallocated storage space, has been eliminated, and disappeared.

Congratulations, you will have efficiently Shrunk a VMware Virtual Machine Disk (VMDK)

************************** ********** ********** ********** ********** **********
Thanks for studying my article, please depart beneficial suggestions. If you happen to favored my VMware article and would love to see extra Articles from me, please click on the Sure button close to the: Was this text useful? on the backside of this text slightly below and to the best of this info. Thank You. Don’t forget in case you have a query about this text or one other VMware, Virtualisation, Home windows Server 2012 query, why not submit a Query for me and the opposite Specialists Change Specialists within the VMware, Virtualisation, Home windows 2008, Home windows 2012 Zones. I look ahead to listening to from you. – Andy :- twitter @einsteinagogo
************************** ********** ********** ********** ********** **********

What I already did, on the visitor I shrunk the C partition to 500Gb there may be solely 100Gb of knowledge on it.

What methods are there to shrink the disk savely to 500Gb and preverably to 200Gb?

Enter to win a Midnight Aluminum Apple Watch Collection 7

Contest ends 2022-09-30 Contests Go to this BMC Management-M web page and full the shape Contest Particulars View all contests

My advice could be to use VMware Converter to V2V the prevailing VM, and alter the sizes of the goal disks as you want.

13 Replies

Model Consultant for Action1 RMM

1. Login to the Virtual Machine and shrink the Partition you need at home windows degree with disk administration.

2. Lowering the scale of the VMware Virtual Machine Disk (VMDK) with desctripter file on esxi host.

V2V has its personal execs and cons, test in above hyperlink and its on you which of them approach you need to do with.

You can’t shrink a virtual disk in VMWare though there may be an possibility to achieve this. There are two methods round it, your can use VMWare Convertor to carry out a V2V, then shrink the disk or you may create a smaller vmdk and copy the information to it , then delete the outdated one.

Peter (Action1) wrote:

1. Login to the Virtual Machine and shrink the Partition you need at home windows degree with disk administration.

2. Lowering the scale of the VMware Virtual Machine Disk (VMDK) with desctripter file on esxi host.

Detailed steps Shrink a VMware Virtual Machine Disk (VMDK) – virtualman

V2V has its personal execs and cons, test in above hyperlink and its on you which of them approach you need to do with.

———————————————————————

For the document, enhancing the VM descriptor file isn’t supported by VMware, so it is a further consideration within the determination.

My advice could be to use VMware Converter to V2V the prevailing VM, and alter the sizes of the goal disks as you want.

My reply could be to delete all snapshots and then you may improve or lower your drive in accordance to your want.

would booting from an iso with software program like acronis work to make a smaller clone?

richardfrank wrote:

would booting from an iso with software program like acronis work to make a smaller clone?

I am unsure what you imply by this. You need to use Acronis to create your clone somewhat than one other resolution? So long as Acronis has the choice to change the scale of the goal disks on the clone, then it ought to work. I’ve by no means used it, so I don’t know if it might probably.

After doing what you probably did within the visitor working system, in my atmosphere, I’ve simply modified the kind of provisioning from thick to skinny. It’s fairly painless to use do that with vCenter and a Migrate operation. Change from [Basic] to [Advanced] mode to entry that specific element.

Going ahead I be sure that to create my new VMDK’s as a skinny provisioning.

As my atmosphere is small (Three hosts, 25-50 virtuals) and I’m the one one who does vmware work, it isn’t troublesome for me to regulate obtainable free space on every datastore.

Model Consultant for Acronis

richardfrank wrote:

would booting from an iso with software program like acronis work to make a smaller clone?

Gabrielle.L wrote:

I am unsure what you imply by this. You need to use Acronis to create your clone somewhat than one other resolution? So long as Acronis has the choice to change the scale of the goal disks on the clone, then it ought to work. I’ve by no means used it, so I don’t know if it might probably.

Cloning could be accomplished simply with these steps:

1. Create a new virtual disk (goal) of required measurement – guarantee that the scale of the disk is equal or larger that the scale of the information on supply virtual disk.

2. Mount goal disk into similar VM the place the supply disk is mounted.

3. Boot the VM utilizing Acronis True Picture bootable media.

4. Conduct guide clone operationselect the supply and goal disk drives rigorously, since each disks may have the identical title, regulate disk measurement to correctly differentiate which is the supply and which is the goal. Resize partitions manually and begin cloning.

5. As soon as cloning is accomplished – shut down the VM.

6. Take away the supply disk from the VM and reattach the goal disk as “Laborious Disk 1”.

Our group of consultants have been completely vetted for his or her experience and business expertise. Specialists with Gold standing have obtained one in every of our highest-level Professional Awards, which acknowledge consultants for his or her beneficial contributions.

EE Fellow, MVE, Professional of the Yr 2021,2017-11, Scribe 2016-2012, Creator of the Yr 2018-6,2013-2012 VMware vExpert Professional, vExpert 2022-2011

HOW TO: Shrink a VMware Virtual Machine Disk (VMDK) in 15 minutes

In my earlier Specialists Change Articles, most have featured Primary and Intermediate VMware and Virtualisation Matters.

If you need to learn my Primary VMware articles, they’re listed right here in your comfort.

Throughout this sequence of articles VMware launched VMware vSphere 5.5 and VMware vSphere Hypervisor ESXi 5.5. These articles are additionally relevant to VMware vSphere Hypervisor ESXi 5.x and 5.5. For consistency, I’ve used VMware vSphere Hypervisor ESXi 5.1 by means of this sequence.

Growing the scale of a VMware Virtual Machine Disk (VMDK) is easy, and is supported within the vSphere Consumer, by choosing the virtual exhausting disk, and growing the scale utilizing the up arrow. or typing in a new worth. Please see my earlier Specialists Change article:

Nonetheless, though there may be a down arrow current, you can not shrink the disk on this approach, it isn’t supported. The one supported technique of shrinking a VMware virtual machine disk (VMDK) is to use VMware vCenter Converter Standalone and create a virtual to virtual (V2V) conversion, a related course of to a Bodily to Virtual (P2V) conversion.

Please see my earlier Specialists Change articles

The virtual machine is transformed, so there may be a small danger, the conversion may cause points with the transformed virtual machine.

After studying and understanding this text, it is possible for you to to scale back the scale of virtual machine disks in lower than 5 minutes. I’ll let the reader determine if that is a quicker technique than the standard observe of utilizing a V2V, to change the scale of a VMware Virtual Machine Disk (VMDK). From time to time we come throughout an set up, the place an Administrator has assigned a 2TB virtual disk, and doesn’t have the space to create a V2V!

On this article we’ll present you HOW TO: Shrink a VMware Virtual Machine Disk (VMDK) in 15 minutes

I really feel that is a little extra superior, so I’ve not included it within the Primary VMware article sequence.

Earlier than your begin the next process, please guarantee you will have a legitimate and examined Full Backup of your virtual machine. This doesn’t imply a VMware Snapshot.

Additionally test to see the virtual machine is NOT operating on a Snapshot disk, If not sure please refer to my Specialists Change Article

The next process is break up into two components

1. Login to the Virtual Machine and shrink the OS Partition

Earlier than we are able to shrink the VMware virtual machine disk (VMDK), we want to shrink the OS partition. (to keep away from file system corruption). On this instance I’m utilizing Home windows 2008 R2, which has a shrink operate. If you’re utilizing one other OS, please see the opposite third social gathering partition utilities which can be found, they’re listed in my Specialists Change article

Utilizing an RDP (Distant Desktop Protocol) connection or join by way of the Console, utilizing the vSphere Consumer, login to the virtual machine as an Administrator.
Press Management-Alt-Delete to login to the virtual machine.
Proper Click on My Laptop and Choose Handle
Choose Disk Administration, and choose the partition you want to shrink.
Proper Click on the Quantity/Partition to shrink, and choose Shrink.
The above dialogue will briefly seem while the file system is queried.
the above dialogue will seem. Enter a measurement to scale back the OS partition.

On this instance the VMware virtual machine disk (VMDK) is 40GB, and we want to scale back the scale of the VMware virtual machine disk (VMDK) to 20GB. The Disk Administration utility scans the obtainable file system, and studies a most measurement the OS partition could be scale back by, that is based mostly on present file system utilization.

Enter the determine 19.5 (GB) x 1024 = 19968
OS Partition measurement after Shrink Operation.
As could be clearly seen within the above screenshot, there may be now an unallocated 19.5GB space on the virtual disk, in Step 2 the VMware virtual machine disk (VMDK) will likely be “chopped”, eradicating this unallocated storage space, and lastly decreasing the virtual machine disk (VMDK) to 20GB. Offering that we DO NOT have an effect on the prevailing partitions, that is a secure operation. So in impact the “minimize” will likely be made within the unallocated storage space, after the OS partition.

2. Lowering the scale of the VMware Virtual Machine Disk (VMDK)

Login and join to the VMware vSphere Host ESXi server which hosts the virtual machine.

see my earlier Specialists Change articles

Energy OFF the Virtual Machine, and change to the datastore path the place the VMware virtual machine disk (VMDK) is positioned.

cd /vmfs/volumes//
We’d like to edit the *.vmdk, which is the descriptor file, which accommodates the variables for the scale of the *.-flat.vmdk. Utilizing cat, that is what the descriptor file accommodates
The quantity highlighted above, below the heading #Extent description, after the letters RW, defines the scale of the VMware virtual disk (VMDK).

this quantity – 83886080, and it is calculated as follows:

40 GB = 40 * 1024 * 1024 * 1024 / 512 = 83886080

We needed to scale back the scale of the VMware virtual machine disk (VMDK) from 40 GB to 20 GB. So the worth we want to enter into the descriptor file is:-

20 GB = 20 * 1024 * 1024 * 1024 / 512 = 41943040

Utilizing vi, edit the descriptor file, and change the quantity from 83886080 to 41943040, and save the file.
Migrate or Copy the virtual machine to one other datastore, should you should not have the migrate possibility, see my Specialists Change article right here

After the virtual machine disk (VMDK) has been moved, you’ll discover the disk measurement displays the specified measurement of 20GB.
After restarting the virtual machine, and checking with Disk Administration, you’ll discover the 19.5GB unallocated storage space, has been eliminated, and disappeared.

Congratulations, you will have efficiently Shrunk a VMware Virtual Machine Disk (VMDK)

************************** ********** ********** ********** ********** **********
Thanks for studying my article, please depart beneficial suggestions. If you happen to favored my VMware article and would love to see extra Articles from me, please click on the Sure button close to the: Was this text useful? on the backside of this text slightly below and to the best of this info. Thank You. Don’t forget in case you have a query about this text or one other VMware, Virtualisation, Home windows Server 2012 query, why not submit a Query for me and the opposite Specialists Change Specialists within the VMware, Virtualisation, Home windows 2008, Home windows 2012 Zones. I look ahead to listening to from you. – Andy :- twitter @einsteinagogo
************************** ********** ********** ********** ********** **********

Auto-suggest helps you shortly slender down your search outcomes by suggesting attainable matches as you kind.

  • VMware Know-how Community
  • :
  • Cloud & SDDC
  • :
  • VI 3.X
  • :
  • VI: VMware ESXi™ 3.5 Discussions
  • :
  • Shrink exhausting disk space of VM and launch disk spac.
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • E-mail to a Buddy

I’ve create a virtual machine in vmware ESXi. the virtual machine is 2003 server sp1

The machine is created with 150 GB HD in ESXi

in home windows I’ve 2 partitions, C: 20Go and 😧 about 130Gb

I would like to scale back the scale of partition D to about 80Gb to free up some space on ESXi for a new VM machine. in fact i can use a convertor, however that requires 100 gb(20 GB for c and 80 gb for D) to be free in esx. I dnt have that a lot free space left. Is it attainable to resize the prevailing disk and launch the space with out allocating an additional 100 gb? please recommendation

  • All discussion board subjects
  • Earlier Matter
  • Subsequent Matter
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • E-mail to a Buddy

Fallacious discussion board – that is Server 2.0.

If 😧 is not a system drive then I’d simply add one other vmdk to the VM and copy the information over. If a system drive or in use then I might use a WinPE bootable and/or Ghost or related. Clearly you then want space obtainable for that new drive though you could possibly doubtlessly backup 😧 to another machine, by way of CIFS throughout the visitor, delete the disk, create a new one and then copy the information again.

If you happen to discovered this or some other reply helpful please take into account using the Useful or Right buttons to award factors.

— If you happen to discovered this or some other reply helpful please take into account using the Useful or Right buttons to award factors.

I’ve a 250GB exhausting drive which I run two virtual machines off of. I obtained a disk space warning the opposite day and determined to look into the problem. One virtual machine, is taking up 140GB on the bodily exhausting drive, however when operating the one virtual disk is simply 48GB used.

How can I scale back the scale of the virtual disk to again across the precise measurement of the information (48GB)? Another concepts on decreasing the scale of this large VM?

I attempted Defrag and Shrink, however shrink wants the identical measurement because the VM in free space to shrink. I come up a few GB quick.

I do have one other empty 250GB exhausting drive to write to if that helps.

I’m utilizing VMWare Workstation 6.0.3 to run Home windows XP on a Home windows Vista (x64) machine.

As a substitute of operating the vmware instruments from the VM to shrink the vmdk file use the command line software

vmware-vdiskmanager.exe that is obtainable within the following location.

X:Program Filesvmwarevmware workstation

for us to get the shrink to work we must always have precisely double the scale of the VMDK.

however i feel we dont have 300 GB disk somewhat it’s only 250gb.

Sure, that’s appropriate Bhanu I solely have a 250GB disk so I should not have double the scale of the vmdk. Another approach to scale back the scale of the disk, perhaps wioth VMWare converter, or Clone?

a clone could be a fantastic possibility but when that is a full clone i feel it might merely do a copy of the vmdk file which might once more lead to the identical challenge of 140 gb drive

vmware converter could be a higher possibility i feel

I began with Specialists Change in 2004 and it has been a mainstay of my skilled computing life since. It helped me launch a profession as a programmer / Oracle information analyst

Any concepts on how to use Converter to optimize? I attempted operating Converter on my present VM and chosen take away restore factors. No change within the measurement of the VM on the disk although.

do you will have any backup resolution with brokers to run backup of the VM a full backup of the VM putting in a agent on it

I do have a backup resolution that may create a backup of the disk. You’d counsel creating a backup, then a new VM and restore to that VM?

I get nearer to a attainable resolution. I used the disk supervisor command line software to “convert” the disk to a new Virtual Disk. I then edited the vmx config file and modified the filename of the disk to my new copy. The brand new copy is about the identical measurement because the disk info.

The VM begins and runs however woudn’t login to our workplace area. I didn’t have a native login so I acquired stumped right here. I loaded the unique disk, up to date the administrator password and am now making one other copy (the identical approach as earlier than) and hoping to get into the XP OS utilizing the admin password as an alternative of a area login. I’m questioning of the disk copy has “deactivated” my copy of Home windows and that’s the reason I can not login to the area.

I Put in sql server and another softwares in home windows on Vmware workstation. All of it took round 25 gb measurement.

I would like to use this configuration on one other machine.

My query is: Is it attainable to scale back the virtual picture measurement?

1 Reply 1

  1. Launch the management panel.
    • Home windows visitor — double-click the VMware Instruments icon within the system tray, or select Begin > Settings > Management Panel, then double-click VMware Instruments.
    • Linux or FreeBSD visitor — develop into root (su -), then run vmware-toolbox.
  2. Click on the Shrink tab.

Choose the virtual disks you need to shrink, then click on Put together to Shrink.
A dialog field tracks the progress of the wiping course of. Notice: If you happen to deselect some partitions, the entire disk continues to be shrunk. Nonetheless, these partitions will not be wiped for shrinking, and the shrink course of doesn’t scale back the scale of the virtual disk as a lot because it might with all partitions chosen.

Click on Sure when VMware Instruments finishes wiping the chosen disk partitions.
A dialog field tracks the progress of the shrinking course of. Shrinking disks might take appreciable time.

Click on OK to end.

    The Overflow Weblog

Associated

Sizzling Community Questions

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Website design / emblem © 2022 Stack Change Inc; consumer contributions licensed below CC BY-SA . rev 2022.9.15.42976

By clicking “Settle for all cookies”, you agree Stack Change can retailer cookies in your system and disclose info in accordance with our Cookie Coverage.

What I already did, on the visitor I shrunk the C partition to 500Gb there may be solely 100Gb of knowledge on it.

What methods are there to shrink the disk savely to 500Gb and preverably to 200Gb?

Enter to win a Midnight Aluminum Apple Watch Collection 7

Contest ends 2022-09-30 Contests Go to this BMC Management-M web page and full the shape Contest Particulars View all contests

My advice could be to use VMware Converter to V2V the prevailing VM, and alter the sizes of the goal disks as you want.

13 Replies

Model Consultant for Action1 RMM

1. Login to the Virtual Machine and shrink the Partition you need at home windows degree with disk administration.

2. Lowering the scale of the VMware Virtual Machine Disk (VMDK) with desctripter file on esxi host.

V2V has its personal execs and cons, test in above hyperlink and its on you which of them approach you need to do with.

You can’t shrink a virtual disk in VMWare though there may be an possibility to achieve this. There are two methods round it, your can use VMWare Convertor to carry out a V2V, then shrink the disk or you may create a smaller vmdk and copy the information to it , then delete the outdated one.

Peter (Action1) wrote:

1. Login to the Virtual Machine and shrink the Partition you need at home windows degree with disk administration.

2. Lowering the scale of the VMware Virtual Machine Disk (VMDK) with desctripter file on esxi host.

Detailed steps Shrink a VMware Virtual Machine Disk (VMDK) – virtualman

V2V has its personal execs and cons, test in above hyperlink and its on you which of them approach you need to do with.

———————————————————————

For the document, enhancing the VM descriptor file isn’t supported by VMware, so it is a further consideration within the determination.

My advice could be to use VMware Converter to V2V the prevailing VM, and alter the sizes of the goal disks as you want.

My reply could be to delete all snapshots and then you may improve or lower your drive in accordance to your want.

would booting from an iso with software program like acronis work to make a smaller clone?

richardfrank wrote:

would booting from an iso with software program like acronis work to make a smaller clone?

I am unsure what you imply by this. You need to use Acronis to create your clone somewhat than one other resolution? So long as Acronis has the choice to change the scale of the goal disks on the clone, then it ought to work. I’ve by no means used it, so I don’t know if it might probably.

After doing what you probably did within the visitor working system, in my atmosphere, I’ve simply modified the kind of provisioning from thick to skinny. It’s fairly painless to use do that with vCenter and a Migrate operation. Change from [Basic] to [Advanced] mode to entry that specific element.

Going ahead I be sure that to create my new VMDK’s as a skinny provisioning.

As my atmosphere is small (Three hosts, 25-50 virtuals) and I’m the one one who does vmware work, it isn’t troublesome for me to regulate obtainable free space on every datastore.

Model Consultant for Acronis

richardfrank wrote:

would booting from an iso with software program like acronis work to make a smaller clone?

Gabrielle.L wrote:

I am unsure what you imply by this. You need to use Acronis to create your clone somewhat than one other resolution? So long as Acronis has the choice to change the scale of the goal disks on the clone, then it ought to work. I’ve by no means used it, so I don’t know if it might probably.

Cloning could be accomplished simply with these steps:

1. Create a new virtual disk (goal) of required measurement – guarantee that the scale of the disk is equal or larger that the scale of the information on supply virtual disk.

2. Mount goal disk into similar VM the place the supply disk is mounted.

3. Boot the VM utilizing Acronis True Picture bootable media.

4. Conduct guide clone operationselect the supply and goal disk drives rigorously, since each disks may have the identical title, regulate disk measurement to correctly differentiate which is the supply and which is the goal. Resize partitions manually and begin cloning.

5. As soon as cloning is accomplished – shut down the VM.

6. Take away the supply disk from the VM and reattach the goal disk as “Laborious Disk 1”.

Our group of consultants have been completely vetted for his or her experience and business expertise. Specialists with Gold standing have obtained one in every of our highest-level Professional Awards, which acknowledge consultants for his or her beneficial contributions.

EE Fellow, MVE, Professional of the Yr 2021,2017-11, Scribe 2016-2012, Creator of the Yr 2018-6,2013-2012 VMware vExpert Professional, vExpert 2022-2011

HOW TO: Shrink a VMware Virtual Machine Disk (VMDK) in 15 minutes

In my earlier Specialists Change Articles, most have featured Primary and Intermediate VMware and Virtualisation Matters.

If you need to learn my Primary VMware articles, they’re listed right here in your comfort.

Throughout this sequence of articles VMware launched VMware vSphere 5.5 and VMware vSphere Hypervisor ESXi 5.5. These articles are additionally relevant to VMware vSphere Hypervisor ESXi 5.x and 5.5. For consistency, I’ve used VMware vSphere Hypervisor ESXi 5.1 by means of this sequence.

Growing the scale of a VMware Virtual Machine Disk (VMDK) is easy, and is supported within the vSphere Consumer, by choosing the virtual exhausting disk, and growing the scale utilizing the up arrow. or typing in a new worth. Please see my earlier Specialists Change article:

Nonetheless, though there may be a down arrow current, you can not shrink the disk on this approach, it isn’t supported. The one supported technique of shrinking a VMware virtual machine disk (VMDK) is to use VMware vCenter Converter Standalone and create a virtual to virtual (V2V) conversion, a related course of to a Bodily to Virtual (P2V) conversion.

Please see my earlier Specialists Change articles

The virtual machine is transformed, so there may be a small danger, the conversion may cause points with the transformed virtual machine.

After studying and understanding this text, it is possible for you to to scale back the scale of virtual machine disks in lower than 5 minutes. I’ll let the reader determine if that is a quicker technique than the standard observe of utilizing a V2V, to change the scale of a VMware Virtual Machine Disk (VMDK). From time to time we come throughout an set up, the place an Administrator has assigned a 2TB virtual disk, and doesn’t have the space to create a V2V!

On this article we’ll present you HOW TO: Shrink a VMware Virtual Machine Disk (VMDK) in 15 minutes

I really feel that is a little extra superior, so I’ve not included it within the Primary VMware article sequence.

Earlier than your begin the next process, please guarantee you will have a legitimate and examined Full Backup of your virtual machine. This doesn’t imply a VMware Snapshot.

Additionally test to see the virtual machine is NOT operating on a Snapshot disk, If not sure please refer to my Specialists Change Article

The next process is break up into two components

1. Login to the Virtual Machine and shrink the OS Partition

Earlier than we are able to shrink the VMware virtual machine disk (VMDK), we want to shrink the OS partition. (to keep away from file system corruption). On this instance I’m utilizing Home windows 2008 R2, which has a shrink operate. If you’re utilizing one other OS, please see the opposite third social gathering partition utilities which can be found, they’re listed in my Specialists Change article

Utilizing an RDP (Distant Desktop Protocol) connection or join by way of the Console, utilizing the vSphere Consumer, login to the virtual machine as an Administrator.
Press Management-Alt-Delete to login to the virtual machine.
Proper Click on My Laptop and Choose Handle
Choose Disk Administration, and choose the partition you want to shrink.
Proper Click on the Quantity/Partition to shrink, and choose Shrink.
The above dialogue will briefly seem while the file system is queried.
the above dialogue will seem. Enter a measurement to scale back the OS partition.

On this instance the VMware virtual machine disk (VMDK) is 40GB, and we want to scale back the scale of the VMware virtual machine disk (VMDK) to 20GB. The Disk Administration utility scans the obtainable file system, and studies a most measurement the OS partition could be scale back by, that is based mostly on present file system utilization.

Enter the determine 19.5 (GB) x 1024 = 19968
OS Partition measurement after Shrink Operation.
As could be clearly seen within the above screenshot, there may be now an unallocated 19.5GB space on the virtual disk, in Step 2 the VMware virtual machine disk (VMDK) will likely be “chopped”, eradicating this unallocated storage space, and lastly decreasing the virtual machine disk (VMDK) to 20GB. Offering that we DO NOT have an effect on the prevailing partitions, that is a secure operation. So in impact the “minimize” will likely be made within the unallocated storage space, after the OS partition.

2. Lowering the scale of the VMware Virtual Machine Disk (VMDK)

Login and join to the VMware vSphere Host ESXi server which hosts the virtual machine.

see my earlier Specialists Change articles

Energy OFF the Virtual Machine, and change to the datastore path the place the VMware virtual machine disk (VMDK) is positioned.

cd /vmfs/volumes//
We’d like to edit the *.vmdk, which is the descriptor file, which accommodates the variables for the scale of the *.-flat.vmdk. Utilizing cat, that is what the descriptor file accommodates
The quantity highlighted above, below the heading #Extent description, after the letters RW, defines the scale of the VMware virtual disk (VMDK).

this quantity – 83886080, and it is calculated as follows:

40 GB = 40 * 1024 * 1024 * 1024 / 512 = 83886080

We needed to scale back the scale of the VMware virtual machine disk (VMDK) from 40 GB to 20 GB. So the worth we want to enter into the descriptor file is:-

20 GB = 20 * 1024 * 1024 * 1024 / 512 = 41943040

Utilizing vi, edit the descriptor file, and change the quantity from 83886080 to 41943040, and save the file.
Migrate or Copy the virtual machine to one other datastore, should you should not have the migrate possibility, see my Specialists Change article right here

After the virtual machine disk (VMDK) has been moved, you’ll discover the disk measurement displays the specified measurement of 20GB.
After restarting the virtual machine, and checking with Disk Administration, you’ll discover the 19.5GB unallocated storage space, has been eliminated, and disappeared.

Congratulations, you will have efficiently Shrunk a VMware Virtual Machine Disk (VMDK)

************************** ********** ********** ********** ********** **********
Thanks for studying my article, please depart beneficial suggestions. If you happen to favored my VMware article and would love to see extra Articles from me, please click on the Sure button close to the: Was this text useful? on the backside of this text slightly below and to the best of this info. Thank You. Don’t forget in case you have a query about this text or one other VMware, Virtualisation, Home windows Server 2012 query, why not submit a Query for me and the opposite Specialists Change Specialists within the VMware, Virtualisation, Home windows 2008, Home windows 2012 Zones. I look ahead to listening to from you. – Andy :- twitter @einsteinagogo
************************** ********** ********** ********** ********** **********

Have you ever checked out https://kb.vmware.com/s/article/1002019 – I believe it meets your necessities. I’m not conscious how you probably did your preliminary shrink?

I’ve not used ESXi in a very long time however the same instruments for disk shrinking additionally exist in different virtualisation platforms.

Please be sure to have a good working ( examined ) backup of any information that this machine holds earlier than attempting to re-allocate the space on the disk, i.e. shrinking and many others.

Thanks
I could not discover the answer on this article
My exhausting disk provision is thick kind!

You possibly can’t shrink a quantity by means of the VM edit settings. The best approach (in case you have the obtainable space) is to create a new vmdk of the scale you need and copy the information.

Sadly i have not sufficient space, that is why i want to lower the vm exhausting disk space

ibrahimromih wrote:

Thanks
I could not discover the answer on this article
My exhausting disk provision is thick kind!

From the article above Virtual disk shrinking is supported when utilizing VMware Converter changing supply virtual machine as a machine supply (not as virtual to virtual). However you would wish free disk space to accomplish this

I already transformed this machine, i ask now how after it turns into virtual i shrink it

what I did do to scale back the VM disk space :
it isn’t the answer what I used to be aiming for, however a minimum of until now it fastened my quota run out drawback for now, and if any new seems ailing replace the subject

I did shut down the VM and migrate ” u could make clone too ” it to different host have sufficient space and I modified the disk provision kind from thick to skinny
so the quota calculated on the datastore solely the actual information contained in the VM

thanks for u all

This subject has been locked by an administrator and is not open for commenting.

To proceed this dialogue, please ask a new query.

Skilled Wi-fi survey

Hello,What software program do IT firms use to conduct wifi surveys?I’m speaking about a large space of over 100,000 sq ft buildings. Searching for some recommendation if anybody has accomplished this professionally. What instruments have been used for RF scanning and what have been the challenges .

Snap! Groups vuln, 365 Apps auto-updates, Starlink, AI considerations, & extra

Your every day dose of tech information, briefly. Twenty-seven (27) years in the past, arguably among the finest pc high-tech thriller motion pictures was launched on September 15, 1995. Sure, I’m speaking about Iain Softley’s Hackers! In fact, I’m kidding about or not it’s.

Monitoring distant consumer’s login log off instances and dates

Hey everybody,Performing some homework for a consumer and need to get your opinions on greatest approach to do that. So lately acquired this firm upgraded from their outdated servers to a new one operating Server 2022. Due to the advantages they’re seen for his or her staff being a.

How do you test PWD expiry?

I do know you need to use cmd immediate internet consumer %username% /area. Is there one other technique with out having the consumer open the cmd immediate?

Spark! Professional sequence – 15th September 2022

In the present day in Historical past: 1858 – The primary transcontinental mail service to San Francisco begins On September 15, 1858, the brand new Overland Mail Firm sends out its first two phases, inaugurating authorities mail service between the jap and western reg.

What I already did, on the visitor I shrunk the C partition to 500Gb there may be solely 100Gb of knowledge on it.

What methods are there to shrink the disk savely to 500Gb and preverably to 200Gb?

Enter to win a Midnight Aluminum Apple Watch Collection 7

Contest ends 2022-09-30 Contests Go to this BMC Management-M web page and full the shape Contest Particulars View all contests

My advice could be to use VMware Converter to V2V the prevailing VM, and alter the sizes of the goal disks as you want.

13 Replies

Model Consultant for Action1 RMM

1. Login to the Virtual Machine and shrink the Partition you need at home windows degree with disk administration.

2. Lowering the scale of the VMware Virtual Machine Disk (VMDK) with desctripter file on esxi host.

V2V has its personal execs and cons, test in above hyperlink and its on you which of them approach you need to do with.

You can’t shrink a virtual disk in VMWare though there may be an possibility to achieve this. There are two methods round it, your can use VMWare Convertor to carry out a V2V, then shrink the disk or you may create a smaller vmdk and copy the information to it , then delete the outdated one.

Peter (Action1) wrote:

1. Login to the Virtual Machine and shrink the Partition you need at home windows degree with disk administration.

2. Lowering the scale of the VMware Virtual Machine Disk (VMDK) with desctripter file on esxi host.

Detailed steps Shrink a VMware Virtual Machine Disk (VMDK) – virtualman

V2V has its personal execs and cons, test in above hyperlink and its on you which of them approach you need to do with.

———————————————————————

For the document, enhancing the VM descriptor file isn’t supported by VMware, so it is a further consideration within the determination.

My advice could be to use VMware Converter to V2V the prevailing VM, and alter the sizes of the goal disks as you want.

My reply could be to delete all snapshots and then you may improve or lower your drive in accordance to your want.

would booting from an iso with software program like acronis work to make a smaller clone?

richardfrank wrote:

would booting from an iso with software program like acronis work to make a smaller clone?

I am unsure what you imply by this. You need to use Acronis to create your clone somewhat than one other resolution? So long as Acronis has the choice to change the scale of the goal disks on the clone, then it ought to work. I’ve by no means used it, so I don’t know if it might probably.

After doing what you probably did within the visitor working system, in my atmosphere, I’ve simply modified the kind of provisioning from thick to skinny. It’s fairly painless to use do that with vCenter and a Migrate operation. Change from [Basic] to [Advanced] mode to entry that specific element.

Going ahead I be sure that to create my new VMDK’s as a skinny provisioning.

As my atmosphere is small (Three hosts, 25-50 virtuals) and I’m the one one who does vmware work, it isn’t troublesome for me to regulate obtainable free space on every datastore.

Model Consultant for Acronis

richardfrank wrote:

would booting from an iso with software program like acronis work to make a smaller clone?

Gabrielle.L wrote:

I am unsure what you imply by this. You need to use Acronis to create your clone somewhat than one other resolution? So long as Acronis has the choice to change the scale of the goal disks on the clone, then it ought to work. I’ve by no means used it, so I don’t know if it might probably.

Cloning could be accomplished simply with these steps:

1. Create a new virtual disk (goal) of required measurement – guarantee that the scale of the disk is equal or larger that the scale of the information on supply virtual disk.

2. Mount goal disk into similar VM the place the supply disk is mounted.

3. Boot the VM utilizing Acronis True Picture bootable media.

4. Conduct guide clone operationselect the supply and goal disk drives rigorously, since each disks may have the identical title, regulate disk measurement to correctly differentiate which is the supply and which is the goal. Resize partitions manually and begin cloning.

5. As soon as cloning is accomplished – shut down the VM.

6. Take away the supply disk from the VM and reattach the goal disk as “Laborious Disk 1”.