ESXi

 View Only
  • 1.  Changing size of OS VMDK

    Posted Nov 09, 2010 03:05 PM

    Hi, in our estate all VMs will be built from templates. A decision has been taken to incorporate a standard OS vmdk and any additional requirements for data & applications to be on further vmdk disks. Lets assume the standard OS partition is 20GB.

    However, a number of requests have been forthcoming for the OS partition to be a different size - lets say 50GB (this is due to the manner in which the application to be installed works). I do not wish to create another template for this configuration, therefore, the question is whether the VM can be created from the template with a 20GB partition and then the OS partition size increased to 50GB? If this is possible then how is this done?

    Thanks



  • 2.  RE: Changing size of OS VMDK

    Posted Nov 09, 2010 03:07 PM

    Hello.

    Yes, this is possible. If you are using Windows 2008, then the functionality exists in the native Disk Management tools via extend. If you are using pre-Windows 2008 OS, then you will want to use Dell's extpart utility.

    Good Luck!



  • 3.  RE: Changing size of OS VMDK

    Posted Nov 09, 2010 03:09 PM

    yes, increasing an OS disk can be done pretty easily. What is the guest OS in question?

    Below are some good examples

    http://vsphere-land.com/tips-tricks/re-sizing-virtual-disks



  • 4.  RE: Changing size of OS VMDK

    Posted Nov 09, 2010 03:12 PM

    The guest OS can be Windows 2008 Standard R2 or Enterprise R2 - we have two templates



  • 5.  RE: Changing size of OS VMDK

    Posted Nov 09, 2010 03:14 PM

    even easier. Increase the size of the HDD using the vSphere Client (ensure the VM has NO active snapshots), then use diskpart to increase the OS partition. All can be done with no downtime.



  • 6.  RE: Changing size of OS VMDK
    Best Answer

    Posted Nov 09, 2010 03:47 PM

    To expand a little bit on Troy's answer:

    1. Expand VMDK in vSphere Client to desired size.

    2. RDP into or open Console of VM you wanted to extend.

    3. Start->Run and type diskpart

    4. Type: list volume

    5. Select the volume via: select volume <volNum>

    6. Extend the volume via: extend

    7. Exit out of diskpart.

    Fin. :)

    If you found this at all helpful please award points by using the correct or helpful buttons! Thanks!