tisdagen den 21:e oktober 2008

Extending partitions on vmware server with diskpart

I had to extend a virtual disk on a vmware server and this is the procedure to do it.

  1. Shut down the virtual machine.
  2. Navigate to the VMware application's installation directory and open a commandprompt.
  3. Locate the full path to a hosted (non-ESX Server host) virtual machine's virtual disk (.vmdk) file.
  4. Type vmware-vdiskmanager -x 100Gb vm.vmdk and press Enter (replace vm.vmdk with the actual filename and path. If you have multiple .vmdk files with the same base name, use the file that does not include "-flat" or "-s0" in its file name). If you want a different size on the disk, just change the GB to your needs.
  5. http://support.microsoft.com/kb/325590 describes how to use diskpart.

Enjoy the extra space you have on the virtual machine. Of course diskpart works with physical disks as well.

Stefan

0 kommentarer: