Expanding virtual disks in vmware

Today I ran into trouble when my Windows XP wmvare virtual machine ran out of disk space. I found this really helpful article which guided me. I only followed steps 3b and 4 and managed to enlarge my hard drive quite simple and fast.

Here is a quick and dirty tutorial for enlarging your hard drive:

Step 1 - Make the virtual hard drive grow to 10GB
vmware-vdiskmanager -x 10GB winxp.vmdk

Step 2 - Make a copy of winxp.vmdk to winxp_new.vmdk

Step 3 - Mount winxp_new.vmdk as a second drive in the virtual machine

Step 4 - Start the virtual machine and enter the command line. Run commands:
diskpart
list disks
list volume
select volume=2
extend
list volume

Step 5 - Shut down your virtual machine

Step 6 - Remove all mounted hard drives

Step 7 - Mount winxp_new.vmdk as your primary hard drive

Step 8 - Delete your old virtual hard drive winxp.vmdk

Step 9 - Boot your VM. Now you got 10GB for the C: drive. :D

Enjoy!



Lämna en kommentar