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.

Is it possible to enlarge an installed (Windows XP) virtual disk partition?

I'm using vmware player (vmplayer) on ubuntu linux. If not, can vmware workstation, or -server do the job?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Yes it's possible. It's a two step process:

  1. Use vmware-vdiskmanager (I don't know if Player includes this executable, but WS, Server, and ESX all do). Run it without any command line arguments to see the various options, -x is the one for growing virtual disks, but you might want to make other changes as well. A simple commandline would like this: vmware-vdiskmanager -x 40GB WinXP.vmdk

  2. Once you have expanded the disk, you still need to expand the partition and the filesystem. I usually use sysrecuecd for this. Download the iso, setup your VM to boot from the CD, and then you can run gparted to expand both the partition and NTFS filesystem. It will take some time.

Of course, you should backup your virtual disk files before doing this in case anything goes wrong. But, I've both grown and shrunk NTFS formated vmdk files several times without a problem.

share|improve this answer
1  
Specifically: lonesysadmin.net/2009/01/02/… –  David Mackintosh Jun 13 '09 at 0:31
    
Thanks, I'm going to try this out! –  Roalt Jul 5 '09 at 8:00
    
The VM Player I am using now (v4) allows the extension of the virtual disk. After that you still have to pass by the 2nd step you said. Personaly I did use GParted Iso to expand my system partition (RedHat) –  ruffp Apr 3 '12 at 21:01

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.