There are many ways to expand a drive within a VMWare image and I have outlined two approaches below depending on your setup. I have used both these methods successfully on a Windows Server 2003 Vmware image (Vmware Workstation 5.0)
Method 1
Advantages: You get to keep your Vmware snapshots
Limitations: You can’t extend all volumes, I had trouble trying to extend the system/boot volume. According to a Microsoft Knowledge Base article you can’t extend a volume if the system page file is located on the partition. You could try to move the page file to a partition that you do not wish to extend.
My setup:
C: System Drive 10 GB
D: Data 4GB
Let’s say that we want to expand the D drive from 4GB to 10GB
- Shutdown the VMWare Image
- Add a new disk to the VMWare image (the size should be that which you want to allocate to another volume, in this example 6GB).
- Boot up the VMWare image into Windows and go to Disk Management (Administrative Tools -> Computer Management -> Disk Management)
- A wizard should be displayed to initialize and convert the new disk. If you are not prompted then you may need to Rescan. Do not assign a new volume at this stage.
- You need to convert the D drive and the new drive to both be dynamic disks.
- Once both the drives are dynamic, then right click on the D drive and select Extend Volume.
- Follow the wizard to allocate the new space to the D drive.
Once you complete the wizard, the D drive should now be 10GB. That’s method 1 complete. If this worked for you, great! If not then take a look at Method 2 below.
Method 2
Advantages: You can successfully expand a system/boot drive.
Limitations: You have to remove all your snapshots (the vmware-vdiskmanager utility requires this.)
My Setup:
C: System Drive 8GB
D: Data 4GB
E: Data 4GB
Let’s say that we want to expand the C volume from 8GB to 12GB. Assume that the C drive is full to capacity (that’s why we are expanding it right!)
- If the Vmware image is running, shut it down.
- You need to find the name of the Vmware (.vmdk) file that represents the virtual disk that you want to expand. Go to VM->Settings and locate the drive
that you want to expand. The disk file field on the right hand side will display the name of the .vmdk file. - You need to remove any snapshots present in the Vmware image. Note: By deleting the snapshots the system still remains in its current state.
- Open up a command prompt and issue the following command: vmware-vdiskmanager -x 12GB “Windows Server 2003 Standard Edition.vmdk” where 12GB is the desired size of the expanded volume.
- This expansion may take a while but when it is complete, boot up into Windows and go to Disk Management (Administrative Tools -> Computer Management -> Disk Management)
You should see something similar to the following screenshot. The disk has been expanded but the new space is as yet unallocated. Now in theory you should be able to use the Windows diskpart utility to allocate this space but this would not work on a boot/system disk for me.
- So with diskpart not up to the task, what are your options?:
- Buy some Windows partition software (i.e. Partition Magic) at a cost of USD200- USD300 for a Server edition or
- You could use Knoppix (free) to allocate the new space to the C drive. Knoppix is a bootable Live Linux CD and it happens to have a utility called QTparted.
- Since everyone likes free stuff, I went with Knoppix in this case. Download Knoppix (the iso image) to the machine which hosts the VMware image.
- Now you need to point your CD/DVD drive in your VMWare image to the iso image. How do I do this?
- Reboot your VMware image and have it boot from the cd drive. You may need to modify the BIOS settings in order to change the boot order to have the system boot from the CD drive. The exact settings that you need to modify will depend on the exact BIOS that you have. It should be straightforward to change this.
- After Knoppix boots , start at the large letter K at bottom left. Select K | System | QTParted to launch the utility. You will see the list of disks within the VMware on the left hand side. Selecting one of these disks will provide you with more details about that disk. In the following screenshot you can see the C drive with the 8GB allocated and the 4GB unallocated.
- Right click on the drive that you want to expand and select Resize.
- A dialog will be displayed and you can expand the allocated space by dragging the partition to the right. You could also type in the values into the textboxes. After allocating all the new space you now see that the total size is approx. 12GB.
- Click OK to exit the dialog. At this stage you have not commited the changes yet. Go to the main menu of QTParted and select the Commit option. The following prompt will be displayed.
- Choose Yes to commit the changes. You will see the following two screenshots as it commits the changes.
- After the operation completes, you should see that the new volume now is 12GB in size with only 8GB in use (we now have 4GBs free :))
- Now, shutdown the Vmware image and boot back into Windows (you may need to change the boot order to accomplish this).
- Don’t be alarmed if CHKDSK wants to run some tests on your drive. It detected the changes you made in Knoppix and wants to verify that everything is ok.
- You may need to restart Windows again because it will have detected new hardware.
- Once Windows is back up, go to Disk Management (Administrative Tools -> Computer Management -> Disk Management) and you should now see that the C drive has the extra 4GB as promised.
- Also, in Windows Explorer, right click on the C drive and choose Properties. You will see now that there is over 4GB of free space. :))
Job Done!
Lessons for the future:
When you are creating future Vmware image make sure to allocate plenty of space to the drives.
You can set that they only grow as required so they only ever take up the space that you require at any point in time.
Sean, you are the man! Your Knoppix solution just saved me a whole day of work and kept my project on track. I and my team thank you!
Sean – This GREAT information! Thank you taking time to explain and show examples. I have one additional question… You show examples for IDE types of drives. What about SCSI drives? How can I expand those virtual drives within VMWARE? I opted for SCSI drives in my Windows 2003 Server VMWare machines. Any suggestions? Thank you.
Thanks CrazyDownhiller, happy that the article helped.
Hi Steve,
I would be more familiar with IDE drives so that is was I used them in my VMWARE images. I don’t know if the solution will work for SCSI drives. Did you try it out? It may well work for SCSI drives as well, I just never needed to use it for those. Thanks for commenting.
Hi there
I’ve tried the above steps as well, but the most perculiar thing happens.
In the “Disk Management” as above, my drive remains the original size, whereas the “Disk with new space” appears to have changed.
Any idears or do I need to format my vitual drive C: ?
screenshot can be found here:
http://87.49.64.163/myManagement.jpg
Andreas
Same happened to me! first i thought it was because i made it 100GB, but reading your reply Andreas, i guess i have the same problem π
(the properties on c drive also say it still is the old size)
i just tried to make change the disk to grow when full:
vmware-vdiskmanager.exe -r image.vmdk -t 0 newimage.vmdk
it went succesfull, but isnt working prob. cause the disk managment still says its not full at all π
btw, thanks anyhow for your work in this!!!
(sorry for the 4 double post, keep thinking about it)
i tried using knoppix again to make the partition a bit smaller, but it gives an error that it cant change the ntfs anymore π
and i also cant use vmware-vdiskmanager.exe -x image.vmdk anymore either: Failed to expand the disk ‘image.vmdk’: One of the parameters supplied is invalid (1) (while using the exact same syntax as before, just not 100GB but 20GB) (it prob. can only resize it to a bigger size though)
Just fixed it without fixing it π
made a new image (200GB and this time i made it grow when become larger π )
backuped the actual image with acronis , partitioned the new image with knoppix, and restored the backup on the new image with acronis π
costs alot of downtime, and only half an hour actual work…. and a chance you have to re-activate π
i now have a 200GB image which only takes 10GB on my hard drive cause it will grow when more data inputted π
Hi Elwin,
Good to hear that you eventually found a solution. I wasn’t too sure why the above solution didn’t work fully for you. I have used the procedure above many times and it worked fine for me.
Glad that this article helped in some way.
it helped alot in understanding vmware π
thnx 4 your reply!
Thanks for the guide,
I also ran into the issue of parted appearing to resize the drive, but in fact not resizing it. The fix that I used is to first mount the drive in knoppix, then unmount it. Then do the resize. For some reason if I did not explicitly mount and unmount the drive, parted had an issue with determining the mount state of the drive.
I got the same probs as the previous posters. C: will show my resized space which was 40GB, but the properties still reflect my old space.
I tried to mount then unmount in knoppix but it didn’t work. I got an error which I forgot. will try it again so that I can post the error.
Hi Sean,
I like the article; it’s very useful as people often have the same problem. I also was pulling my hair out till i found an article on this topic here:
http://www.vmweekly.com/articles/expanding_the_virtual_disk_size_in_4_steps/1/
It made my life pretty easier. Think you might be interested.
Jeff
Thanks for the excellent HOWTO ! And for all friends that got the Failed to grow disk XXX : one of the parameters supplied is invalid. (1) error, please take note that in this case you have to convert first your VM disk into the most recent format using ‘vmware-vdiskmgr -r -t X new.vmdk’ – where X should be 0 if you want one big file as vmdk, and 1 if you want dozen of 2GB chunks (or 2/3 if you want preallocated and not growable disk).
Regards,
Luca
Sorry, it’s me again. Just to point out that I went through all the Qtparted issues & errors emphasized by other people, but at the end (maybe at the 2nd or 3rd attempt) Qtparted worked.
Regarding the problem with the disk looking expanded but not the partition…
I was getting an error when committing my resize changes in QTParted saying that it couldn’t read the device status (or something similar). I ignored this at first and rebooted because it looked like the changes had actually saved. When I got in Windows I noticed that the drive was expanded but not the partition. I rebooted to Knoppix, tried QTParted again (click resize but don’t actually expand it so that we can save again) and got the same error message. I tried one last time and it actually saved that time without the error message.
*shrug*
Seems to be ok in windows now π
Great news for you vista guys, the disk management in vista lets you extend the boot volume with no extra steps. I followed the steps outlined, until the disk management step, then just extended the volume to include the new unallocated space. It was quick painless and within minutes I was finished with the resizing of the virtual disk file. Thanks for the help.
New information on vista, it appeared to work last night, I ran a vista defrag with my newly extended drive (10GB -> 18GB) then shutdown. This am I go to boot the vista VM and it gives me the “operating system not found” message. So I am trying all the mount and recover tools and have not been able to do anything with the disk file. I have built another vista vm and am going to do the extend and defrag on it to see if it blows up as well. I will update post when finished. If anyone has seen this or can recommend a solution please let me know. Nothing major on the corrupted disk file, just donβt want to have to reinstall all my apps again. THANKS.
Had the same problem as other above, where the drive size is recognized in the Disk Management MMC plugin, but not through windows explorer. Used the mount/umnount in Knoppix and it solved the problem.
Great info. Just wanted to point out that Windows Vista allows resizing boot disks without the need to use third party software on the guest.
Good info. I followed the steps and everything worked like a charm. THX
excellent instructions!
i ran into the same error with QParted, and Windows refused to recognize the expanded partition.
i tried GParted instead on its own livecd and fixed it
http://sourceforge.net/project/showfiles.php?group_id=115843&package_id=173828
since i already expanded it using QParted in Knoppix, i had to shrink it by 1K using GParted to get it to commit a change. after doing this, XP booted up, did a chkdksk, and now its all where it should be
Guys,,,,,,,,,, VMWare Converter does the whole thing,,, it’s a free download from their site. Just Import the machine in question,,, select a new desitination and select “select volumes and resize to save or add space”,,,, and you’re done. I changed an 8gb to 15gb in a few minutes!!!!!!!!! sweet. It also gives you a few custom options before it makes the resized clone. A dodle.
Thanks for the comment Alan. Vmware Convertor is a relatively new product, I wrote this post about 8 or 9 months when there weren’t many ways to expand a drive within a vmware image.
cool
Hi Thank you for this very useful information as this has solved lots of probs related to increase of hard disk space in VMWare Images.
Also pls could u tell me how to increase the mnory size of the image.
Thanks
uma
how to increse memory space of vm-ware-image ?
Hi Uma,
To increase the memory in a VmWare Image, you first need to shut down the vmware image. Then open it in VmWare Workstation and via the Properties dialog you can increase or decrease the memory allocated.
Hope that helps.
Sean,
To extend the boot volumes, what I have done is use vmware-diskmanager as above to make the disk larger, then mounted the disk as a second disk onto another VM. Then use diskpart, select the second disk, select the partiton then type extend. Diskpart will extend the partition to be the full size of the disk. shut down the second vm, remove the disk and then start up the first vm, you will now have a boot drive the full size of the extended disk.
I have found that it works best if you use XP to mount a server 2k3 disk and extend the volume, and the same in reverse, ie, use Win2k3 to extend an XP disk.
No extra utilities are required!
I’m getting the same error where windows disk management shows the right size, but windows explorer shows the old size after running qparted. Can someone please help by posting how to mount and unmount in knoppix since I’m a newbie to linux. π Thanks in advance
I am getting the same thing where disk management and windows explorer show different results.
Hi sc110786 & Mayur,
A few people have had this problem after they boot back into windows. Read the following comments from Josh above. “When I got in Windows I noticed that the drive was expanded but not the partition. I rebooted to Knoppix, tried QTParted again (click resize but donβt actually expand it so that we can save again) and got the same error message. I tried one last time and it actually saved that time without the error message.”
Thanks for the comments. – Sean
great article, sean! I had to download Knoppix 4.02 to get my VM to boot properly, and had to run QTParted twice (same issue as above). Great article!
Thanks for the comment Nathaniel, glad to hear that you got it sorted in the end.
i actually wrote about this too on my blog.
these are fantastic guides but you’ve forgotten to mention the in-build diskpart.exe in windows 2003 r2 that does the same thing, i have an article about it in my blog.
Ran into the issue of Windows Disk Manager saying the drive was 12GB (full size I adjusted it to) but explorer still said it was 5GB (original size).
Booted back into Knoppix, tried to mount it, informed me that the NTFS system needed to be repaired. Did a repair through Linuxntfs repair, went back to QTParted, opened up the resizer, clicked “ok” (disk was already resized) and clicked “commit”.
One reboot later it worked great, thanks for the guide!
The VMware Converter method worked beautifully! Too bad they only make it for windows, and there is not a Linux version, but oh well, still was faster then the other methods.
I found that a key component was to make sure that Windows had shutdown cleanly. If the windows virtual-machine did not shutdown cleanly, then QtParted would not be able to resize properly.
This was a problem for me, because at first I wasn’t fast enough to catch the boot option to use the CDROM to boot to Knoppix… and just did a “reset”.
If you try GParted, which is on the Knoppix CD. it worked for me the first time after qparted did not. QParted showed the disk in disk management as being expanded, but the disk in explorer didn’t change. GParted fixed all that.
Great article,
QParted could not get to work at all. With the latest release of Knoppix the Gparted utility did the trick for me. By the way the version I had wanted the root password to run it. Since none is set by default you need to run a command shell the
su – root
passwd
I got the same dialog popup as QParted which I ignored.
On reboot chkdsk did its thing and all was well.
Can confirm that it was the existing of the swap file on C: that was the problem.
To avoid the issue altogether in the future You can create a small separate disk and relocate the swap file there. Workstation 6 lets you resize as part of a machine import.
Knoppix rocks !! Have spent most of today setting up the VM env to realise I was running out of space on C:
I’ve got 16 gigs of space on my C drive. Should be able to install VS2008 now
π
Nothing incredible here, but for those who have or use Acronis. I had to extend my vm’s c: by 7GB, here is what I did and it only took 15 minutes without any snags.
1. turn off vm, on the host use vmware-vdiskmanager.exe x to extend the size of a disk, this should take several minutes, depending on size and performance of your hardware
2. power on vm, go into disk management, ensure you have the unallocated space available, power off your vm and put your acronis boot cd in the drive
3. be sure to use an acronis boot disk that includes disk director, use disk director to extend the c: on your vm, this should take less than 2 minutes, depending on size and performance of your hardware
4. when finished, remove the disk and power on your vm, you should be all done
http://www.acronis.com/
Heathhamm, Thanks for the comment. I was aware of Acronis and various other partitioning tools that could be used. The key to the above article is that you don’t need to purchase any software π
Sean,
Great article, thank you! Everything worked for me exactly as you described.
I’d been limping along with
Sean,
(sorry, first post truncated)
Great article, thank you! Everything worked for me exactly as you described.
I’d been limping along with an image that had less than 50MB left. I was dreading the thought of having to create a new larger image and reload all my software onto it.
Your article saved me what I thought was going to take hours! Seriously the best thing I’ve found all year. YOU ROCK!!
Just wanted to tell everyone this is a great tutorial. Just one note make sure that you use a recent version of knoppix with qtparted. I used 5.1.1 and it worked great. Version 5.0.1 does not support NTFS properly and windows will not recognize the drive change.
Is the iso download really 600mb? It’s taking an age to download it!
Sean,
Thanks for sharing these instructions. I followed them with no problem using VMWare Workstation, Windows Enterprise Server 2003 SP2, Knoppix 5.1.1, and virtual SCSI disks.
Happy New Year!
VMWare Converter for tha win!
Dear Sean,
Great. We were stuck with Vmware Server 1.0.3 (on Suse Linux Ent 10.1) Virtual Machine. The C drive of the Windows 2003 was just 8G and it was almost full. Struggled so much with other options like vmkfstools, as it wasn’t available. Finally your solution worked like a charm. One thing I would like to add is that, instead of Knoppix, I used GPartEd Live CD ISO and connected it to the CD-ROM of this virtual machine.
Joseph
Thanks a mil for this post. It worked perfectly!
I also used GPartEd as it was quicker to download.
Thanks, Did this on a Windows 2008 Server Web Edition HDD and Acronis Partition Manager, when the resize was compelete Windows complained WindowsSystem32WinLoad.exe was missing or corrupt, and would not boot. A “Bootrec /rebuildbcd” using the repair command prompt fixed it and rebooted to a huge drive! Thanks again.
Thanks Sean for the time and effort to document this so clearly. It saved me tons of time and effort today (and in the future).
Thanks a lot Sean. Saved me a lot of time and efforts. Great details.
Best article ever!! π
I went with Method 2 and the Knoppix v5.1.1 of 2007-01-04 ( http://mirror.netcologne.de/knoppix/knoppix-cd/ )…..worked like a charm.
Thanks a lot.
Thanks a lot Sean for the great article.
I followed Method 2 with Knoppix on Windows Server 2008 (Experimental) and it worked perfect. Although it failed first time when I tried to extend 100% of the newly created disk space. The second time I substracted 0.97 MB (seems like it was used for some administrative purpose) from the total size and it worked.
Thank you Sir! this solution was exactly what I needed. Thanks a lot! π
Thanks Srini ! π
Another way to do this is to use VMware converter. It is free software from VMware. It will let you take a Virtual Machine and do whatever you like with the disks.
Thanks for all your posts.
This helped tremendously. Saved tons of work.
I had to fix my ntfs partition before windows 2003 would see the new size.
Thanks again!
You are the man, thanks a ton, you saved me a wack of time!
The reason why Explorer does not see the changes is because when you are in Knoppix, prior to commiting the changes (spanning the disk), you have to first unmount the drive, then click commit on QTParted. Then, all changes are written back to the drive, or else, the changes are never commited back to the drive entirely.
If you are having an issue like this… boot back into Knoppix, make sure the drive is not mounted by typing “mount” (will show you all currently mounted drives), then go to QTParted and select the drive, QTParted will automatically mount it when you select it, click back to File->Commit, it will give you a warning. Do not click “Yes” yet, pull up a command prompt and type “umount /dev/drive_name_here” and it will unmount it. Then click Yes and voila!… Done.
Neat solution however I have a new challenge related to this method.
I have resized the disk. In computer management it reads as the correct size with 3.9 gb free. Great.
In my computer it reads as 3.99 gb main disk (it was 4 GB before) with 130mb free, cant run scan disk (not enough space), can’t install anything …ran chkdsk from the command prompt and then shut it down and ran it from safe mode….rebooted a few times.
There is no unaloocated space int he drive in the computer management GUI
Windows is freaking out…
Any ideas?
While searching for solution to my problem i ran across this very informative article.
I may be missing something because it was way too easy. I just used vmware converted to change the only drive size on my 2003 R2 from 12GB to 50GB.
After installing vmware converter 3.0.3 (free from vmware) i run converter and changed portion size. (all windows, all gui) It took less than 5 minutes to complete and created new set of vm files. Hit the power button and now my C drive is 50gb.
maybe the software wasn’t around when this article was written ?
http://www.vmware.com/products/converter/
Best to all,
Alex
Used Method 2 to increase my boot partition. Worked like a champ. Thanks for the great info.
As Alex stated. You can use vmware converter for this.
Launch Vmware converter, virtual to virtual, expand disk size. Done.
Hi, after trying to resize a couple of times without succes we managed to get it right. The main problem we had was that committing did not work because windows was not started correctly the last time in order to boot from the ISO. So the trick is to set the boot sequence first to CD so that you will not have the problem that you have to interupt windows to be able to boot from CD
1. get into the BIOS and change the boot devices
2. boot windows correctly and shutdown again
3. set VMWare to boot from the ISO
and your resize will work.
It worked like a charm!! Thanks for the great advise!
Like Josh from (18) I got some warning message when I commit changed in QTPart in Knoppix; that was when I downloaded and used the latest Knoppix 6.0 version.
I got no error as described by Sean in the original post when I used version 4 of Knoppix and the resize work perfectly.
Thanks, Sean. This worked perfectly and your step by step directions were better than any vendor documentation I’ve encountered. (I’m looking at you, Oracle.)
A much easier method to extending the boot partition is to use VMWare Converter Standalone (install it on the VM) and choose a local conversion. As part of the fourth step you can specify a new drive size for the boot partition and then finish through the wizard. The new cloned VM will have the enlarged boot partition. Boot it to make sure it is working and if it is delete your old VM.
I have done this on multiple Citrix (Terminal Servers) and have never had any side effects.
Comprehensive Survey of tehcniques to Extend / Expand virtual disks – VMWare, Fusion, VMware Server, VM Workstation, esx, including this post
http://blog.sharevm.com/2010/01/11/survey-extend-expand-vmware-virtual-disk/
Thanks Sean, worked great for Windows Server 2003. I had the same issue as a couple others where Disk Manager showed the new space but windows explorer did not. I ended up just going back into Knoppix and unmounting/remounting by C: partition (the one extended) and rebooted back into Windows. New drive space showed up!
How do I move the system page file to another partion so I can extended?
You should download and try fatVM http://www.gudgud.com/fatvm
fatVM is a reliable, robust, and safe, 1-click solution for extending the C drive of your VMware Fusion or Workstation virtual disk that is becoming full.
* It provides a simple, intuitive, interface and a reliable process that hides the technical complexity of extending a virtual disk.
* It is robust because it can extend virtual disks having snapshots and clones.
* It is safe because it preserves your original disk, which remains available to you for when the need ever arises.
VMware converter is probably fine but for those who want to make it
manually, just use WiNPE instead of knoppix
1- create the bootable WINPE ISO image (see the Microsoft WAIK, takes 2mns)
2- boot your 2003 VM from the WinPE image (attach the ISO image created in step -1- to the DVD, make sure your VM will try to boot from the DVD first)
3- at the WINPE command prompt
diskpart
diskpart> list vol
diskpart> select vol x
diskpart> extend
diskpart> exit
4- you are back to the winPE command prompt, type exit to reboot the VM
(make sure you detach the WinPE image)
then from the PE command prompt
list volume
select vol x
extend
exit
(back to WinPE command prompt)
Whilst the comments here are true there is [b]another way [/b]to give yourself much more space on the C drive if you have another drive available (either physical or as part of a virtual machine) even if yu can’t span the system/boot volume.
All you do is use a feature of Unix which windows has which windows admins don’t realize is a part of everyday admin work for a unix admin, ie [b]symbolic links[/b].
For example, say you had a folder called c:Data which was large and you wanted to free up space on the C drive but you couldn’t just move c:Data because various programs expect it to be in the location c:Data.
All you do is copy your folder and its subfolders to your new drive and give it a name which reminds you that it is the new location, for example copy c:Data to d:DataFromCDrive
[i](if any programs are using the files in c:Data at the time then stop them first or boot into safe mode and carry out these steps)[/i]
Now all you do is delete the original contents of c:Data to make it empty. [i](which is fine as you have a copy of it).[/i]
Using the Microsoft pstool called junction.exe you tell the filesystem where you moved the files to, ie:
[b]junction.exe c:Data d:DataFromCDrive[/b]
[i](if you are moving a folder with spaces such as “Program Files” make sure you use quotes)[/i]
Now open up explorer and navigate to c:Data — all the expected files will be there but you [b]just freed up space on the C drive coz you deleted the files from the original location.[/b]As this happens at the NTFS level, the applications are totall oblivious. This works for Program Files, Inetpub, infact anything taking up large amounts of space on the C drive which would be major hassle to move otherwise such as SQL server.
Enjoy!
Elliott
PS. sysinternals tool are available here: http://technet.microsoft.com/en-gb/sysinternals/default.aspx
PPS. Don’t put your swap file on the C drive – this slows your machine down.
PPPS. Most of you are nadgers except the person who first asked the legit question π
Just to let people know who might be expanding a SUSE Lenux Enterprise server after you use gparted and reboot into SUSE you have to do a resize_reiserfs within the terminal. For example I increased my partition 50G so I here is what I had to type in:
resize_reiserfs -s 50G /dev/sda2
Hope this might help someone out there.
Duggan
Duggan, thanks for the comment and for dropping by.
No prob and should be SUSE Linux Enterprise server not Lenux but sure everyone figured that out just realized the spelling error.
hi i recently had some trouble doing this i finally was successful by doing the following method. it was alot faster then any of the other methods stated.
To expand a VMDK first power off the VM.
From CMD cd to VMWare Root directory and run vmware-vdiskmanager -x 12GB “c:pathofVMDKName.vmdk”
hit enter
you should see grow to 100%
then open a different xp or windows server vm.
add a disk and select the vmdk you just expanded.
now go to cmd
User input: diskpart
User input list volumes
find the volume you want to expand.
User input: select volumeX
User input: assign
user input: extend
This will extend the selected partition to the full size you grew earlier.
Shutdown host remove HDD
Now open the other host and power on vm ,
You will need to reboot the vm again.
You will then have expanded your Virtual HDD to 12GB.
Dell has a utility called ESX Part, wonderful tool. i can expand a disk in under a minute. increase the size of disk in vcenter, use ext part to expand! that simple
HIi,
i have tried with method 1, using
“c:program filesVMWareVMWare Workstationvmware-vdiskmanager.exe” -x 50GB “Windows Server 2003 Standard Edition R2 SP2-cl1.vmdk” Using log file C:Documents and SettingsAVarghese_CamsoftLocal SettingsTempvdiskmanager.log
but i am getting
Diskname or some other argument is missing.
VMware Virtual Disk Manager – build 118166.
pls help me solve this.
i have successfully resize with VMWare converter.
Regards,
Anish Panthalani
Sorry i have tried with Method 2
Method 2 worked like a charm. Knoppix options were a bit different but I guess that’s due to updated versions but easy enough to figure out. Thanks for the info.
Hey thanks! I haven’t tried this let but from what I already know this looks like it will work!
Sean,
Thank you – Method 2 worked.
A couple of things:
1.) Downloaded ADRIANE-KNOPPIX_V6.2.1CD-2010-01-31-EN.iso and mounted to VMWare
2.) once booted, go to GUI (I think it was option 7 or so) tools -> load X session. From the “K” icon, went to “Preferences” to find “qtparted”
3.) the frist run of qtparted exited with a “fail” and a message to run checkdisk. Tried from qtparted, but that checkdisk failed/didn’t finish. Logged off and exited Knoppix. (unmounted the KNOPPIX ISO here)
4.) started from scratch (backed up VM). In WindowsXP, asked to run checkdisk (right click disk -> Properties -> Tools -> Error Checking [checked both options boxes too]). Restared Windows VM to let checkdisk run
5.) Rebooted into Knoppix and ran qtparted – worked like a charm
Hope that wasn’t too confusing.
Best.
For ESXi (or ESX) users there is an easy way to expand a system partition, commend from an other user and tested very succesfully by myself:
“In my experience the easiest way to do this is to create another guest, call it test. Remove the C drive from the original guest you want to increase the drive space on and add it as the D drive on the new test machine. Now you can increase the size of the virtual disk. Run diskpart to expand the partition to it’s new size. Remove the D from the test machine and add it back as the C on the original guest and you now have an increased C drive. You can also run a vmware convert and increase the size that way. I’ve done them both ways and I find that simply moving the drive to a test machine is much faster.”
You can also use a free Dell tool named ExtPart… it doesn’t even require a reboot in most cases
EXT part is the fastest way to do this t took me about 2 mins !!!!!!!!
Following is the process
1. extend your VMdisk. My original was 20 so i extend by 10
vmware-vdiskmanager -x 30GB “Terdata12.vmdk”
2.download ExtPart from
http://support.dell.com/support/downloads/download.aspx?c=us&cs=19&l=en&s=dhs&releaseid=R64398&formatcnt=2&fileid=83929.
3.Go into the VM and from command line
extpart c: 10240 (to extend by 10GB )
Voila
Done 2mins
Thank you so much! I have been looking for a solution to increase the size of the system patition on guest machines on esxi and this worked! I came across many soultions but this one was clear cut and accurate! unlike my spelling!
Thanks again!
Wayne
Thanks for the info Sean, your work on this is appreciated. BTW, I was following your procedure #2 and found that Windows 2008 Server (enterprise) allows you to expand the partition without needing Knoppix. I had a full system partition, and i extended it (from 30Gb to 100Gb). After that I was able to change the partion size to make use of the full 100Gb in drive manager, which has to be new in 2008 server or I missed it in 2003.
It worked like a charm. I’d never have tried it at all without your procedure. Definitely easier than doing BESR backups and VM restores.
Cheers!
ADRIANE-KNOPPIX is bullshit… not at all user friendly…
1. expand hard disk first using vmware/work station settings when the system is shutdown/powered off
2. download Partition Magic or something install it and add merg the unallocated parecian to the existing one…
u r done..
Thanks alot! nice documentation!!
i am a total linux noob, too.
I tried gparted, because its much smaller, windows users don ‘ t be afraid – there is a graphical user interface.
problems i had in command line with vmware-vdiskmanager: you should write the complete file name of the vmdk file (don ‘t use the ” * ” abreviation. Regardless u will have “failed to open the disk .. failed to lock the file vdiskmanager (16392)”
thx!!
awesome! Thanks for the help.
Good one.
You can check video demonstration at
http://windows.cskatta.co.in/?p=245
Thanks a lot!