Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have created a Windows Vista VMware from an ISO Image. While creating I selected 16 GB as hard disk space. But now it's saying space is not enough for installing a service pack on that. How to increase the space of virtual machine now without recreating it?

share|improve this question
1  
Which of VMWare's products are you talking about here? –  Chopper3 Oct 23 '10 at 8:51
add comment

6 Answers

This won't work if have or care about snapshots from the VM.

You can use vmware-vdiskmanager to expand the image size. You'll need to shutdown the virtual machine first.

Once you have the image resized, you can use your OS disk partition tool of choice to extend the partition on the disk to the new size. If the disk you want to resize is the system partition in Windows, which it sounds like it is, you'll probably need to mount the disk in another virtual machine to resize the actual partition, or boot off of a rescue disk.

Although the link to the vdiskmanager is from vmware server 1, I believe the same app comes with VMWare Workstation.

share|improve this answer
    
vmware-vdiskmanager comes with the majority of VMWare's products. e.g. Workstation, Fusion, Server 1 & Server 2. However be aware that there is currently a bug in many newer versions of this tool that stop you from resizing a vmdk with snapshots. This bug has been fixed in the latest VMWare Fusion release, but as far as I am aware it is still present in the current VMWare Server 2.0 release. –  David Harrison May 15 '09 at 3:00
add comment

You can run something like

vmware-vdiskmanager.exe -x 25GB theDisk.vmdk

to expand the virtual disk.

share|improve this answer
add comment

I always setup Linux VMs using LVM, then I can expand things relatively easily just be creating a new virtual disk, adding it to the volume group, extending the relevant logical volume to make use of the new space and then expand the filesystem with resize2fs.

You could probably do the same thing in Windows by having your virtual disks configured as dynamic disks instead of static.

share|improve this answer
add comment

I faced this problem recently, and found that vmware-vdiskmanager is not included with the vmware player. However, you can download the free VMWare Converter (after registration, which is free) which allows you to expand your disk.

share|improve this answer
add comment

For VMware Workstation, Player 3.x, Server and GSX, VMware offers "vdiskmanager.exe" command line utility that could increase the size of virtual disk; For Workstation 7 or later and Player 3.x or later, you can use VMware GUI to expand virtual disk, just click "Utilities" and select "Expand" in the drop-down menu, and then you will receive "The disk was successfully expanded. You must repartition the disk and expand the file systems from within the guest operating system."

http://www.partition-magic.org/vmware/increase-disk-size-vmware.html

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.