VMWare ESX: Virtual Hard Disk FULL

28 09 2008

I am working to prepare my virtual machine to move it from test network to production. Before bringing this virtual machine to production I wanted to run the latest updates and during the process my virtual hard disk went full ;-(. I sized the vm with 6GB of disk space and yes I run into disk space problem. 

image

VMWare ESX allows you to extend the virtual disk size on a running virtual machine. How to extend the virtual disk size? Right click the virtual machine in the VI cleint; choose settings and go to “Hard Disk 1″ and type new disk size. Click OK.

image

Example of my new  Disk Configuration in “Disk Management”. To extend the virtual disk we need to go to diskpart and extent the volume.

image 

I opened command prompt and opened diskpart; selected the volume and run extend.

The volume you selected may not be extended.
Please select another volume and try again.

My virtual hard disk was full and I was not able to extend my basic disk with the additional 2GB I added to this configuration.

image

Thanks to Kalpesh Prajapati post I was able to find a solution to my problem.

Follow these steps to extend your virtual machine basic hard disk:

  • Shutdown the virtual machine
  • Extend the virtual disk size
  • Add the harddisk to another virtual machine and start it up (second virtual machine)
  • Open command prompt and start diskpart.exe
  • list volumes and select the volume with the disk problem
  • extend the disk

image

Make sure the volume has a drive letter assigned otherwise same warning will be returned. Virtual machine was started again without any problems and two additional gigs of disk space.

Links:


Actions

Informations

One response to “VMWare ESX: Virtual Hard Disk FULL”

29 10 2008
jean-jacques (21:43:35) :

Excellent article, the limitation with this is system partition/drive : we can not use diskpart in this case; I saw alot of articles, and I found one in http://www.ntsysv.com with a video which was very helpful.
thank you again, I’ll be back for further reading.

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>